tag | line | file | source code |
filp | 173 | drivers/block/cdu31a.c | static int scd_open(struct inode *inode, struct file *filp); |
filp | 1768 | drivers/block/cdu31a.c | struct file *filp) |
filp | 1775 | drivers/block/cdu31a.c | if (filp->f_mode & 2) |
filp | 1849 | drivers/block/cdu31a.c | struct file *filp) |
filp | 2396 | drivers/block/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
filp | 2400 | drivers/block/floppy.c | #define IOCTL_ALLOWED (filp && (filp->f_mode & IOCTL_MODE_BIT)) |
filp | 2630 | drivers/block/floppy.c | static int floppy_##op(struct inode * inode, struct file * filp, \ |
filp | 2636 | drivers/block/floppy.c | return block_##op(inode, filp, buf, count); \ |
filp | 2643 | drivers/block/floppy.c | static void floppy_release(struct inode * inode, struct file * filp) |
filp | 2664 | drivers/block/floppy.c | do{floppy_release(inode,filp); \ |
filp | 2667 | drivers/block/floppy.c | static int floppy_open(struct inode * inode, struct file * filp) |
filp | 2675 | drivers/block/floppy.c | if (!filp) { |
filp | 2692 | drivers/block/floppy.c | if (filp->f_mode & 3) { |
filp | 2701 | drivers/block/floppy.c | if (filp->f_flags & O_EXCL) { |
filp | 2721 | drivers/block/floppy.c | if ((filp->f_mode & 2) || permission(inode,2)) |
filp | 2722 | drivers/block/floppy.c | filp->f_mode |= IOCTL_MODE_BIT; |
filp | 2727 | drivers/block/floppy.c | if (filp->f_flags & O_NDELAY) |
filp | 2730 | drivers/block/floppy.c | if (filp->f_mode && !(UDRS->flags & FD_DRIVE_PRESENT)) |
filp | 2736 | drivers/block/floppy.c | if (filp->f_mode & 3) { |
filp | 2741 | drivers/block/floppy.c | if ((filp->f_mode & 2) && !(UDRS->flags & FD_DISK_WRITABLE)) |
filp | 911 | drivers/block/hd.c | static int hd_open(struct inode * inode, struct file * filp) |
filp | 1794 | drivers/char/console.c | int con_open(struct tty_struct *tty, struct file * filp) |
filp | 309 | drivers/char/mem.c | static int memory_open(struct inode * inode, struct file * filp) |
filp | 313 | drivers/char/mem.c | filp->f_op = &ram_fops; |
filp | 316 | drivers/char/mem.c | filp->f_op = &mem_fops; |
filp | 319 | drivers/char/mem.c | filp->f_op = &kmem_fops; |
filp | 322 | drivers/char/mem.c | filp->f_op = &null_fops; |
filp | 325 | drivers/char/mem.c | filp->f_op = &port_fops; |
filp | 328 | drivers/char/mem.c | filp->f_op = &zero_fops; |
filp | 331 | drivers/char/mem.c | filp->f_op = &full_fops; |
filp | 336 | drivers/char/mem.c | if (filp->f_op && filp->f_op->open) |
filp | 337 | drivers/char/mem.c | return filp->f_op->open(inode,filp); |
filp | 63 | drivers/char/pty.c | static void pty_close(struct tty_struct * tty, struct file * filp) |
filp | 182 | drivers/char/pty.c | int pty_open(struct tty_struct *tty, struct file * filp) |
filp | 205 | drivers/char/pty.c | if (filp->f_flags & O_NDELAY) |
filp | 1749 | drivers/char/serial.c | static void rs_close(struct tty_struct *tty, struct file * filp) |
filp | 1756 | drivers/char/serial.c | if (tty_hung_up_p(filp)) |
filp | 1843 | drivers/char/serial.c | static int block_til_ready(struct tty_struct *tty, struct file * filp, |
filp | 1889 | drivers/char/serial.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 1919 | drivers/char/serial.c | if (tty_hung_up_p(filp) || |
filp | 1948 | drivers/char/serial.c | if (!tty_hung_up_p(filp)) |
filp | 1967 | drivers/char/serial.c | int rs_open(struct tty_struct *tty, struct file * filp) |
filp | 2006 | drivers/char/serial.c | retval = block_til_ready(tty, filp, info); |
filp | 1916 | drivers/char/tpqic02.c | static int qic02_tape_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 1920 | drivers/char/tpqic02.c | unsigned short flags = filp->f_flags; |
filp | 1931 | drivers/char/tpqic02.c | MINOR(dev), buf, count, filp->f_pos, flags); |
filp | 2051 | drivers/char/tpqic02.c | filp->f_pos += bytes_done; |
filp | 2090 | drivers/char/tpqic02.c | static int qic02_tape_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 2094 | drivers/char/tpqic02.c | unsigned short flags = filp->f_flags; |
filp | 2104 | drivers/char/tpqic02.c | MINOR(dev), buf, count, filp->f_pos, flags); |
filp | 2217 | drivers/char/tpqic02.c | filp->f_pos += bytes_done; |
filp | 2241 | drivers/char/tpqic02.c | static int qic02_tape_open(struct inode * inode, struct file * filp) |
filp | 2244 | drivers/char/tpqic02.c | unsigned short flags = filp->f_flags; |
filp | 2264 | drivers/char/tpqic02.c | if (filp->f_count>1) { /* filp->f_count==1 for the first open() */ |
filp | 2427 | drivers/char/tpqic02.c | static int qic02_tape_readdir(struct inode * inode, struct file * filp, struct dirent * dp, int count) |
filp | 2434 | drivers/char/tpqic02.c | static void qic02_tape_release(struct inode * inode, struct file * filp) |
filp | 2555 | drivers/char/tpqic02.c | static int qic02_tape_ioctl(struct inode * inode, struct file * filp, |
filp | 99 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on); |
filp | 263 | drivers/char/tty_io.c | static int hung_up_tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 310 | drivers/char/tty_io.c | struct file * filp; |
filp | 315 | drivers/char/tty_io.c | for (filp = first_file, i=0; i<nr_files; i++, filp = filp->f_next) { |
filp | 316 | drivers/char/tty_io.c | if (!filp->f_count) |
filp | 318 | drivers/char/tty_io.c | if (filp->private_data != tty) |
filp | 320 | drivers/char/tty_io.c | if (filp->f_inode && filp->f_inode->i_rdev == CONSOLE_DEV) |
filp | 322 | drivers/char/tty_io.c | if (filp->f_op != &tty_fops) |
filp | 324 | drivers/char/tty_io.c | tty_fasync(filp->f_inode, filp, 0); |
filp | 325 | drivers/char/tty_io.c | filp->f_op = fops; |
filp | 386 | drivers/char/tty_io.c | int tty_hung_up_p(struct file * filp) |
filp | 388 | drivers/char/tty_io.c | return (filp->f_op == &hung_up_tty_fops); |
filp | 881 | drivers/char/tty_io.c | static void release_dev(struct file * filp) |
filp | 889 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
filp | 890 | drivers/char/tty_io.c | if (tty_paranoia_check(tty, filp->f_inode->i_rdev, "release_dev")) |
filp | 893 | drivers/char/tty_io.c | tty_fasync(filp->f_inode, filp, 0); |
filp | 957 | drivers/char/tty_io.c | tty->driver.close(tty, filp); |
filp | 1058 | drivers/char/tty_io.c | static int tty_open(struct inode * inode, struct file * filp) |
filp | 1066 | drivers/char/tty_io.c | noctty = filp->f_flags & O_NOCTTY; |
filp | 1081 | drivers/char/tty_io.c | filp->private_data = tty; |
filp | 1093 | drivers/char/tty_io.c | retval = tty->driver.open(tty, filp); |
filp | 1102 | drivers/char/tty_io.c | release_dev(filp); |
filp | 1111 | drivers/char/tty_io.c | filp->f_op = &tty_fops; |
filp | 1130 | drivers/char/tty_io.c | static void tty_release(struct inode * inode, struct file * filp) |
filp | 1132 | drivers/char/tty_io.c | release_dev(filp); |
filp | 1135 | drivers/char/tty_io.c | static int tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 1139 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
filp | 1144 | drivers/char/tty_io.c | return (tty->ldisc.select)(tty, inode, filp, sel_type, wait); |
filp | 1148 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on) |
filp | 1153 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
filp | 1158 | drivers/char/tty_io.c | if (fa->fa_file == filp) |
filp | 1169 | drivers/char/tty_io.c | fa->fa_file = filp; |
filp | 1439 | drivers/char/tty_io.c | struct file *filp; |
filp | 1453 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
filp | 1454 | drivers/char/tty_io.c | if (filp && (filp->f_op == &tty_fops) && |
filp | 1455 | drivers/char/tty_io.c | (filp->private_data == tty)) { |
filp | 144 | drivers/net/ppp.c | struct file * filp, int sel_type, select_table * wait); |
filp | 1614 | drivers/net/ppp.c | struct file * filp, int sel_type, select_table * wait) |
filp | 1648 | drivers/net/ppp.c | if (tty_hung_up_p(filp)) |
filp | 2052 | drivers/scsi/53c7,8xx.c | static debugger_user_write (struct inode *inode,struct file *filp, |
filp | 2104 | drivers/scsi/53c7,8xx.c | static debugger_user_read (struct inode *inode,struct file *filp, |
filp | 72 | drivers/scsi/sd.c | static int sd_open(struct inode * inode, struct file * filp) |
filp | 80 | drivers/scsi/sg.c | static int sg_open(struct inode * inode, struct file * filp) |
filp | 83 | drivers/scsi/sg.c | int flags=filp->f_flags; |
filp | 120 | drivers/scsi/sg.c | static void sg_close(struct inode * inode, struct file * filp) |
filp | 161 | drivers/scsi/sg.c | static int sg_read(struct inode *inode,struct file *filp,char *buf,int count) |
filp | 170 | drivers/scsi/sg.c | if (filp->f_flags & O_NONBLOCK) |
filp | 218 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,char *buf,int count) |
filp | 233 | drivers/scsi/sg.c | if (filp->f_flags & O_NONBLOCK) |
filp | 263 | drivers/scsi/sg.c | if (!(SCpnt=allocate_device(NULL,device->device, !(filp->f_flags & O_NONBLOCK)))) |
filp | 274 | drivers/scsi/sr.c | static int sr_open(struct inode * inode, struct file * filp) |
filp | 279 | drivers/scsi/sr.c | if (filp->f_mode & 2) |
filp | 340 | drivers/scsi/st.c | flush_buffer(struct inode * inode, struct file * filp, int seek_next) |
filp | 373 | drivers/scsi/st.c | result = st_int_ioctl(inode, filp, MTBSR, backspace); |
filp | 382 | drivers/scsi/st.c | scsi_tape_open(struct inode * inode, struct file * filp) |
filp | 413 | drivers/scsi/st.c | flags = filp->f_flags; |
filp | 584 | drivers/scsi/st.c | scsi_tape_close(struct inode * inode, struct file * filp) |
filp | 604 | drivers/scsi/st.c | printk("st%d: File length %ld bytes.\n", dev, filp->f_pos); |
filp | 645 | drivers/scsi/st.c | flush_buffer(inode, filp, 0); |
filp | 650 | drivers/scsi/st.c | st_int_ioctl(inode, filp, MTREW, 1); |
filp | 661 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 687 | drivers/scsi/st.c | retval = flush_buffer(inode, filp, 0); |
filp | 791 | drivers/scsi/st.c | filp->f_pos += do_count - transfer; |
filp | 830 | drivers/scsi/st.c | filp->f_pos += do_count; |
filp | 846 | drivers/scsi/st.c | filp->f_pos += count; |
filp | 891 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 917 | drivers/scsi/st.c | transfer = flush_buffer(inode, filp, 0); |
filp | 1091 | drivers/scsi/st.c | filp->f_pos += transfer; |
filp | 20 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 51 | fs/block_dev.c | block = filp->f_pos >> blocksize_bits; |
filp | 52 | fs/block_dev.c | offset = filp->f_pos & (blocksize-1); |
filp | 78 | fs/block_dev.c | if(!filp->f_reada || |
filp | 113 | fs/block_dev.c | filp->f_pos += chars; |
filp | 121 | fs/block_dev.c | if (filp->f_flags & O_SYNC) { |
filp | 127 | fs/block_dev.c | filp->f_reada = 1; |
filp | 131 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 160 | fs/block_dev.c | offset = filp->f_pos; |
filp | 182 | fs/block_dev.c | if (filp->f_reada) { |
filp | 252 | fs/block_dev.c | filp->f_pos += chars; |
filp | 277 | fs/block_dev.c | filp->f_reada = 1; |
filp | 281 | fs/block_dev.c | int block_fsync(struct inode *inode, struct file *filp) |
filp | 231 | fs/buffer.c | int file_fsync (struct inode *inode, struct file *filp) |
filp | 179 | fs/devices.c | int blkdev_open(struct inode * inode, struct file * filp) |
filp | 186 | fs/devices.c | filp->f_op = blkdevs[i].fops; |
filp | 187 | fs/devices.c | if (filp->f_op->open) |
filp | 188 | fs/devices.c | return filp->f_op->open(inode,filp); |
filp | 230 | fs/devices.c | int chrdev_open(struct inode * inode, struct file * filp) |
filp | 237 | fs/devices.c | filp->f_op = chrdevs[i].fops; |
filp | 238 | fs/devices.c | if (filp->f_op->open) |
filp | 239 | fs/devices.c | return filp->f_op->open(inode,filp); |
filp | 23 | fs/ext/dir.c | static int ext_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 64 | fs/ext/dir.c | static int ext_readdir(struct inode * inode, struct file * filp, |
filp | 75 | fs/ext/dir.c | if (filp->f_pos % 8 != 0) |
filp | 77 | fs/ext/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 78 | fs/ext/dir.c | offset = filp->f_pos & 1023; |
filp | 79 | fs/ext/dir.c | bh = ext_bread(inode,(filp->f_pos)>>BLOCK_SIZE_BITS,0); |
filp | 81 | fs/ext/dir.c | filp->f_pos += 1024-offset; |
filp | 85 | fs/ext/dir.c | while (offset < 1024 && filp->f_pos < inode->i_size) { |
filp | 88 | fs/ext/dir.c | (de->rec_len + (off_t) filp->f_pos - 1) / 1024 > ((off_t) filp->f_pos / 1024)) { |
filp | 92 | fs/ext/dir.c | filp->f_pos += 1024-offset; |
filp | 93 | fs/ext/dir.c | if (filp->f_pos > inode->i_size) |
filp | 94 | fs/ext/dir.c | filp->f_pos = inode->i_size; |
filp | 98 | fs/ext/dir.c | filp->f_pos += de->rec_len; |
filp | 72 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 90 | fs/ext/file.c | offset = filp->f_pos; |
filp | 106 | fs/ext/file.c | if (filp->f_reada) { |
filp | 164 | fs/ext/file.c | filp->f_pos += chars; |
filp | 189 | fs/ext/file.c | filp->f_reada = 1; |
filp | 197 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 216 | fs/ext/file.c | if (filp->f_flags & O_APPEND) |
filp | 219 | fs/ext/file.c | pos = filp->f_pos; |
filp | 255 | fs/ext/file.c | filp->f_pos = pos; |
filp | 249 | fs/ext/truncate.c | void ext_release(struct inode * inode, struct file * filp) |
filp | 25 | fs/ext2/dir.c | static int ext2_dir_read (struct inode * inode, struct file * filp, |
filp | 97 | fs/ext2/dir.c | static int ext2_readdir (struct inode * inode, struct file * filp, |
filp | 110 | fs/ext2/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 111 | fs/ext2/dir.c | offset = filp->f_pos & (sb->s_blocksize - 1); |
filp | 112 | fs/ext2/dir.c | blk = (filp->f_pos) >> EXT2_BLOCK_SIZE_BITS(sb); |
filp | 115 | fs/ext2/dir.c | filp->f_pos += sb->s_blocksize - offset; |
filp | 139 | fs/ext2/dir.c | while (offset < sb->s_blocksize && filp->f_pos < inode->i_size) { |
filp | 146 | fs/ext2/dir.c | filp->f_pos += de->rec_len; |
filp | 79 | fs/ext2/file.c | static int ext2_file_read (struct inode * inode, struct file * filp, |
filp | 103 | fs/ext2/file.c | offset = filp->f_pos; |
filp | 119 | fs/ext2/file.c | if (filp->f_reada) { |
filp | 194 | fs/ext2/file.c | filp->f_pos += chars; |
filp | 222 | fs/ext2/file.c | filp->f_reada = 1; |
filp | 230 | fs/ext2/file.c | static int ext2_file_write (struct inode * inode, struct file * filp, |
filp | 257 | fs/ext2/file.c | if (filp->f_flags & O_APPEND) |
filp | 260 | fs/ext2/file.c | pos = filp->f_pos; |
filp | 267 | fs/ext2/file.c | if (filp->f_flags & O_SYNC) |
filp | 297 | fs/ext2/file.c | if (filp->f_flags & O_SYNC) { |
filp | 305 | fs/ext2/file.c | if (filp->f_flags & O_SYNC) |
filp | 309 | fs/ext2/file.c | filp->f_pos = pos; |
filp | 319 | fs/ext2/file.c | static void ext2_release_file (struct inode * inode, struct file * filp) |
filp | 321 | fs/ext2/file.c | if (filp->f_mode & 2) |
filp | 17 | fs/ext2/ioctl.c | int ext2_ioctl (struct inode * inode, struct file * filp, unsigned int cmd, |
filp | 68 | fs/fcntl.c | struct file * filp; |
filp | 70 | fs/fcntl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
filp | 84 | fs/fcntl.c | return filp->f_flags; |
filp | 90 | fs/fcntl.c | if (IS_APPEND(filp->f_inode) && !(arg & O_APPEND)) |
filp | 92 | fs/fcntl.c | if ((arg & FASYNC) && !(filp->f_flags & FASYNC) && |
filp | 93 | fs/fcntl.c | filp->f_op->fasync) |
filp | 94 | fs/fcntl.c | filp->f_op->fasync(filp->f_inode, filp, 1); |
filp | 95 | fs/fcntl.c | if (!(arg & FASYNC) && (filp->f_flags & FASYNC) && |
filp | 96 | fs/fcntl.c | filp->f_op->fasync) |
filp | 97 | fs/fcntl.c | filp->f_op->fasync(filp->f_inode, filp, 0); |
filp | 98 | fs/fcntl.c | filp->f_flags &= ~(O_APPEND | O_NONBLOCK | FASYNC); |
filp | 99 | fs/fcntl.c | filp->f_flags |= arg & (O_APPEND | O_NONBLOCK | |
filp | 116 | fs/fcntl.c | return filp->f_owner; |
filp | 118 | fs/fcntl.c | filp->f_owner = arg; /* XXX security implications? */ |
filp | 119 | fs/fcntl.c | if (S_ISSOCK (filp->f_inode->i_mode)) |
filp | 120 | fs/fcntl.c | sock_fcntl (filp, F_SETOWN, arg); |
filp | 124 | fs/fcntl.c | if (S_ISSOCK (filp->f_inode->i_mode)) |
filp | 126 | fs/fcntl.c | return (sock_fcntl (filp, cmd, arg)); |
filp | 12 | fs/fifo.c | static int fifo_open(struct inode * inode,struct file * filp) |
filp | 17 | fs/fifo.c | switch( filp->f_mode ) { |
filp | 25 | fs/fifo.c | filp->f_op = &connecting_fifo_fops; |
filp | 28 | fs/fifo.c | if (!(filp->f_flags & O_NONBLOCK) && !PIPE_WRITERS(*inode)) { |
filp | 43 | fs/fifo.c | filp->f_op = &read_fifo_fops; |
filp | 54 | fs/fifo.c | if ((filp->f_flags & O_NONBLOCK) && !PIPE_READERS(*inode)) { |
filp | 58 | fs/fifo.c | filp->f_op = &write_fifo_fops; |
filp | 86 | fs/fifo.c | filp->f_op = &rdwr_fifo_fops; |
filp | 183 | fs/hpfs/hpfs_fs.c | static int hpfs_dir_read(struct inode *inode, struct file *filp, |
filp | 185 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, |
filp | 863 | fs/hpfs/hpfs_fs.c | static int hpfs_file_read(struct inode *inode, struct file *filp, |
filp | 877 | fs/hpfs/hpfs_fs.c | if (count > inode->i_size - (off_t) filp->f_pos) |
filp | 878 | fs/hpfs/hpfs_fs.c | count = inode->i_size - filp->f_pos; |
filp | 886 | fs/hpfs/hpfs_fs.c | q = filp->f_pos >> 9; |
filp | 887 | fs/hpfs/hpfs_fs.c | r = filp->f_pos & 511; |
filp | 923 | fs/hpfs/hpfs_fs.c | if (count > inode->i_size - (off_t) filp->f_pos - n + n0) |
filp | 924 | fs/hpfs/hpfs_fs.c | count = inode->i_size - filp->f_pos - n + n0; |
filp | 932 | fs/hpfs/hpfs_fs.c | filp->f_pos += n; |
filp | 1329 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, |
filp | 1344 | fs/hpfs/hpfs_fs.c | switch ((off_t) filp->f_pos) { |
filp | 1347 | fs/hpfs/hpfs_fs.c | filp->f_pos = -1; |
filp | 1353 | fs/hpfs/hpfs_fs.c | filp->f_pos = 1; |
filp | 1360 | fs/hpfs/hpfs_fs.c | de = map_pos_dirent(inode, &filp->f_pos, &qbh); |
filp | 1362 | fs/hpfs/hpfs_fs.c | filp->f_pos = -2; |
filp | 1561 | fs/hpfs/hpfs_fs.c | static int hpfs_dir_read(struct inode *inode, struct file *filp, |
filp | 16 | fs/ioctl.c | static int file_ioctl(struct file *filp,unsigned int cmd,unsigned long arg) |
filp | 23 | fs/ioctl.c | if (filp->f_inode->i_op == NULL) |
filp | 25 | fs/ioctl.c | if (filp->f_inode->i_op->bmap == NULL) |
filp | 31 | fs/ioctl.c | block = filp->f_inode->i_op->bmap(filp->f_inode,block); |
filp | 35 | fs/ioctl.c | if (filp->f_inode->i_sb == NULL) |
filp | 40 | fs/ioctl.c | put_fs_long(filp->f_inode->i_sb->s_blocksize, |
filp | 47 | fs/ioctl.c | put_fs_long(filp->f_inode->i_size - filp->f_pos, |
filp | 51 | fs/ioctl.c | if (filp->f_op && filp->f_op->ioctl) |
filp | 52 | fs/ioctl.c | return filp->f_op->ioctl(filp->f_inode, filp, cmd,arg); |
filp | 59 | fs/ioctl.c | struct file * filp; |
filp | 62 | fs/ioctl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
filp | 76 | fs/ioctl.c | filp->f_flags |= O_NONBLOCK; |
filp | 78 | fs/ioctl.c | filp->f_flags &= ~O_NONBLOCK; |
filp | 85 | fs/ioctl.c | filp->f_flags |= O_SYNC; |
filp | 87 | fs/ioctl.c | filp->f_flags &= ~O_SYNC; |
filp | 91 | fs/ioctl.c | if (filp->f_inode && S_ISREG(filp->f_inode->i_mode)) |
filp | 92 | fs/ioctl.c | return file_ioctl(filp,cmd,arg); |
filp | 94 | fs/ioctl.c | if (filp->f_op && filp->f_op->ioctl) |
filp | 95 | fs/ioctl.c | return filp->f_op->ioctl(filp->f_inode, filp, cmd,arg); |
filp | 60 | fs/isofs/dir.c | static int isofs_readdir(struct inode * inode, struct file * filp, |
filp | 79 | fs/isofs/dir.c | offset = filp->f_pos & (bufsize - 1); |
filp | 80 | fs/isofs/dir.c | block = isofs_bmap(inode,filp->f_pos>>bufbits); |
filp | 84 | fs/isofs/dir.c | if(!(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size))) |
filp | 87 | fs/isofs/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 90 | fs/isofs/dir.c | block, offset, filp->f_pos); |
filp | 102 | fs/isofs/dir.c | filp->f_pos = ((filp->f_pos & ~(ISOFS_BLOCK_SIZE - 1)) |
filp | 104 | fs/isofs/dir.c | block = isofs_bmap(inode,(filp->f_pos)>>bufbits); |
filp | 106 | fs/isofs/dir.c | || !(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, |
filp | 119 | fs/isofs/dir.c | filp->f_pos += *((unsigned char *) de); |
filp | 128 | fs/isofs/dir.c | offset = filp->f_pos & (bufsize - 1); |
filp | 129 | fs/isofs/dir.c | block = isofs_bmap(inode,(filp->f_pos)>> bufbits); |
filp | 132 | fs/isofs/dir.c | filp->f_pos, inode->i_size))) { |
filp | 119 | fs/isofs/file.c | static int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 139 | fs/isofs/file.c | if (filp->f_pos > inode->i_size) |
filp | 142 | fs/isofs/file.c | left = inode->i_size - filp->f_pos; |
filp | 148 | fs/isofs/file.c | block = filp->f_pos >> ISOFS_BUFFER_BITS(inode); |
filp | 149 | fs/isofs/file.c | offset = filp->f_pos & (ISOFS_BUFFER_SIZE(inode)-1); |
filp | 212 | fs/isofs/file.c | filp->f_pos += chars; |
filp | 242 | fs/isofs/file.c | filp->f_reada = 1; |
filp | 25 | fs/locks.c | static int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l, |
filp | 29 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd); |
filp | 58 | fs/locks.c | struct file *filp; |
filp | 61 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
filp | 69 | fs/locks.c | if (!copy_flock(filp, &file_lock, &flock, fd)) |
filp | 72 | fs/locks.c | for (fl = filp->f_inode->i_flock; fl != NULL; fl = fl->fl_next) { |
filp | 97 | fs/locks.c | struct file *filp; |
filp | 105 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
filp | 111 | fs/locks.c | if (!copy_flock(filp, &file_lock, &flock, fd)) |
filp | 115 | fs/locks.c | if (!(filp->f_mode & 1)) |
filp | 119 | fs/locks.c | if (!(filp->f_mode & 2)) |
filp | 123 | fs/locks.c | if (!(filp->f_mode & 3)) |
filp | 128 | fs/locks.c | if (!(filp->f_mode & 3)) |
filp | 142 | fs/locks.c | for (fl = filp->f_inode->i_flock; fl != NULL; fl = fl->fl_next) { |
filp | 166 | fs/locks.c | return lock_it(filp, &file_lock, fd); |
filp | 173 | fs/locks.c | void fcntl_remove_locks(struct task_struct *task, struct file *filp, |
filp | 181 | fs/locks.c | before = &filp->f_inode->i_flock; |
filp | 196 | fs/locks.c | static int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l, |
filp | 201 | fs/locks.c | if (!filp->f_inode) /* just in case */ |
filp | 208 | fs/locks.c | case 1 /*SEEK_CUR*/ : start = filp->f_pos; break; |
filp | 209 | fs/locks.c | case 2 /*SEEK_END*/ : start = filp->f_inode->i_size; break; |
filp | 270 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd) |
filp | 282 | fs/locks.c | before = &filp->f_inode->i_flock; |
filp | 16 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 57 | fs/minix/dir.c | static int minix_readdir(struct inode * inode, struct file * filp, |
filp | 69 | fs/minix/dir.c | if (filp->f_pos & (info->s_dirsize - 1)) |
filp | 71 | fs/minix/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 72 | fs/minix/dir.c | offset = filp->f_pos & 1023; |
filp | 73 | fs/minix/dir.c | bh = minix_bread(inode,(filp->f_pos)>>BLOCK_SIZE_BITS,0); |
filp | 75 | fs/minix/dir.c | filp->f_pos += 1024-offset; |
filp | 78 | fs/minix/dir.c | while (offset < 1024 && filp->f_pos < inode->i_size) { |
filp | 81 | fs/minix/dir.c | filp->f_pos += info->s_dirsize; |
filp | 66 | fs/minix/file.c | static int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 84 | fs/minix/file.c | offset = filp->f_pos; |
filp | 100 | fs/minix/file.c | if (filp->f_reada) { |
filp | 158 | fs/minix/file.c | filp->f_pos += chars; |
filp | 183 | fs/minix/file.c | filp->f_reada = 1; |
filp | 189 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 205 | fs/minix/file.c | if (filp->f_flags & O_APPEND) |
filp | 208 | fs/minix/file.c | pos = filp->f_pos; |
filp | 243 | fs/minix/file.c | filp->f_pos = pos; |
filp | 18 | fs/msdos/dir.c | static int msdos_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
filp | 56 | fs/msdos/dir.c | struct file *filp, |
filp | 68 | fs/msdos/dir.c | if (filp->f_pos == 2) filp->f_pos = 0; |
filp | 69 | fs/msdos/dir.c | else if (filp->f_pos < 2) { |
filp | 70 | fs/msdos/dir.c | walk = filp->f_pos++ ? ".." : "."; |
filp | 79 | fs/msdos/dir.c | if (filp->f_pos & (sizeof(struct msdos_dir_entry)-1)) return -ENOENT; |
filp | 81 | fs/msdos/dir.c | while ((ino = msdos_get_entry(inode,&filp->f_pos,&bh,&de)) > -1) { |
filp | 82 | fs/msdos/file.c | struct file *filp, |
filp | 102 | fs/msdos/file.c | if (filp->f_pos >= inode->i_size || count <= 0) return 0; |
filp | 104 | fs/msdos/file.c | while ((left = MIN(inode->i_size-filp->f_pos,count-(buf-start))) > 0){ |
filp | 105 | fs/msdos/file.c | if (!(sector = msdos_smap(inode,filp->f_pos >> SECTOR_BITS))) |
filp | 107 | fs/msdos/file.c | offset = filp->f_pos & (SECTOR_SIZE-1); |
filp | 109 | fs/msdos/file.c | filp->f_pos += (size = MIN(SECTOR_SIZE-offset,left)); |
filp | 120 | fs/msdos/file.c | filp->f_pos = inode->i_size; |
filp | 143 | fs/msdos/file.c | struct file *filp, |
filp | 166 | fs/msdos/file.c | if (filp->f_flags & O_APPEND) filp->f_pos = inode->i_size; |
filp | 170 | fs/msdos/file.c | while (!(sector = msdos_smap(inode,filp->f_pos >> SECTOR_BITS))) |
filp | 176 | fs/msdos/file.c | offset = filp->f_pos & (SECTOR_SIZE-1); |
filp | 183 | fs/msdos/file.c | memcpy_fromfs(data+(filp->f_pos & (SECTOR_SIZE-1)), |
filp | 189 | fs/msdos/file.c | to = (char *) data+(filp->f_pos & (SECTOR_SIZE-1)); |
filp | 208 | fs/msdos/file.c | filp->f_pos += written; |
filp | 209 | fs/msdos/file.c | if (filp->f_pos > inode->i_size) { |
filp | 210 | fs/msdos/file.c | inode->i_size = filp->f_pos; |
filp | 47 | fs/msdos/mmap.c | struct file filp; |
filp | 51 | fs/msdos/mmap.c | filp.f_pos = pos; |
filp | 56 | fs/msdos/mmap.c | cur_read = msdos_file_read (inode,&filp,(char*)page |
filp | 21 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *, struct file *filp, char *buf, |
filp | 72 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
filp | 86 | fs/nfs/dir.c | static int nfs_readdir(struct inode *inode, struct file *filp, |
filp | 119 | fs/nfs/dir.c | if (filp->f_pos == c_entry[i].cookie) { |
filp | 135 | fs/nfs/dir.c | filp->f_pos, NFS_READDIR_CACHE_SIZE, c_entry); |
filp | 155 | fs/nfs/dir.c | filp->f_pos = entry->cookie; |
filp | 21 | fs/nfs/inode.c | extern int close_fp(struct file *filp, unsigned int fd); |
filp | 67 | fs/nfs/inode.c | struct file *filp; |
filp | 80 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
filp | 85 | fs/nfs/inode.c | if (!S_ISSOCK(filp->f_inode->i_mode)) { |
filp | 90 | fs/nfs/inode.c | filp->f_count++; |
filp | 98 | fs/nfs/inode.c | server->file = filp; |
filp | 475 | fs/open.c | int close_fp(struct file *filp, unsigned int fd) |
filp | 479 | fs/open.c | if (filp->f_count == 0) { |
filp | 483 | fs/open.c | inode = filp->f_inode; |
filp | 485 | fs/open.c | fcntl_remove_locks(current, filp, fd); |
filp | 486 | fs/open.c | if (filp->f_count > 1) { |
filp | 487 | fs/open.c | filp->f_count--; |
filp | 490 | fs/open.c | if (filp->f_op && filp->f_op->release) |
filp | 491 | fs/open.c | filp->f_op->release(inode,filp); |
filp | 492 | fs/open.c | filp->f_count--; |
filp | 493 | fs/open.c | filp->f_inode = NULL; |
filp | 500 | fs/open.c | struct file * filp; |
filp | 505 | fs/open.c | if (!(filp = current->files->fd[fd])) |
filp | 508 | fs/open.c | return (close_fp (filp, fd)); |
filp | 24 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 29 | fs/pipe.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 71 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 93 | fs/pipe.c | if (filp->f_flags & O_NONBLOCK) |
filp | 128 | fs/pipe.c | static int bad_pipe_rw(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 133 | fs/pipe.c | static int pipe_ioctl(struct inode *pino, struct file * filp, |
filp | 149 | fs/pipe.c | static int pipe_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 175 | fs/pipe.c | static int fifo_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 202 | fs/pipe.c | static int connect_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 207 | fs/pipe.c | if (filp->f_flags & O_NONBLOCK) |
filp | 214 | fs/pipe.c | filp->f_op = &read_fifo_fops; |
filp | 215 | fs/pipe.c | return pipe_read(inode,filp,buf,count); |
filp | 218 | fs/pipe.c | static int connect_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 223 | fs/pipe.c | filp->f_op = &read_fifo_fops; |
filp | 246 | fs/pipe.c | static void pipe_read_release(struct inode * inode, struct file * filp) |
filp | 252 | fs/pipe.c | static void pipe_write_release(struct inode * inode, struct file * filp) |
filp | 258 | fs/pipe.c | static void pipe_rdwr_release(struct inode * inode, struct file * filp) |
filp | 132 | fs/proc/base.c | static int proc_readbase(struct inode * inode, struct file * filp, |
filp | 148 | fs/proc/base.c | if (((unsigned) filp->f_pos) < NR_BASE_DIRENTRY) { |
filp | 149 | fs/proc/base.c | de = base_dir + filp->f_pos; |
filp | 150 | fs/proc/base.c | filp->f_pos++; |
filp | 118 | fs/proc/fd.c | static int proc_readfd(struct inode * inode, struct file * filp, |
filp | 134 | fs/proc/fd.c | fd = filp->f_pos; |
filp | 135 | fs/proc/fd.c | filp->f_pos++; |
filp | 161 | fs/proc/net.c | static int proc_readnetdir(struct inode * inode, struct file * filp, |
filp | 171 | fs/proc/net.c | if (((unsigned) filp->f_pos) < NR_NET_DIRENTRY) { |
filp | 172 | fs/proc/net.c | de = net_dir + filp->f_pos; |
filp | 173 | fs/proc/net.c | filp->f_pos++; |
filp | 136 | fs/proc/root.c | static int proc_readroot(struct inode * inode, struct file * filp, |
filp | 146 | fs/proc/root.c | nr = filp->f_pos; |
filp | 150 | fs/proc/root.c | filp->f_pos++; |
filp | 163 | fs/proc/root.c | filp->f_pos++; |
filp | 23 | fs/sysv/dir.c | static int sysv_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 64 | fs/sysv/dir.c | static int sysv_readdir(struct inode * inode, struct file * filp, |
filp | 76 | fs/sysv/dir.c | if ((unsigned long)(filp->f_pos) % SYSV_DIRSIZE) |
filp | 78 | fs/sysv/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 79 | fs/sysv/dir.c | offset = filp->f_pos & sb->sv_block_size_1; |
filp | 80 | fs/sysv/dir.c | bh = sysv_file_bread(inode, filp->f_pos >> sb->sv_block_size_bits, 0, &bh_data); |
filp | 82 | fs/sysv/dir.c | filp->f_pos += sb->sv_block_size - offset; |
filp | 85 | fs/sysv/dir.c | while (offset < sb->sv_block_size && filp->f_pos < inode->i_size) { |
filp | 88 | fs/sysv/dir.c | filp->f_pos += SYSV_DIRSIZE; |
filp | 98 | fs/sysv/dir.c | inode->i_dev, inode->i_ino, (off_t) filp->f_pos - SYSV_DIRSIZE, de->inode); |
filp | 108 | fs/sysv/file.c | int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 128 | fs/sysv/file.c | offset = filp->f_pos; |
filp | 144 | fs/sysv/file.c | if (filp->f_reada) { |
filp | 210 | fs/sysv/file.c | filp->f_pos += chars; |
filp | 235 | fs/sysv/file.c | filp->f_reada = 1; |
filp | 241 | fs/sysv/file.c | static int sysv_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 267 | fs/sysv/file.c | if (filp->f_flags & O_APPEND) |
filp | 270 | fs/sysv/file.c | pos = filp->f_pos; |
filp | 307 | fs/sysv/file.c | filp->f_pos = pos; |
filp | 37 | fs/sysv/mmap.c | struct file filp; |
filp | 41 | fs/sysv/mmap.c | filp.f_pos = address - area->vm_start + area->vm_offset; |
filp | 42 | fs/sysv/mmap.c | filp.f_reada = 0; |
filp | 48 | fs/sysv/mmap.c | count = sysv_file_read (area->vm_inode, &filp, (char *)page, remaining); |
filp | 30 | fs/umsdos/dir.c | int UMSDOS_dir_read(struct inode *inode,struct file *filp,char *buf, |
filp | 46 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
filp | 57 | fs/umsdos/dir.c | if (filp->f_pos == UMSDOS_SPECIAL_DIRFPOS |
filp | 76 | fs/umsdos/dir.c | filp->f_pos++; |
filp | 77 | fs/umsdos/dir.c | }else if (filp->f_pos < 2 |
filp | 78 | fs/umsdos/dir.c | || (dir != dir->i_sb->s_mounted && filp->f_pos == 32)){ |
filp | 112 | fs/umsdos/dir.c | ret = msdos_readdir(dir,filp,dirent,count); |
filp | 113 | fs/umsdos/dir.c | if (filp->f_pos == 64) filp->f_pos = UMSDOS_SPECIAL_DIRFPOS; |
filp | 118 | fs/umsdos/dir.c | if (filp->f_pos <= UMSDOS_SPECIAL_DIRFPOS+1) filp->f_pos = 0; |
filp | 119 | fs/umsdos/dir.c | PRINTK (("f_pos %ld i_size %d\n",filp->f_pos,emd_dir->i_size)); |
filp | 121 | fs/umsdos/dir.c | while (filp->f_pos < emd_dir->i_size){ |
filp | 123 | fs/umsdos/dir.c | off_t cur_f_pos = filp->f_pos; |
filp | 124 | fs/umsdos/dir.c | if (umsdos_emd_dir_readentry (emd_dir,filp,&entry)!=0){ |
filp | 216 | fs/umsdos/dir.c | PRINTK (("read dir %p pos %d ret %d\n",dir,filp->f_pos,ret)); |
filp | 226 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
filp | 234 | fs/umsdos/dir.c | ret = umsdos_readdir_x (dir,filp,dirent,1,count,&entry,1,&f_pos); |
filp | 352 | fs/umsdos/dir.c | struct file filp; |
filp | 353 | fs/umsdos/dir.c | filp.f_pos = 0; |
filp | 356 | fs/umsdos/dir.c | if (umsdos_readdir_kmem (dir,&filp,&dirent,1) <= 0){ |
filp | 372 | fs/umsdos/dir.c | struct file filp; |
filp | 373 | fs/umsdos/dir.c | filp.f_pos = UMSDOS_SPECIAL_DIRFPOS; |
filp | 377 | fs/umsdos/dir.c | if (umsdos_readdir_x(dir,&filp,&dirent |
filp | 625 | fs/umsdos/dir.c | struct file filp; |
filp | 626 | fs/umsdos/dir.c | filp.f_pos = 0; |
filp | 628 | fs/umsdos/dir.c | if (umsdos_file_read_kmem (hlink,&filp,path,hlink->i_size) |
filp | 23 | fs/umsdos/emd.c | struct file *filp, |
filp | 29 | fs/umsdos/emd.c | ret = msdos_readdir(inode,filp,dirent,count); |
filp | 38 | fs/umsdos/emd.c | struct file *filp, |
filp | 44 | fs/umsdos/emd.c | ret = msdos_file_read(inode,filp,buf,count); |
filp | 53 | fs/umsdos/emd.c | struct file *filp, |
filp | 59 | fs/umsdos/emd.c | ret = msdos_file_write(inode,filp,buf,count); |
filp | 73 | fs/umsdos/emd.c | struct file *filp, |
filp | 78 | fs/umsdos/emd.c | filp->f_flags = 0; |
filp | 79 | fs/umsdos/emd.c | written = umsdos_file_write_kmem (emd_dir,filp,buf,count); |
filp | 89 | fs/umsdos/emd.c | struct file *filp, |
filp | 95 | fs/umsdos/emd.c | filp->f_flags = 0; |
filp | 96 | fs/umsdos/emd.c | sizeread = umsdos_file_read_kmem (emd_dir,filp,buf,count); |
filp | 150 | fs/umsdos/emd.c | struct file *filp, |
filp | 153 | fs/umsdos/emd.c | int ret = umsdos_emd_dir_read(emd_dir,filp,(char*)entry,UMSDOS_REC_SIZE); |
filp | 158 | fs/umsdos/emd.c | ret = umsdos_emd_dir_read(emd_dir,filp |
filp | 176 | fs/umsdos/emd.c | struct file filp; |
filp | 199 | fs/umsdos/emd.c | filp.f_pos = info->f_pos; |
filp | 200 | fs/umsdos/emd.c | ret = umsdos_emd_dir_write(emd_dir,&filp,(char*)entry,info->recsize); |
filp | 215 | fs/umsdos/emd.c | struct file filp; |
filp | 237 | fs/umsdos/emd.c | remain = inode->i_size - buf->filp.f_pos; |
filp | 240 | fs/umsdos/emd.c | ret = umsdos_emd_dir_read (inode,&buf->filp,buf->buffer+mustmove |
filp | 298 | fs/umsdos/emd.c | buf.filp.f_pos = 0; |
filp | 305 | fs/umsdos/emd.c | int file_pos = buf.filp.f_pos - buf.size + buf.pos; |
filp | 454 | fs/umsdos/emd.c | struct file filp; |
filp | 456 | fs/umsdos/emd.c | filp.f_pos = 0; |
filp | 457 | fs/umsdos/emd.c | filp.f_flags = O_RDONLY; |
filp | 459 | fs/umsdos/emd.c | while (filp.f_pos < emd_dir->i_size){ |
filp | 461 | fs/umsdos/emd.c | if (umsdos_emd_dir_readentry(emd_dir,&filp,&entry)!=0){ |
filp | 30 | fs/umsdos/file.c | struct file *filp, |
filp | 35 | fs/umsdos/file.c | int ret = msdos_file_read(inode,filp,buf,count); |
filp | 45 | fs/umsdos/file.c | struct file *filp, |
filp | 49 | fs/umsdos/file.c | return msdos_file_write(inode,filp,buf,count); |
filp | 300 | fs/umsdos/inode.c | struct file filp; |
filp | 302 | fs/umsdos/inode.c | filp.f_pos = inode->u.umsdos_i.pos; |
filp | 303 | fs/umsdos/inode.c | PRINTK (("pos = %d ",filp.f_pos)); |
filp | 306 | fs/umsdos/inode.c | ret = umsdos_emd_dir_read (emd_owner,&filp,(char*)&entry |
filp | 325 | fs/umsdos/inode.c | filp.f_pos = inode->u.umsdos_i.pos; |
filp | 326 | fs/umsdos/inode.c | ret = umsdos_emd_dir_write (emd_owner,&filp,(char*)&entry |
filp | 24 | fs/umsdos/ioctl.c | struct file *filp, |
filp | 79 | fs/umsdos/ioctl.c | ret = msdos_readdir(dir,filp,&idata->dos_dirent,1); |
filp | 95 | fs/umsdos/ioctl.c | if (filp->f_pos >= emd_dir->i_size){ |
filp | 100 | fs/umsdos/ioctl.c | off_t f_pos = filp->f_pos; |
filp | 101 | fs/umsdos/ioctl.c | ret = umsdos_emd_dir_readentry (emd_dir,filp,&entry); |
filp | 425 | fs/umsdos/namei.c | struct file filp; |
filp | 426 | fs/umsdos/namei.c | filp.f_pos = 0; |
filp | 428 | fs/umsdos/namei.c | ret = umsdos_file_write_kmem (inode,&filp,(char*)symname,len); |
filp | 29 | fs/umsdos/rdir.c | struct file *filp, |
filp | 35 | fs/umsdos/rdir.c | ret = msdos_readdir(dir,filp,dirent,count); |
filp | 35 | fs/umsdos/symlink.c | struct file filp; |
filp | 36 | fs/umsdos/symlink.c | filp.f_pos = 0; |
filp | 38 | fs/umsdos/symlink.c | if ((*msdos_read) (inode, &filp, buffer,ret) != ret){ |
filp | 60 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
filp | 66 | fs/xiafs/dir.c | struct file * filp, struct dirent * dirent, int count) |
filp | 76 | fs/xiafs/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 77 | fs/xiafs/dir.c | offset = filp->f_pos & (XIAFS_ZSIZE(inode->i_sb) - 1); |
filp | 78 | fs/xiafs/dir.c | bh = xiafs_bread(inode, filp->f_pos >> XIAFS_ZSIZE_BITS(inode->i_sb),0); |
filp | 80 | fs/xiafs/dir.c | filp->f_pos += XIAFS_ZSIZE(inode->i_sb)-offset; |
filp | 84 | fs/xiafs/dir.c | while (offset < XIAFS_ZSIZE(inode->i_sb) && filp->f_pos < inode->i_size) { |
filp | 96 | fs/xiafs/dir.c | filp->f_pos += de->d_rec_len; |
filp | 70 | fs/xiafs/file.c | xiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 87 | fs/xiafs/file.c | offset = filp->f_pos; |
filp | 99 | fs/xiafs/file.c | if (filp->f_reada) { |
filp | 156 | fs/xiafs/file.c | filp->f_pos += chars; |
filp | 181 | fs/xiafs/file.c | filp->f_reada = 1; |
filp | 190 | fs/xiafs/file.c | xiafs_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 209 | fs/xiafs/file.c | if (filp->f_flags & O_APPEND) |
filp | 212 | fs/xiafs/file.c | pos = filp->f_pos; |
filp | 248 | fs/xiafs/file.c | filp->f_pos = pos; |
filp | 63 | include/linux/ext_fs.h | extern int ext_open(struct inode * inode, struct file * filp); |
filp | 64 | include/linux/ext_fs.h | extern void ext_release(struct inode * inode, struct file * filp); |
filp | 362 | include/linux/fs.h | extern int blkdev_open(struct inode * inode, struct file * filp); |
filp | 368 | include/linux/fs.h | extern int chrdev_open(struct inode * inode, struct file * filp); |
filp | 167 | include/linux/iso_fs.h | extern int isofs_open(struct inode * inode, struct file * filp); |
filp | 168 | include/linux/iso_fs.h | extern void isofs_release(struct inode * inode, struct file * filp); |
filp | 183 | include/linux/msdos_fs.h | extern int msdos_readdir (struct inode *inode, struct file *filp, |
filp | 295 | include/linux/tty.h | extern void tty_unhangup(struct file *filp); |
filp | 296 | include/linux/tty.h | extern int tty_hung_up_p(struct file * filp); |
filp | 309 | include/linux/tty.h | extern int rs_open(struct tty_struct * tty, struct file * filp); |
filp | 313 | include/linux/tty.h | extern int pty_open(struct tty_struct * tty, struct file * filp); |
filp | 317 | include/linux/tty.h | extern int con_open(struct tty_struct * tty, struct file * filp); |
filp | 124 | include/linux/tty_driver.h | int (*open)(struct tty_struct * tty, struct file * filp); |
filp | 125 | include/linux/tty_driver.h | void (*close)(struct tty_struct * tty, struct file * filp); |
filp | 1100 | net/socket.c | int sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |
filp | 1104 | net/socket.c | sock = socki_lookup (filp->f_inode); |