tag | line | file | source code |
filp | 230 | drivers/block/cdu31a.c | static int scd_open(struct inode *inode, struct file *filp); |
filp | 2538 | drivers/block/cdu31a.c | struct file *filp) |
filp | 2547 | drivers/block/cdu31a.c | if ((filp) && filp->f_mode & 2) |
filp | 2641 | drivers/block/cdu31a.c | if (filp) |
filp | 2658 | drivers/block/cdu31a.c | struct file *filp) |
filp | 2667 | drivers/block/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
filp | 2672 | drivers/block/floppy.c | #define IOCTL_ALLOWED (filp && (filp->f_mode & IOCTL_MODE_BIT)) |
filp | 2892 | drivers/block/floppy.c | static int floppy_read(struct inode * inode, struct file * filp, |
filp | 2900 | drivers/block/floppy.c | return block_read(inode, filp, buf, count); |
filp | 2903 | drivers/block/floppy.c | static int floppy_write(struct inode * inode, struct file * filp, |
filp | 2917 | drivers/block/floppy.c | block = (filp->f_pos + count) >> 9; |
filp | 2920 | drivers/block/floppy.c | ret= block_write(inode, filp, buf, count); |
filp | 2924 | drivers/block/floppy.c | static void floppy_release(struct inode * inode, struct file * filp) |
filp | 2930 | drivers/block/floppy.c | if( !filp || (filp->f_mode & (2 | OPEN_WRITE_BIT))) |
filp | 2933 | drivers/block/floppy.c | block_fsync(inode,filp); |
filp | 2950 | drivers/block/floppy.c | do{floppy_release(inode,filp); \ |
filp | 2953 | drivers/block/floppy.c | static int floppy_open(struct inode * inode, struct file * filp) |
filp | 2958 | drivers/block/floppy.c | if (!filp) { |
filp | 2981 | drivers/block/floppy.c | (UDRS->fd_ref && (filp->f_flags & O_EXCL))) |
filp | 2987 | drivers/block/floppy.c | if (filp->f_flags & O_EXCL) |
filp | 3001 | drivers/block/floppy.c | if ((filp->f_mode & 2) || permission(inode,2)) |
filp | 3002 | drivers/block/floppy.c | filp->f_mode |= IOCTL_MODE_BIT; |
filp | 3003 | drivers/block/floppy.c | if (filp->f_mode & 2) |
filp | 3004 | drivers/block/floppy.c | filp->f_mode |= OPEN_WRITE_BIT; |
filp | 3009 | drivers/block/floppy.c | if (filp->f_flags & O_NDELAY) |
filp | 3011 | drivers/block/floppy.c | if (filp->f_mode & 3) { |
filp | 3017 | drivers/block/floppy.c | if ((filp->f_mode & 2) && !(UTESTF(FD_DISK_WRITABLE))) |
filp | 895 | drivers/block/hd.c | static int hd_open(struct inode * inode, struct file * filp) |
filp | 1238 | drivers/block/ide.c | static int ide_open(struct inode * inode, struct file * filp) |
filp | 1253 | drivers/block/ide.c | return cdrom_open (inode, filp, dev); |
filp | 206 | drivers/block/ramdisk.c | struct file filp; |
filp | 222 | drivers/block/ramdisk.c | memset(&filp, 0, sizeof(filp)); |
filp | 225 | drivers/block/ramdisk.c | filp.f_mode = 1; /* read only */ |
filp | 226 | drivers/block/ramdisk.c | filp.f_inode = &inode; |
filp | 227 | drivers/block/ramdisk.c | if(blkdev_open(&inode, &filp) == 0 ){ |
filp | 229 | drivers/block/ramdisk.c | if(filp.f_op && filp.f_op->release) |
filp | 230 | drivers/block/ramdisk.c | filp.f_op->release(&inode,&filp); |
filp | 2198 | drivers/char/console.c | int con_open(struct tty_struct *tty, struct file * filp) |
filp | 2010 | drivers/char/cyclades.c | cy_close(struct tty_struct * tty, struct file * filp) |
filp | 2134 | drivers/char/cyclades.c | block_til_ready(struct tty_struct *tty, struct file * filp, |
filp | 2183 | drivers/char/cyclades.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 2230 | drivers/char/cyclades.c | if (tty_hung_up_p(filp) |
filp | 2262 | drivers/char/cyclades.c | if (!tty_hung_up_p(filp)){ |
filp | 2284 | drivers/char/cyclades.c | cy_open(struct tty_struct *tty, struct file * filp) |
filp | 2332 | drivers/char/cyclades.c | retval = block_til_ready(tty, filp, info); |
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 | 1820 | drivers/char/serial.c | static void rs_close(struct tty_struct *tty, struct file * filp) |
filp | 1831 | drivers/char/serial.c | if (tty_hung_up_p(filp)) { |
filp | 1946 | drivers/char/serial.c | static int block_til_ready(struct tty_struct *tty, struct file * filp, |
filp | 1992 | drivers/char/serial.c | if ((filp->f_flags & O_NONBLOCK) || |
filp | 2031 | drivers/char/serial.c | if (tty_hung_up_p(filp) || |
filp | 2060 | drivers/char/serial.c | if (!tty_hung_up_p(filp)) |
filp | 2079 | drivers/char/serial.c | int rs_open(struct tty_struct *tty, struct file * filp) |
filp | 2112 | drivers/char/serial.c | retval = block_til_ready(tty, filp, info); |
filp | 1917 | drivers/char/tpqic02.c | static int qic02_tape_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 1921 | drivers/char/tpqic02.c | unsigned short flags = filp->f_flags; |
filp | 1933 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
filp | 2053 | drivers/char/tpqic02.c | filp->f_pos += bytes_done; |
filp | 2092 | drivers/char/tpqic02.c | static int qic02_tape_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 2096 | drivers/char/tpqic02.c | unsigned short flags = filp->f_flags; |
filp | 2107 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
filp | 2220 | drivers/char/tpqic02.c | filp->f_pos += bytes_done; |
filp | 2244 | drivers/char/tpqic02.c | static int qic02_tape_open(struct inode * inode, struct file * filp) |
filp | 2247 | drivers/char/tpqic02.c | unsigned short flags = filp->f_flags; |
filp | 2267 | drivers/char/tpqic02.c | if (filp->f_count>1) { /* filp->f_count==1 for the first open() */ |
filp | 2430 | drivers/char/tpqic02.c | static int qic02_tape_readdir(struct inode * inode, struct file * filp, struct dirent * dp, int count) |
filp | 2437 | drivers/char/tpqic02.c | static void qic02_tape_release(struct inode * inode, struct file * filp) |
filp | 2558 | drivers/char/tpqic02.c | static int qic02_tape_ioctl(struct inode * inode, struct file * filp, |
filp | 108 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on); |
filp | 300 | drivers/char/tty_io.c | static int hung_up_tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 347 | drivers/char/tty_io.c | struct file * filp; |
filp | 353 | drivers/char/tty_io.c | for (filp = first_file, i=0; i<nr_files; i++, filp = filp->f_next) { |
filp | 354 | drivers/char/tty_io.c | if (!filp->f_count) |
filp | 356 | drivers/char/tty_io.c | if (filp->private_data != tty) |
filp | 358 | drivers/char/tty_io.c | if (filp->f_inode && filp->f_inode->i_rdev == CONSOLE_DEV) |
filp | 360 | drivers/char/tty_io.c | if (filp->f_op != &tty_fops) |
filp | 362 | drivers/char/tty_io.c | tty_fasync(filp->f_inode, filp, 0); |
filp | 363 | drivers/char/tty_io.c | filp->f_op = fops; |
filp | 430 | drivers/char/tty_io.c | int tty_hung_up_p(struct file * filp) |
filp | 432 | drivers/char/tty_io.c | return (filp->f_op == &hung_up_tty_fops); |
filp | 929 | drivers/char/tty_io.c | static void release_dev(struct file * filp) |
filp | 936 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
filp | 937 | drivers/char/tty_io.c | if (tty_paranoia_check(tty, filp->f_inode->i_rdev, "release_dev")) |
filp | 942 | drivers/char/tty_io.c | tty_fasync(filp->f_inode, filp, 0); |
filp | 1006 | drivers/char/tty_io.c | tty->driver.close(tty, filp); |
filp | 1092 | drivers/char/tty_io.c | filp->private_data = 0; |
filp | 1112 | drivers/char/tty_io.c | static int tty_open(struct inode * inode, struct file * filp) |
filp | 1120 | drivers/char/tty_io.c | noctty = filp->f_flags & O_NOCTTY; |
filp | 1137 | drivers/char/tty_io.c | filp->private_data = tty; |
filp | 1146 | drivers/char/tty_io.c | retval = tty->driver.open(tty, filp); |
filp | 1158 | drivers/char/tty_io.c | release_dev(filp); |
filp | 1167 | drivers/char/tty_io.c | filp->f_op = &tty_fops; |
filp | 1186 | drivers/char/tty_io.c | static void tty_release(struct inode * inode, struct file * filp) |
filp | 1188 | drivers/char/tty_io.c | release_dev(filp); |
filp | 1191 | drivers/char/tty_io.c | static int tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 1195 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
filp | 1200 | drivers/char/tty_io.c | return (tty->ldisc.select)(tty, inode, filp, sel_type, wait); |
filp | 1204 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on) |
filp | 1209 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
filp | 1214 | drivers/char/tty_io.c | if (fa->fa_file == filp) |
filp | 1225 | drivers/char/tty_io.c | fa->fa_file = filp; |
filp | 1230 | drivers/char/tty_io.c | if (filp->f_owner == 0) { |
filp | 1232 | drivers/char/tty_io.c | filp->f_owner = -tty->pgrp; |
filp | 1234 | drivers/char/tty_io.c | filp->f_owner = current->pid; |
filp | 1538 | drivers/char/tty_io.c | struct file *filp; |
filp | 1555 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
filp | 1556 | drivers/char/tty_io.c | if (filp && (filp->f_op == &tty_fops) && |
filp | 1557 | 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 | 2072 | drivers/scsi/53c7,8xx.c | static debugger_user_write (struct inode *inode,struct file *filp, |
filp | 2124 | drivers/scsi/53c7,8xx.c | static debugger_user_read (struct inode *inode,struct file *filp, |
filp | 73 | drivers/scsi/sd.c | static int sd_open(struct inode * inode, struct file * filp) |
filp | 81 | drivers/scsi/sg.c | static int sg_open(struct inode * inode, struct file * filp) |
filp | 84 | drivers/scsi/sg.c | int flags=filp->f_flags; |
filp | 125 | drivers/scsi/sg.c | static void sg_close(struct inode * inode, struct file * filp) |
filp | 168 | drivers/scsi/sg.c | static int sg_read(struct inode *inode,struct file *filp,char *buf,int count) |
filp | 177 | drivers/scsi/sg.c | if (filp->f_flags & O_NONBLOCK) |
filp | 226 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,char *buf,int count) |
filp | 246 | drivers/scsi/sg.c | if (filp->f_flags & O_NONBLOCK) |
filp | 276 | drivers/scsi/sg.c | if (!(SCpnt=allocate_device(NULL,device->device, !(filp->f_flags & O_NONBLOCK)))) |
filp | 402 | drivers/scsi/sr.c | static int sr_open(struct inode * inode, struct file * filp) |
filp | 407 | drivers/scsi/sr.c | if (filp->f_mode & 2) |
filp | 343 | drivers/scsi/st.c | flush_buffer(struct inode * inode, struct file * filp, int seek_next) |
filp | 380 | drivers/scsi/st.c | result = st_int_ioctl(inode, filp, MTBSR, backspace); |
filp | 389 | drivers/scsi/st.c | scsi_tape_open(struct inode * inode, struct file * filp) |
filp | 420 | drivers/scsi/st.c | flags = filp->f_flags; |
filp | 601 | drivers/scsi/st.c | scsi_tape_close(struct inode * inode, struct file * filp) |
filp | 621 | drivers/scsi/st.c | printk("st%d: File length %ld bytes.\n", dev, (long)(filp->f_pos)); |
filp | 663 | drivers/scsi/st.c | flush_buffer(inode, filp, 0); |
filp | 668 | drivers/scsi/st.c | st_int_ioctl(inode, filp, MTREW, 1); |
filp | 680 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 709 | drivers/scsi/st.c | retval = flush_buffer(inode, filp, 0); |
filp | 814 | drivers/scsi/st.c | filp->f_pos += do_count - transfer; |
filp | 853 | drivers/scsi/st.c | filp->f_pos += do_count; |
filp | 869 | drivers/scsi/st.c | filp->f_pos += count; |
filp | 915 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 943 | drivers/scsi/st.c | transfer = flush_buffer(inode, filp, 0); |
filp | 1119 | 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 | 53 | fs/block_dev.c | block = filp->f_pos >> blocksize_bits; |
filp | 54 | fs/block_dev.c | offset = filp->f_pos & (blocksize-1); |
filp | 80 | fs/block_dev.c | if(!filp->f_reada || |
filp | 117 | fs/block_dev.c | filp->f_pos += chars; |
filp | 125 | fs/block_dev.c | if (filp->f_flags & O_SYNC) |
filp | 151 | fs/block_dev.c | filp->f_reada = 1; |
filp | 157 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 187 | fs/block_dev.c | offset = filp->f_pos; |
filp | 209 | fs/block_dev.c | if (filp->f_reada) { |
filp | 281 | fs/block_dev.c | filp->f_pos += chars; |
filp | 306 | fs/block_dev.c | filp->f_reada = 1; |
filp | 310 | fs/block_dev.c | int block_fsync(struct inode *inode, struct file *filp) |
filp | 234 | fs/buffer.c | int file_fsync (struct inode *inode, struct file *filp) |
filp | 171 | fs/devices.c | int blkdev_open(struct inode * inode, struct file * filp) |
filp | 178 | fs/devices.c | filp->f_op = blkdevs[i].fops; |
filp | 179 | fs/devices.c | if (filp->f_op->open) |
filp | 180 | fs/devices.c | return filp->f_op->open(inode,filp); |
filp | 222 | fs/devices.c | int chrdev_open(struct inode * inode, struct file * filp) |
filp | 229 | fs/devices.c | filp->f_op = chrdevs[i].fops; |
filp | 230 | fs/devices.c | if (filp->f_op->open) |
filp | 231 | fs/devices.c | return filp->f_op->open(inode,filp); |
filp | 26 | fs/ext/dir.c | static int ext_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 67 | fs/ext/dir.c | static int ext_readdir(struct inode * inode, struct file * filp, |
filp | 79 | fs/ext/dir.c | if ((filp->f_pos & 7) != 0) |
filp | 82 | fs/ext/dir.c | while (!ret && filp->f_pos < inode->i_size) { |
filp | 83 | fs/ext/dir.c | offset = filp->f_pos & 1023; |
filp | 84 | fs/ext/dir.c | bh = ext_bread(inode,(filp->f_pos)>>BLOCK_SIZE_BITS,0); |
filp | 86 | fs/ext/dir.c | filp->f_pos += 1024-offset; |
filp | 97 | fs/ext/dir.c | while (!ret && offset < 1024 && filp->f_pos < inode->i_size) { |
filp | 100 | fs/ext/dir.c | (de->rec_len + (off_t) filp->f_pos - 1) / 1024 > ((off_t) filp->f_pos / 1024)) { |
filp | 104 | fs/ext/dir.c | filp->f_pos += 1024-offset; |
filp | 105 | fs/ext/dir.c | if (filp->f_pos > inode->i_size) |
filp | 106 | fs/ext/dir.c | filp->f_pos = inode->i_size; |
filp | 110 | 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 | 28 | fs/ext2/dir.c | static int ext2_dir_read (struct inode * inode, struct file * filp, |
filp | 100 | fs/ext2/dir.c | static int ext2_readdir (struct inode * inode, struct file * filp, |
filp | 116 | fs/ext2/dir.c | offset = filp->f_pos & (sb->s_blocksize - 1); |
filp | 118 | fs/ext2/dir.c | while (count > 0 && !stored && filp->f_pos < inode->i_size) { |
filp | 119 | fs/ext2/dir.c | blk = (filp->f_pos) >> EXT2_BLOCK_SIZE_BITS(sb); |
filp | 122 | fs/ext2/dir.c | filp->f_pos += sb->s_blocksize - offset; |
filp | 150 | fs/ext2/dir.c | if (filp->f_version != inode->i_version) { |
filp | 165 | fs/ext2/dir.c | filp->f_pos = (filp->f_pos & ~(sb->s_blocksize - 1)) |
filp | 167 | fs/ext2/dir.c | filp->f_version = inode->i_version; |
filp | 170 | fs/ext2/dir.c | while (count > 0 && filp->f_pos < inode->i_size |
filp | 177 | fs/ext2/dir.c | filp->f_pos = (filp->f_pos & (sb->s_blocksize - 1)) |
filp | 217 | 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 | 261 | fs/ext2/file.c | if (filp->f_flags & O_APPEND) |
filp | 264 | fs/ext2/file.c | pos = filp->f_pos; |
filp | 272 | fs/ext2/file.c | if (filp->f_flags & O_SYNC) |
filp | 308 | fs/ext2/file.c | if (filp->f_flags & O_SYNC) |
filp | 336 | fs/ext2/file.c | if (filp->f_flags & O_SYNC) |
filp | 340 | fs/ext2/file.c | filp->f_pos = pos; |
filp | 350 | fs/ext2/file.c | static void ext2_release_file (struct inode * inode, struct file * filp) |
filp | 352 | 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 | 72 | fs/fcntl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
filp | 86 | fs/fcntl.c | return filp->f_flags; |
filp | 92 | fs/fcntl.c | if (IS_APPEND(filp->f_inode) && !(arg & O_APPEND)) |
filp | 94 | fs/fcntl.c | if ((arg & FASYNC) && !(filp->f_flags & FASYNC) && |
filp | 95 | fs/fcntl.c | filp->f_op->fasync) |
filp | 96 | fs/fcntl.c | filp->f_op->fasync(filp->f_inode, filp, 1); |
filp | 97 | fs/fcntl.c | if (!(arg & FASYNC) && (filp->f_flags & FASYNC) && |
filp | 98 | fs/fcntl.c | filp->f_op->fasync) |
filp | 99 | fs/fcntl.c | filp->f_op->fasync(filp->f_inode, filp, 0); |
filp | 100 | fs/fcntl.c | filp->f_flags &= ~(O_APPEND | O_NONBLOCK | FASYNC); |
filp | 101 | fs/fcntl.c | filp->f_flags |= arg & (O_APPEND | O_NONBLOCK | |
filp | 118 | fs/fcntl.c | return filp->f_owner; |
filp | 160 | fs/fcntl.c | filp->f_owner = arg; |
filp | 161 | fs/fcntl.c | if (S_ISSOCK (filp->f_inode->i_mode)) |
filp | 162 | fs/fcntl.c | sock_fcntl (filp, F_SETOWN, arg); |
filp | 166 | fs/fcntl.c | if (S_ISSOCK (filp->f_inode->i_mode)) |
filp | 168 | 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 | 186 | fs/hpfs/hpfs_fs.c | static int hpfs_dir_read(struct inode *inode, struct file *filp, |
filp | 188 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, |
filp | 866 | fs/hpfs/hpfs_fs.c | static int hpfs_file_read(struct inode *inode, struct file *filp, |
filp | 880 | fs/hpfs/hpfs_fs.c | if (count > inode->i_size - (off_t) filp->f_pos) |
filp | 881 | fs/hpfs/hpfs_fs.c | count = inode->i_size - filp->f_pos; |
filp | 889 | fs/hpfs/hpfs_fs.c | q = filp->f_pos >> 9; |
filp | 890 | fs/hpfs/hpfs_fs.c | r = filp->f_pos & 511; |
filp | 926 | fs/hpfs/hpfs_fs.c | if (count > inode->i_size - (off_t) filp->f_pos - n + n0) |
filp | 927 | fs/hpfs/hpfs_fs.c | count = inode->i_size - filp->f_pos - n + n0; |
filp | 935 | fs/hpfs/hpfs_fs.c | filp->f_pos += n; |
filp | 1332 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, |
filp | 1347 | fs/hpfs/hpfs_fs.c | switch ((off_t) filp->f_pos) { |
filp | 1350 | fs/hpfs/hpfs_fs.c | filp->f_pos = -1; |
filp | 1356 | fs/hpfs/hpfs_fs.c | filp->f_pos = 1; |
filp | 1363 | fs/hpfs/hpfs_fs.c | de = map_pos_dirent(inode, &filp->f_pos, &qbh); |
filp | 1365 | fs/hpfs/hpfs_fs.c | filp->f_pos = -2; |
filp | 1564 | 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 | 63 | fs/isofs/dir.c | static int isofs_readdir(struct inode * inode, struct file * filp, |
filp | 83 | fs/isofs/dir.c | offset = filp->f_pos & (bufsize - 1); |
filp | 84 | fs/isofs/dir.c | block = isofs_bmap(inode,filp->f_pos>>bufbits); |
filp | 88 | fs/isofs/dir.c | if(!(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size))) |
filp | 91 | fs/isofs/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 94 | fs/isofs/dir.c | block, offset, filp->f_pos); |
filp | 106 | fs/isofs/dir.c | filp->f_pos = ((filp->f_pos & ~(ISOFS_BLOCK_SIZE - 1)) |
filp | 108 | fs/isofs/dir.c | block = isofs_bmap(inode,(filp->f_pos)>>bufbits); |
filp | 110 | fs/isofs/dir.c | || !(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, |
filp | 123 | fs/isofs/dir.c | filp->f_pos += *((unsigned char *) de); |
filp | 133 | fs/isofs/dir.c | offset = filp->f_pos & (bufsize - 1); |
filp | 134 | fs/isofs/dir.c | block = isofs_bmap(inode,(filp->f_pos)>> bufbits); |
filp | 137 | 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 = (inode->u.isofs_i.i_first_extent + filp->f_pos) |
filp | 225 | fs/isofs/file.c | filp->f_pos += chars; |
filp | 255 | fs/isofs/file.c | filp->f_reada = 1; |
filp | 33 | fs/locks.c | static int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l, |
filp | 37 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd); |
filp | 52 | fs/locks.c | struct file *filp; |
filp | 55 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
filp | 63 | fs/locks.c | if (!copy_flock(filp, &file_lock, &flock, fd)) |
filp | 66 | fs/locks.c | for (fl = filp->f_inode->i_flock; fl != NULL; fl = fl->fl_next) { |
filp | 91 | fs/locks.c | struct file *filp; |
filp | 99 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
filp | 105 | fs/locks.c | if (!copy_flock(filp, &file_lock, &flock, fd)) |
filp | 109 | fs/locks.c | if (!(filp->f_mode & 1)) |
filp | 113 | fs/locks.c | if (!(filp->f_mode & 2)) |
filp | 117 | fs/locks.c | if (!(filp->f_mode & 3)) |
filp | 122 | fs/locks.c | if (!(filp->f_mode & 3)) |
filp | 136 | fs/locks.c | for (fl = filp->f_inode->i_flock; fl != NULL; fl = fl->fl_next) { |
filp | 162 | fs/locks.c | return lock_it(filp, &file_lock, fd); |
filp | 199 | fs/locks.c | void fcntl_remove_locks(struct task_struct *task, struct file *filp, |
filp | 207 | fs/locks.c | before = &filp->f_inode->i_flock; |
filp | 222 | fs/locks.c | static int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l, |
filp | 227 | fs/locks.c | if (!filp->f_inode) /* just in case */ |
filp | 234 | fs/locks.c | case 1 /*SEEK_CUR*/ : start = filp->f_pos; break; |
filp | 235 | fs/locks.c | case 2 /*SEEK_END*/ : start = filp->f_inode->i_size; break; |
filp | 296 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd) |
filp | 308 | fs/locks.c | before = &filp->f_inode->i_flock; |
filp | 19 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 60 | fs/minix/dir.c | static int minix_readdir(struct inode * inode, struct file * filp, |
filp | 73 | fs/minix/dir.c | if (filp->f_pos & (info->s_dirsize - 1)) |
filp | 76 | fs/minix/dir.c | while (!ret && filp->f_pos < inode->i_size) { |
filp | 77 | fs/minix/dir.c | offset = filp->f_pos & 1023; |
filp | 78 | fs/minix/dir.c | bh = minix_bread(inode,(filp->f_pos)>>BLOCK_SIZE_BITS,0); |
filp | 80 | fs/minix/dir.c | filp->f_pos += 1024-offset; |
filp | 83 | fs/minix/dir.c | while (!ret && offset < 1024 && filp->f_pos < inode->i_size) { |
filp | 86 | 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 | 25 | fs/msdos/dir.c | static int msdos_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
filp | 63 | fs/msdos/dir.c | struct file *filp, |
filp | 76 | fs/msdos/dir.c | if (filp->f_pos == 2) filp->f_pos = 0; |
filp | 77 | fs/msdos/dir.c | else if (filp->f_pos < 2) { |
filp | 78 | fs/msdos/dir.c | walk = filp->f_pos++ ? ".." : "."; |
filp | 87 | fs/msdos/dir.c | if (filp->f_pos & (sizeof(struct msdos_dir_entry)-1)) return -ENOENT; |
filp | 89 | fs/msdos/dir.c | while ((ino = msdos_get_entry(inode,&filp->f_pos,&bh,&de)) > -1) { |
filp | 151 | fs/msdos/file.c | struct file *filp, |
filp | 172 | fs/msdos/file.c | if (filp->f_pos >= inode->i_size || count <= 0) return 0; |
filp | 182 | fs/msdos/file.c | PRINTK (("#### ino %ld pos %ld size %ld count %d\n",inode->i_ino,filp->f_pos,inode->i_size,count)); |
filp | 188 | fs/msdos/file.c | int count_max = (filp->f_pos & (SECTOR_SIZE-1)) + count; |
filp | 190 | fs/msdos/file.c | pre.file_sector = filp->f_pos >> SECTOR_BITS; |
filp | 193 | fs/msdos/file.c | if (filp->f_reada || !MSDOS_I(inode)->i_binary){ |
filp | 208 | fs/msdos/file.c | while ((left_in_file = inode->i_size - filp->f_pos) > 0 |
filp | 223 | fs/msdos/file.c | PRINTK (("file_read pos %ld nblist %d %d %d\n",filp->f_pos,pre.nblist,pre.fetched,count)); |
filp | 230 | fs/msdos/file.c | offset = filp->f_pos & (SECTOR_SIZE-1); |
filp | 237 | fs/msdos/file.c | filp->f_pos += size; |
filp | 241 | fs/msdos/file.c | filp->f_pos++; |
filp | 243 | fs/msdos/file.c | filp->f_pos = inode->i_size; |
filp | 256 | fs/msdos/file.c | filp->f_reada = 1; /* Will be reset if a lseek is done */ |
filp | 265 | fs/msdos/file.c | struct file *filp, |
filp | 289 | fs/msdos/file.c | if (filp->f_flags & O_APPEND) filp->f_pos = inode->i_size; |
filp | 293 | fs/msdos/file.c | while (!(sector = msdos_smap(inode,filp->f_pos >> SECTOR_BITS))) |
filp | 299 | fs/msdos/file.c | offset = filp->f_pos & (SECTOR_SIZE-1); |
filp | 304 | fs/msdos/file.c | || filp->f_pos + size >= inode->i_size)){ |
filp | 322 | fs/msdos/file.c | to = (char *) bh->b_data+(filp->f_pos & (SECTOR_SIZE-1)); |
filp | 341 | fs/msdos/file.c | filp->f_pos += written; |
filp | 342 | fs/msdos/file.c | if (filp->f_pos > inode->i_size) { |
filp | 343 | 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_reada = 0; |
filp | 52 | fs/msdos/mmap.c | filp.f_pos = pos; |
filp | 57 | fs/msdos/mmap.c | cur_read = msdos_file_read (inode,&filp,(char*)page |
filp | 24 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *, struct file *filp, char *buf, |
filp | 75 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
filp | 89 | fs/nfs/dir.c | static int nfs_readdir(struct inode *inode, struct file *filp, |
filp | 122 | fs/nfs/dir.c | if (filp->f_pos == c_entry[i].cookie) { |
filp | 138 | fs/nfs/dir.c | filp->f_pos, NFS_READDIR_CACHE_SIZE, c_entry); |
filp | 158 | fs/nfs/dir.c | filp->f_pos = entry->cookie; |
filp | 32 | fs/nfs/inode.c | extern int close_fp(struct file *filp, unsigned int fd); |
filp | 79 | fs/nfs/inode.c | struct file *filp; |
filp | 92 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
filp | 97 | fs/nfs/inode.c | if (!S_ISSOCK(filp->f_inode->i_mode)) { |
filp | 102 | fs/nfs/inode.c | filp->f_count++; |
filp | 110 | 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 | 494 | fs/open.c | if (filp->f_mode & 2) put_write_access(inode); |
filp | 501 | fs/open.c | struct file * filp; |
filp | 506 | fs/open.c | if (!(filp = current->files->fd[fd])) |
filp | 509 | 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 | 123 | fs/proc/base.c | static int proc_readbase(struct inode * inode, struct file * filp, |
filp | 139 | fs/proc/base.c | if (((unsigned) filp->f_pos) < NR_BASE_DIRENTRY) { |
filp | 140 | fs/proc/base.c | de = base_dir + filp->f_pos; |
filp | 141 | fs/proc/base.c | filp->f_pos++; |
filp | 117 | fs/proc/fd.c | static int proc_readfd(struct inode * inode, struct file * filp, |
filp | 132 | fs/proc/fd.c | fd = filp->f_pos; |
filp | 133 | fs/proc/fd.c | filp->f_pos++; |
filp | 176 | fs/proc/net.c | static int proc_readnetdir(struct inode * inode, struct file * filp, |
filp | 186 | fs/proc/net.c | if (((unsigned) filp->f_pos) < NR_NET_DIRENTRY) { |
filp | 187 | fs/proc/net.c | de = net_dir + filp->f_pos; |
filp | 188 | fs/proc/net.c | filp->f_pos++; |
filp | 139 | fs/proc/root.c | static int proc_readroot(struct inode * inode, struct file * filp, |
filp | 149 | fs/proc/root.c | nr = filp->f_pos; |
filp | 153 | fs/proc/root.c | filp->f_pos++; |
filp | 166 | fs/proc/root.c | filp->f_pos++; |
filp | 649 | fs/super.c | struct file filp; |
filp | 660 | fs/super.c | memset(&filp, 0, sizeof(filp)); |
filp | 663 | fs/super.c | filp.f_inode = &d_inode; |
filp | 665 | fs/super.c | filp.f_mode = 1; /* read only */ |
filp | 667 | fs/super.c | filp.f_mode = 3; /* read write */ |
filp | 668 | fs/super.c | retval = blkdev_open(&d_inode, &filp); |
filp | 671 | fs/super.c | filp.f_mode = 1; |
filp | 672 | fs/super.c | retval = blkdev_open(&d_inode, &filp); |
filp | 26 | fs/sysv/dir.c | static int sysv_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 67 | fs/sysv/dir.c | static int sysv_readdir1 (struct inode * inode, struct file * filp, |
filp | 79 | fs/sysv/dir.c | if ((unsigned long)(filp->f_pos) % SYSV_DIRSIZE) |
filp | 81 | fs/sysv/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 82 | fs/sysv/dir.c | offset = filp->f_pos & sb->sv_block_size_1; |
filp | 83 | fs/sysv/dir.c | bh = sysv_file_bread(inode, filp->f_pos >> sb->sv_block_size_bits, 0); |
filp | 85 | fs/sysv/dir.c | filp->f_pos += sb->sv_block_size - offset; |
filp | 89 | fs/sysv/dir.c | while (offset < sb->sv_block_size && filp->f_pos < inode->i_size) { |
filp | 92 | fs/sysv/dir.c | filp->f_pos += SYSV_DIRSIZE; |
filp | 109 | fs/sysv/dir.c | inode->i_dev, inode->i_ino, (off_t) filp->f_pos - SYSV_DIRSIZE, sde.inode); |
filp | 123 | fs/sysv/dir.c | static int sysv_readdir(struct inode * inode, struct file * filp, |
filp | 130 | fs/sysv/dir.c | return sysv_readdir1(inode,filp,dirent); |
filp | 134 | fs/sysv/dir.c | retval = sysv_readdir1(inode,filp,dirent); |
filp | 72 | fs/sysv/file.c | int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 92 | fs/sysv/file.c | offset = filp->f_pos; |
filp | 108 | fs/sysv/file.c | if (filp->f_reada) { |
filp | 166 | fs/sysv/file.c | filp->f_pos += chars; |
filp | 191 | fs/sysv/file.c | filp->f_reada = 1; |
filp | 197 | fs/sysv/file.c | static int sysv_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 220 | fs/sysv/file.c | if (filp->f_flags & O_APPEND) |
filp | 223 | fs/sysv/file.c | pos = filp->f_pos; |
filp | 260 | fs/sysv/file.c | filp->f_pos = pos; |
filp | 30 | fs/umsdos/dir.c | int UMSDOS_dir_read(struct inode *inode,struct file *filp,char *buf, |
filp | 50 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
filp | 61 | fs/umsdos/dir.c | if (filp->f_pos == UMSDOS_SPECIAL_DIRFPOS |
filp | 80 | fs/umsdos/dir.c | filp->f_pos++; |
filp | 81 | fs/umsdos/dir.c | }else if (filp->f_pos < 2 |
filp | 82 | fs/umsdos/dir.c | || (dir != dir->i_sb->s_mounted && filp->f_pos == 32)){ |
filp | 116 | fs/umsdos/dir.c | ret = msdos_readdir(dir,filp,dirent,count); |
filp | 117 | fs/umsdos/dir.c | if (filp->f_pos == 64) filp->f_pos = UMSDOS_SPECIAL_DIRFPOS; |
filp | 122 | fs/umsdos/dir.c | if (filp->f_pos <= UMSDOS_SPECIAL_DIRFPOS+1) filp->f_pos = 0; |
filp | 123 | fs/umsdos/dir.c | PRINTK (("f_pos %ld i_size %d\n",filp->f_pos,emd_dir->i_size)); |
filp | 125 | fs/umsdos/dir.c | while (filp->f_pos < emd_dir->i_size){ |
filp | 127 | fs/umsdos/dir.c | off_t cur_f_pos = filp->f_pos; |
filp | 128 | fs/umsdos/dir.c | if (umsdos_emd_dir_readentry (emd_dir,filp,&entry)!=0){ |
filp | 220 | fs/umsdos/dir.c | PRINTK (("read dir %p pos %d ret %d\n",dir,filp->f_pos,ret)); |
filp | 230 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
filp | 238 | fs/umsdos/dir.c | ret = umsdos_readdir_x (dir,filp,dirent,1,count,&entry,1,&f_pos); |
filp | 356 | fs/umsdos/dir.c | struct file filp; |
filp | 357 | fs/umsdos/dir.c | filp.f_reada = 1; |
filp | 358 | fs/umsdos/dir.c | filp.f_pos = 0; |
filp | 361 | fs/umsdos/dir.c | if (umsdos_readdir_kmem (dir,&filp,&dirent,1) <= 0){ |
filp | 377 | fs/umsdos/dir.c | struct file filp; |
filp | 378 | fs/umsdos/dir.c | filp.f_reada = 1; |
filp | 379 | fs/umsdos/dir.c | filp.f_pos = UMSDOS_SPECIAL_DIRFPOS; |
filp | 383 | fs/umsdos/dir.c | if (umsdos_readdir_x(dir,&filp,&dirent |
filp | 631 | fs/umsdos/dir.c | struct file filp; |
filp | 632 | fs/umsdos/dir.c | filp.f_reada = 1; |
filp | 633 | fs/umsdos/dir.c | filp.f_pos = 0; |
filp | 635 | 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 | 30 | fs/umsdos/emd.c | ret = msdos_readdir(inode,filp,dirent,count); |
filp | 39 | fs/umsdos/emd.c | struct file *filp, |
filp | 46 | fs/umsdos/emd.c | ret = msdos_file_read(inode,filp,buf,count); |
filp | 55 | fs/umsdos/emd.c | struct file *filp, |
filp | 62 | fs/umsdos/emd.c | ret = msdos_file_write(inode,filp,buf,count); |
filp | 76 | fs/umsdos/emd.c | struct file *filp, |
filp | 81 | fs/umsdos/emd.c | filp->f_flags = 0; |
filp | 82 | fs/umsdos/emd.c | written = umsdos_file_write_kmem (emd_dir,filp,buf,count); |
filp | 92 | fs/umsdos/emd.c | struct file *filp, |
filp | 98 | fs/umsdos/emd.c | filp->f_flags = 0; |
filp | 99 | fs/umsdos/emd.c | sizeread = umsdos_file_read_kmem (emd_dir,filp,buf,count); |
filp | 153 | fs/umsdos/emd.c | struct file *filp, |
filp | 156 | fs/umsdos/emd.c | int ret = umsdos_emd_dir_read(emd_dir,filp,(char*)entry,UMSDOS_REC_SIZE); |
filp | 161 | fs/umsdos/emd.c | ret = umsdos_emd_dir_read(emd_dir,filp |
filp | 179 | fs/umsdos/emd.c | struct file filp; |
filp | 202 | fs/umsdos/emd.c | filp.f_pos = info->f_pos; |
filp | 203 | fs/umsdos/emd.c | filp.f_reada = 0; |
filp | 204 | fs/umsdos/emd.c | ret = umsdos_emd_dir_write(emd_dir,&filp,(char*)entry,info->recsize); |
filp | 219 | fs/umsdos/emd.c | struct file filp; |
filp | 241 | fs/umsdos/emd.c | remain = inode->i_size - buf->filp.f_pos; |
filp | 244 | fs/umsdos/emd.c | ret = umsdos_emd_dir_read (inode,&buf->filp,buf->buffer+mustmove |
filp | 302 | fs/umsdos/emd.c | buf.filp.f_pos = 0; |
filp | 303 | fs/umsdos/emd.c | buf.filp.f_reada = 1; |
filp | 310 | fs/umsdos/emd.c | int file_pos = buf.filp.f_pos - buf.size + buf.pos; |
filp | 459 | fs/umsdos/emd.c | struct file filp; |
filp | 461 | fs/umsdos/emd.c | filp.f_pos = 0; |
filp | 462 | fs/umsdos/emd.c | filp.f_reada = 1; |
filp | 463 | fs/umsdos/emd.c | filp.f_flags = O_RDONLY; |
filp | 465 | fs/umsdos/emd.c | while (filp.f_pos < emd_dir->i_size){ |
filp | 467 | 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 | 320 | fs/umsdos/inode.c | struct file filp; |
filp | 322 | fs/umsdos/inode.c | filp.f_pos = inode->u.umsdos_i.pos; |
filp | 323 | fs/umsdos/inode.c | filp.f_reada = 0; |
filp | 324 | fs/umsdos/inode.c | PRINTK (("pos = %d ",filp.f_pos)); |
filp | 327 | fs/umsdos/inode.c | ret = umsdos_emd_dir_read (emd_owner,&filp,(char*)&entry |
filp | 344 | fs/umsdos/inode.c | filp.f_pos = inode->u.umsdos_i.pos; |
filp | 345 | 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 | 36 | 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 | 37 | fs/umsdos/symlink.c | filp.f_reada = 0; |
filp | 39 | fs/umsdos/symlink.c | if ((*msdos_read) (inode, &filp, buffer,ret) != ret){ |
filp | 63 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
filp | 69 | fs/xiafs/dir.c | struct file * filp, struct dirent * dirent, int count) |
filp | 80 | fs/xiafs/dir.c | while (!ret && filp->f_pos < inode->i_size) { |
filp | 81 | fs/xiafs/dir.c | offset = filp->f_pos & (XIAFS_ZSIZE(inode->i_sb) - 1); |
filp | 82 | fs/xiafs/dir.c | bh = xiafs_bread(inode, filp->f_pos >> XIAFS_ZSIZE_BITS(inode->i_sb),0); |
filp | 84 | fs/xiafs/dir.c | filp->f_pos += XIAFS_ZSIZE(inode->i_sb)-offset; |
filp | 96 | fs/xiafs/dir.c | while (!ret && offset < XIAFS_ZSIZE(inode->i_sb) && filp->f_pos < inode->i_size) { |
filp | 108 | 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 | 392 | include/linux/fs.h | extern int blkdev_open(struct inode * inode, struct file * filp); |
filp | 398 | 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 | 172 | include/linux/msdos_fs.h | extern int msdos_readdir (struct inode *inode, struct file *filp, |
filp | 301 | include/linux/tty.h | extern void tty_unhangup(struct file *filp); |
filp | 302 | include/linux/tty.h | extern int tty_hung_up_p(struct file * filp); |
filp | 315 | include/linux/tty.h | extern int rs_open(struct tty_struct * tty, struct file * filp); |
filp | 319 | include/linux/tty.h | extern int pty_open(struct tty_struct * tty, struct file * filp); |
filp | 323 | 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 | 808 | mm/swap.c | struct file filp; |
filp | 844 | mm/swap.c | memset(&filp, 0, sizeof(filp)); |
filp | 845 | mm/swap.c | filp.f_inode = inode; |
filp | 846 | mm/swap.c | filp.f_mode = 3; /* read write */ |
filp | 848 | mm/swap.c | if( !blkdev_open(inode, &filp) && |
filp | 849 | mm/swap.c | filp.f_op && filp.f_op->release){ |
filp | 850 | mm/swap.c | filp.f_op->release(inode,&filp); |
filp | 851 | mm/swap.c | filp.f_op->release(inode,&filp); |
filp | 880 | mm/swap.c | struct file filp; |
filp | 882 | mm/swap.c | memset(&filp, 0, sizeof(filp)); |
filp | 913 | mm/swap.c | filp.f_inode = swap_inode; |
filp | 914 | mm/swap.c | filp.f_mode = 3; /* read write */ |
filp | 915 | mm/swap.c | error = blkdev_open(swap_inode, &filp); |
filp | 981 | mm/swap.c | if(filp.f_op && filp.f_op->release) |
filp | 982 | mm/swap.c | filp.f_op->release(filp.f_inode,&filp); |
filp | 69 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on); |
filp | 481 | net/socket.c | void sock_close(struct inode *inode, struct file *filp) |
filp | 497 | net/socket.c | sock_fasync(inode, filp, 0); |
filp | 505 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on) |
filp | 526 | net/socket.c | if(fa->fa_file==filp) |
filp | 537 | net/socket.c | fna->fa_file=filp; |
filp | 1194 | net/socket.c | int sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |
filp | 1198 | net/socket.c | sock = socki_lookup (filp->f_inode); |