tag | line | file | source code |
filp | 223 | drivers/block/cdu31a.c | static int scd_open(struct inode *inode, struct file *filp); |
filp | 2541 | drivers/block/cdu31a.c | struct file *filp) |
filp | 2549 | drivers/block/cdu31a.c | if ((filp) && filp->f_mode & 2) |
filp | 2642 | drivers/block/cdu31a.c | if (filp) |
filp | 2659 | drivers/block/cdu31a.c | struct file *filp) |
filp | 2734 | drivers/block/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
filp | 2739 | drivers/block/floppy.c | #define IOCTL_ALLOWED (filp && (filp->f_mode & IOCTL_MODE_BIT)) |
filp | 2960 | drivers/block/floppy.c | static int floppy_read(struct inode * inode, struct file * filp, |
filp | 2968 | drivers/block/floppy.c | return block_read(inode, filp, buf, count); |
filp | 2971 | drivers/block/floppy.c | static int floppy_write(struct inode * inode, struct file * filp, |
filp | 2985 | drivers/block/floppy.c | block = (filp->f_pos + count) >> 9; |
filp | 2988 | drivers/block/floppy.c | ret= block_write(inode, filp, buf, count); |
filp | 2992 | drivers/block/floppy.c | static void floppy_release(struct inode * inode, struct file * filp) |
filp | 2998 | drivers/block/floppy.c | if( !filp || (filp->f_mode & (2 | OPEN_WRITE_BIT))) |
filp | 3001 | drivers/block/floppy.c | block_fsync(inode,filp); |
filp | 3018 | drivers/block/floppy.c | do{floppy_release(inode,filp); \ |
filp | 3021 | drivers/block/floppy.c | static int floppy_open(struct inode * inode, struct file * filp) |
filp | 3026 | drivers/block/floppy.c | if (!filp) { |
filp | 3049 | drivers/block/floppy.c | (UDRS->fd_ref && (filp->f_flags & O_EXCL))) |
filp | 3055 | drivers/block/floppy.c | if (filp->f_flags & O_EXCL) |
filp | 3069 | drivers/block/floppy.c | if ((filp->f_mode & 2) || (permission(inode,2) == 0)) |
filp | 3070 | drivers/block/floppy.c | filp->f_mode |= IOCTL_MODE_BIT; |
filp | 3071 | drivers/block/floppy.c | if (filp->f_mode & 2) |
filp | 3072 | drivers/block/floppy.c | filp->f_mode |= OPEN_WRITE_BIT; |
filp | 3077 | drivers/block/floppy.c | if (filp->f_flags & O_NDELAY) |
filp | 3079 | drivers/block/floppy.c | if (filp->f_mode & 3) { |
filp | 3085 | drivers/block/floppy.c | if ((filp->f_mode & 2) && !(UTESTF(FD_DISK_WRITABLE))) |
filp | 891 | drivers/block/hd.c | static int hd_open(struct inode * inode, struct file * filp) |
filp | 1259 | drivers/block/ide.c | static int ide_open(struct inode * inode, struct file * filp) |
filp | 1274 | drivers/block/ide.c | return cdrom_open (inode, filp, dev); |
filp | 208 | drivers/block/ramdisk.c | struct file filp; |
filp | 224 | drivers/block/ramdisk.c | memset(&filp, 0, sizeof(filp)); |
filp | 227 | drivers/block/ramdisk.c | filp.f_mode = 1; /* read only */ |
filp | 228 | drivers/block/ramdisk.c | filp.f_inode = &inode; |
filp | 229 | drivers/block/ramdisk.c | if(blkdev_open(&inode, &filp) == 0 ){ |
filp | 231 | drivers/block/ramdisk.c | if(filp.f_op && filp.f_op->release) |
filp | 232 | drivers/block/ramdisk.c | filp.f_op->release(&inode,&filp); |
filp | 190 | drivers/block/sonycd535.c | static int cdu_open(struct inode *inode, struct file *filp); |
filp | 1382 | drivers/block/sonycd535.c | struct file *filp) |
filp | 1430 | drivers/block/sonycd535.c | struct file *filp) |
filp | 2151 | drivers/char/console.c | int con_open(struct tty_struct *tty, struct file * filp) |
filp | 2250 | drivers/char/cyclades.c | cy_close(struct tty_struct * tty, struct file * filp) |
filp | 2374 | drivers/char/cyclades.c | block_til_ready(struct tty_struct *tty, struct file * filp, |
filp | 2423 | drivers/char/cyclades.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 2470 | drivers/char/cyclades.c | if (tty_hung_up_p(filp) |
filp | 2502 | drivers/char/cyclades.c | if (!tty_hung_up_p(filp)){ |
filp | 2524 | drivers/char/cyclades.c | cy_open(struct tty_struct *tty, struct file * filp) |
filp | 2575 | drivers/char/cyclades.c | retval = block_til_ready(tty, filp, info); |
filp | 319 | drivers/char/mem.c | static int memory_open(struct inode * inode, struct file * filp) |
filp | 323 | drivers/char/mem.c | filp->f_op = &ram_fops; |
filp | 326 | drivers/char/mem.c | filp->f_op = &mem_fops; |
filp | 329 | drivers/char/mem.c | filp->f_op = &kmem_fops; |
filp | 332 | drivers/char/mem.c | filp->f_op = &null_fops; |
filp | 335 | drivers/char/mem.c | filp->f_op = &port_fops; |
filp | 338 | drivers/char/mem.c | filp->f_op = &zero_fops; |
filp | 341 | drivers/char/mem.c | filp->f_op = &full_fops; |
filp | 346 | drivers/char/mem.c | if (filp->f_op && filp->f_op->open) |
filp | 347 | 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 | 1973 | drivers/char/serial.c | static void rs_close(struct tty_struct *tty, struct file * filp) |
filp | 1984 | drivers/char/serial.c | if (tty_hung_up_p(filp)) { |
filp | 2107 | drivers/char/serial.c | static int block_til_ready(struct tty_struct *tty, struct file * filp, |
filp | 2153 | drivers/char/serial.c | if ((filp->f_flags & O_NONBLOCK) || |
filp | 2192 | drivers/char/serial.c | if (tty_hung_up_p(filp) || |
filp | 2221 | drivers/char/serial.c | if (!tty_hung_up_p(filp)) |
filp | 2240 | drivers/char/serial.c | int rs_open(struct tty_struct *tty, struct file * filp) |
filp | 2273 | drivers/char/serial.c | retval = block_til_ready(tty, filp, info); |
filp | 1918 | drivers/char/tpqic02.c | static int qic02_tape_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 1922 | drivers/char/tpqic02.c | unsigned short flags = filp->f_flags; |
filp | 1934 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
filp | 2054 | drivers/char/tpqic02.c | filp->f_pos += bytes_done; |
filp | 2093 | drivers/char/tpqic02.c | static int qic02_tape_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 2097 | drivers/char/tpqic02.c | unsigned short flags = filp->f_flags; |
filp | 2108 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
filp | 2221 | drivers/char/tpqic02.c | filp->f_pos += bytes_done; |
filp | 2245 | drivers/char/tpqic02.c | static int qic02_tape_open(struct inode * inode, struct file * filp) |
filp | 2248 | drivers/char/tpqic02.c | unsigned short flags = filp->f_flags; |
filp | 2268 | drivers/char/tpqic02.c | if (filp->f_count>1) { /* filp->f_count==1 for the first open() */ |
filp | 2431 | drivers/char/tpqic02.c | static int qic02_tape_readdir(struct inode * inode, struct file * filp, struct dirent * dp, int count) |
filp | 2438 | drivers/char/tpqic02.c | static void qic02_tape_release(struct inode * inode, struct file * filp) |
filp | 2559 | drivers/char/tpqic02.c | static int qic02_tape_ioctl(struct inode * inode, struct file * filp, |
filp | 101 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on); |
filp | 293 | drivers/char/tty_io.c | static int hung_up_tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 340 | drivers/char/tty_io.c | struct file * filp; |
filp | 346 | drivers/char/tty_io.c | for (filp = first_file, i=0; i<nr_files; i++, filp = filp->f_next) { |
filp | 347 | drivers/char/tty_io.c | if (!filp->f_count) |
filp | 349 | drivers/char/tty_io.c | if (filp->private_data != tty) |
filp | 351 | drivers/char/tty_io.c | if (filp->f_inode && filp->f_inode->i_rdev == CONSOLE_DEV) |
filp | 353 | drivers/char/tty_io.c | if (filp->f_op != &tty_fops) |
filp | 355 | drivers/char/tty_io.c | tty_fasync(filp->f_inode, filp, 0); |
filp | 356 | drivers/char/tty_io.c | filp->f_op = fops; |
filp | 423 | drivers/char/tty_io.c | int tty_hung_up_p(struct file * filp) |
filp | 425 | drivers/char/tty_io.c | return (filp->f_op == &hung_up_tty_fops); |
filp | 923 | drivers/char/tty_io.c | static void release_dev(struct file * filp) |
filp | 930 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
filp | 931 | drivers/char/tty_io.c | if (tty_paranoia_check(tty, filp->f_inode->i_rdev, "release_dev")) |
filp | 936 | drivers/char/tty_io.c | tty_fasync(filp->f_inode, filp, 0); |
filp | 1000 | drivers/char/tty_io.c | tty->driver.close(tty, filp); |
filp | 1087 | drivers/char/tty_io.c | filp->private_data = 0; |
filp | 1107 | drivers/char/tty_io.c | static int tty_open(struct inode * inode, struct file * filp) |
filp | 1115 | drivers/char/tty_io.c | noctty = filp->f_flags & O_NOCTTY; |
filp | 1132 | drivers/char/tty_io.c | filp->private_data = tty; |
filp | 1141 | drivers/char/tty_io.c | retval = tty->driver.open(tty, filp); |
filp | 1153 | drivers/char/tty_io.c | release_dev(filp); |
filp | 1162 | drivers/char/tty_io.c | filp->f_op = &tty_fops; |
filp | 1182 | drivers/char/tty_io.c | static void tty_release(struct inode * inode, struct file * filp) |
filp | 1184 | drivers/char/tty_io.c | release_dev(filp); |
filp | 1187 | drivers/char/tty_io.c | static int tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 1191 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
filp | 1196 | drivers/char/tty_io.c | return (tty->ldisc.select)(tty, inode, filp, sel_type, wait); |
filp | 1200 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on) |
filp | 1205 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
filp | 1210 | drivers/char/tty_io.c | if (fa->fa_file == filp) |
filp | 1221 | drivers/char/tty_io.c | fa->fa_file = filp; |
filp | 1226 | drivers/char/tty_io.c | if (filp->f_owner == 0) { |
filp | 1228 | drivers/char/tty_io.c | filp->f_owner = -tty->pgrp; |
filp | 1230 | 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 | 186 | drivers/char/vc_screen.c | vcs_open(struct inode *inode, struct file *filp) |
filp | 149 | drivers/net/ppp.c | struct file * filp, int sel_type, select_table * wait); |
filp | 1625 | drivers/net/ppp.c | struct file * filp, int sel_type, select_table * wait) |
filp | 1659 | drivers/net/ppp.c | if (tty_hung_up_p(filp)) |
filp | 2129 | drivers/scsi/53c7,8xx.c | static debugger_user_write (struct inode *inode,struct file *filp, |
filp | 2181 | drivers/scsi/53c7,8xx.c | static debugger_user_read (struct inode *inode,struct file *filp, |
filp | 81 | drivers/scsi/sd.c | static int sd_open(struct inode * inode, struct file * filp) |
filp | 83 | drivers/scsi/sg.c | static int sg_open(struct inode * inode, struct file * filp) |
filp | 86 | drivers/scsi/sg.c | int flags=filp->f_flags; |
filp | 127 | drivers/scsi/sg.c | static void sg_close(struct inode * inode, struct file * filp) |
filp | 170 | drivers/scsi/sg.c | static int sg_read(struct inode *inode,struct file *filp,char *buf,int count) |
filp | 179 | drivers/scsi/sg.c | if (filp->f_flags & O_NONBLOCK) |
filp | 228 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,char *buf,int count) |
filp | 248 | drivers/scsi/sg.c | if (filp->f_flags & O_NONBLOCK) |
filp | 278 | drivers/scsi/sg.c | if (!(SCpnt=allocate_device(NULL,device->device, !(filp->f_flags & O_NONBLOCK)))) |
filp | 472 | drivers/scsi/sr.c | static int sr_open(struct inode * inode, struct file * filp) |
filp | 477 | drivers/scsi/sr.c | if (filp->f_mode & 2) |
filp | 371 | drivers/scsi/st.c | flush_buffer(struct inode * inode, struct file * filp, int seek_next) |
filp | 407 | drivers/scsi/st.c | result = st_int_ioctl(inode, filp, MTBSR, backspace); |
filp | 416 | drivers/scsi/st.c | scsi_tape_open(struct inode * inode, struct file * filp) |
filp | 448 | drivers/scsi/st.c | flags = filp->f_flags; |
filp | 654 | drivers/scsi/st.c | scsi_tape_close(struct inode * inode, struct file * filp) |
filp | 675 | drivers/scsi/st.c | printk("st%d: File length %ld bytes.\n", dev, (long)(filp->f_pos)); |
filp | 723 | drivers/scsi/st.c | flush_buffer(inode, filp, 0); |
filp | 728 | drivers/scsi/st.c | st_int_ioctl(inode, filp, MTREW, 1); |
filp | 743 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 773 | drivers/scsi/st.c | retval = flush_buffer(inode, filp, 0); |
filp | 883 | drivers/scsi/st.c | filp->f_pos += do_count - transfer; |
filp | 922 | drivers/scsi/st.c | filp->f_pos += do_count; |
filp | 938 | drivers/scsi/st.c | filp->f_pos += count; |
filp | 985 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 1014 | drivers/scsi/st.c | transfer = flush_buffer(inode, filp, 0); |
filp | 1194 | drivers/scsi/st.c | filp->f_pos += transfer; |
filp | 23 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 56 | fs/block_dev.c | block = filp->f_pos >> blocksize_bits; |
filp | 57 | fs/block_dev.c | offset = filp->f_pos & (blocksize-1); |
filp | 83 | fs/block_dev.c | if(!filp->f_reada || |
filp | 120 | fs/block_dev.c | filp->f_pos += chars; |
filp | 128 | fs/block_dev.c | if (filp->f_flags & O_SYNC) |
filp | 154 | fs/block_dev.c | filp->f_reada = 1; |
filp | 160 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 190 | fs/block_dev.c | offset = filp->f_pos; |
filp | 212 | fs/block_dev.c | if (filp->f_reada) { |
filp | 284 | fs/block_dev.c | filp->f_pos += chars; |
filp | 309 | fs/block_dev.c | filp->f_reada = 1; |
filp | 313 | fs/block_dev.c | int block_fsync(struct inode *inode, struct file *filp) |
filp | 235 | 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 | 29 | fs/ext2/dir.c | static int ext2_dir_read (struct inode * inode, struct file * filp, |
filp | 101 | fs/ext2/dir.c | static int ext2_readdir (struct inode * inode, struct file * filp, |
filp | 117 | fs/ext2/dir.c | offset = filp->f_pos & (sb->s_blocksize - 1); |
filp | 119 | fs/ext2/dir.c | while (count > 0 && !stored && filp->f_pos < inode->i_size) { |
filp | 120 | fs/ext2/dir.c | blk = (filp->f_pos) >> EXT2_BLOCK_SIZE_BITS(sb); |
filp | 123 | fs/ext2/dir.c | filp->f_pos += sb->s_blocksize - offset; |
filp | 151 | fs/ext2/dir.c | if (filp->f_version != inode->i_version) { |
filp | 166 | fs/ext2/dir.c | filp->f_pos = (filp->f_pos & ~(sb->s_blocksize - 1)) |
filp | 168 | fs/ext2/dir.c | filp->f_version = inode->i_version; |
filp | 171 | fs/ext2/dir.c | while (count > 0 && filp->f_pos < inode->i_size |
filp | 178 | fs/ext2/dir.c | filp->f_pos = (filp->f_pos & (sb->s_blocksize - 1)) |
filp | 218 | fs/ext2/dir.c | filp->f_pos += de->rec_len; |
filp | 80 | fs/ext2/file.c | static int ext2_file_read (struct inode * inode, struct file * filp, |
filp | 104 | fs/ext2/file.c | offset = filp->f_pos; |
filp | 120 | fs/ext2/file.c | if (filp->f_reada) { |
filp | 195 | fs/ext2/file.c | filp->f_pos += chars; |
filp | 223 | fs/ext2/file.c | filp->f_reada = 1; |
filp | 231 | fs/ext2/file.c | static int ext2_file_write (struct inode * inode, struct file * filp, |
filp | 262 | fs/ext2/file.c | if (filp->f_flags & O_APPEND) |
filp | 265 | fs/ext2/file.c | pos = filp->f_pos; |
filp | 273 | fs/ext2/file.c | if (filp->f_flags & O_SYNC) |
filp | 309 | fs/ext2/file.c | if (filp->f_flags & O_SYNC) |
filp | 337 | fs/ext2/file.c | if (filp->f_flags & O_SYNC) |
filp | 341 | fs/ext2/file.c | filp->f_pos = pos; |
filp | 351 | fs/ext2/file.c | static void ext2_release_file (struct inode * inode, struct file * filp) |
filp | 353 | fs/ext2/file.c | if (filp->f_mode & 2) |
filp | 19 | 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 | 13 | fs/fifo.c | static int fifo_open(struct inode * inode,struct file * filp) |
filp | 18 | fs/fifo.c | switch( filp->f_mode ) { |
filp | 26 | fs/fifo.c | filp->f_op = &connecting_fifo_fops; |
filp | 29 | fs/fifo.c | if (!(filp->f_flags & O_NONBLOCK) && !PIPE_WRITERS(*inode)) { |
filp | 44 | fs/fifo.c | filp->f_op = &read_fifo_fops; |
filp | 55 | fs/fifo.c | if ((filp->f_flags & O_NONBLOCK) && !PIPE_READERS(*inode)) { |
filp | 59 | fs/fifo.c | filp->f_op = &write_fifo_fops; |
filp | 87 | fs/fifo.c | filp->f_op = &rdwr_fifo_fops; |
filp | 187 | fs/hpfs/hpfs_fs.c | static int hpfs_dir_read(struct inode *inode, struct file *filp, |
filp | 189 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, |
filp | 867 | fs/hpfs/hpfs_fs.c | static int hpfs_file_read(struct inode *inode, struct file *filp, |
filp | 881 | fs/hpfs/hpfs_fs.c | if (count > inode->i_size - (off_t) filp->f_pos) |
filp | 882 | fs/hpfs/hpfs_fs.c | count = inode->i_size - filp->f_pos; |
filp | 890 | fs/hpfs/hpfs_fs.c | q = filp->f_pos >> 9; |
filp | 891 | fs/hpfs/hpfs_fs.c | r = filp->f_pos & 511; |
filp | 927 | fs/hpfs/hpfs_fs.c | if (count > inode->i_size - (off_t) filp->f_pos - n + n0) |
filp | 928 | fs/hpfs/hpfs_fs.c | count = inode->i_size - filp->f_pos - n + n0; |
filp | 936 | 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 | 1560 | fs/hpfs/hpfs_fs.c | static int hpfs_dir_read(struct inode *inode, struct file *filp, |
filp | 17 | fs/ioctl.c | static int file_ioctl(struct file *filp,unsigned int cmd,unsigned long arg) |
filp | 24 | fs/ioctl.c | if (filp->f_inode->i_op == NULL) |
filp | 26 | fs/ioctl.c | if (filp->f_inode->i_op->bmap == NULL) |
filp | 32 | fs/ioctl.c | block = filp->f_inode->i_op->bmap(filp->f_inode,block); |
filp | 36 | fs/ioctl.c | if (filp->f_inode->i_sb == NULL) |
filp | 41 | fs/ioctl.c | put_fs_long(filp->f_inode->i_sb->s_blocksize, |
filp | 48 | fs/ioctl.c | put_fs_long(filp->f_inode->i_size - filp->f_pos, |
filp | 52 | fs/ioctl.c | if (filp->f_op && filp->f_op->ioctl) |
filp | 53 | fs/ioctl.c | return filp->f_op->ioctl(filp->f_inode, filp, cmd,arg); |
filp | 60 | fs/ioctl.c | struct file * filp; |
filp | 63 | fs/ioctl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
filp | 77 | fs/ioctl.c | filp->f_flags |= O_NONBLOCK; |
filp | 79 | fs/ioctl.c | filp->f_flags &= ~O_NONBLOCK; |
filp | 86 | fs/ioctl.c | filp->f_flags |= O_SYNC; |
filp | 88 | fs/ioctl.c | filp->f_flags &= ~O_SYNC; |
filp | 92 | fs/ioctl.c | if (filp->f_inode && S_ISREG(filp->f_inode->i_mode)) |
filp | 93 | fs/ioctl.c | return file_ioctl(filp,cmd,arg); |
filp | 95 | fs/ioctl.c | if (filp->f_op && filp->f_op->ioctl) |
filp | 96 | fs/ioctl.c | return filp->f_op->ioctl(filp->f_inode, filp, cmd,arg); |
filp | 67 | fs/isofs/dir.c | static int isofs_readdir(struct inode * inode, struct file * filp, |
filp | 87 | fs/isofs/dir.c | offset = filp->f_pos & (bufsize - 1); |
filp | 88 | fs/isofs/dir.c | block = isofs_bmap(inode,filp->f_pos>>bufbits); |
filp | 92 | fs/isofs/dir.c | if(!(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size))) |
filp | 95 | fs/isofs/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 98 | fs/isofs/dir.c | block, offset, filp->f_pos); |
filp | 110 | fs/isofs/dir.c | filp->f_pos = ((filp->f_pos & ~(ISOFS_BLOCK_SIZE - 1)) |
filp | 112 | fs/isofs/dir.c | block = isofs_bmap(inode,(filp->f_pos)>>bufbits); |
filp | 114 | fs/isofs/dir.c | || !(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, |
filp | 127 | fs/isofs/dir.c | filp->f_pos += *((unsigned char *) de); |
filp | 137 | fs/isofs/dir.c | offset = filp->f_pos & (bufsize - 1); |
filp | 138 | fs/isofs/dir.c | block = isofs_bmap(inode,(filp->f_pos)>> bufbits); |
filp | 141 | fs/isofs/dir.c | filp->f_pos, inode->i_size))) { |
filp | 123 | fs/isofs/file.c | static int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 143 | fs/isofs/file.c | if (filp->f_pos > inode->i_size) |
filp | 146 | fs/isofs/file.c | left = inode->i_size - filp->f_pos; |
filp | 152 | fs/isofs/file.c | block = filp->f_pos >> ISOFS_BUFFER_BITS(inode); |
filp | 153 | fs/isofs/file.c | offset = (inode->u.isofs_i.i_first_extent + filp->f_pos) |
filp | 229 | fs/isofs/file.c | filp->f_pos += chars; |
filp | 259 | fs/isofs/file.c | filp->f_reada = 1; |
filp | 46 | fs/locks.c | static int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l); |
filp | 49 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller); |
filp | 62 | fs/locks.c | struct file *filp; |
filp | 65 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
filp | 73 | fs/locks.c | if (!copy_flock(filp, &file_lock, &flock)) |
filp | 76 | fs/locks.c | for (fl = filp->f_inode->i_flock; fl != NULL; fl = fl->fl_next) { |
filp | 101 | fs/locks.c | struct file *filp; |
filp | 109 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
filp | 115 | fs/locks.c | if (!copy_flock(filp, &file_lock, &flock)) |
filp | 119 | fs/locks.c | if (!(filp->f_mode & 1)) |
filp | 123 | fs/locks.c | if (!(filp->f_mode & 2)) |
filp | 127 | fs/locks.c | if (!(filp->f_mode & 3)) |
filp | 132 | fs/locks.c | if (!(filp->f_mode & 3)) |
filp | 146 | fs/locks.c | for (fl = filp->f_inode->i_flock; fl != NULL; fl = fl->fl_next) { |
filp | 173 | fs/locks.c | return lock_it(filp, &file_lock); |
filp | 212 | fs/locks.c | void fcntl_remove_locks(struct task_struct *task, struct file *filp) |
filp | 219 | fs/locks.c | before = &filp->f_inode->i_flock; |
filp | 234 | fs/locks.c | static int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l) |
filp | 238 | fs/locks.c | if (!filp->f_inode) /* just in case */ |
filp | 245 | fs/locks.c | case 1 /*SEEK_CUR*/ : start = filp->f_pos; break; |
filp | 246 | fs/locks.c | case 2 /*SEEK_END*/ : start = filp->f_inode->i_size; break; |
filp | 305 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller) |
filp | 317 | fs/locks.c | before = &filp->f_inode->i_flock; |
filp | 23 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 64 | fs/minix/dir.c | static int minix_readdir(struct inode * inode, struct file * filp, |
filp | 77 | fs/minix/dir.c | if (filp->f_pos & (info->s_dirsize - 1)) |
filp | 80 | fs/minix/dir.c | while (!ret && filp->f_pos < inode->i_size) { |
filp | 81 | fs/minix/dir.c | offset = filp->f_pos & 1023; |
filp | 82 | fs/minix/dir.c | bh = minix_bread(inode,(filp->f_pos)>>BLOCK_SIZE_BITS,0); |
filp | 84 | fs/minix/dir.c | filp->f_pos += 1024-offset; |
filp | 87 | fs/minix/dir.c | while (!ret && offset < 1024 && filp->f_pos < inode->i_size) { |
filp | 90 | fs/minix/dir.c | filp->f_pos += info->s_dirsize; |
filp | 70 | fs/minix/file.c | static int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 88 | fs/minix/file.c | offset = filp->f_pos; |
filp | 104 | fs/minix/file.c | if (filp->f_reada) { |
filp | 162 | fs/minix/file.c | filp->f_pos += chars; |
filp | 187 | fs/minix/file.c | filp->f_reada = 1; |
filp | 193 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 209 | fs/minix/file.c | if (filp->f_flags & O_APPEND) |
filp | 212 | fs/minix/file.c | pos = filp->f_pos; |
filp | 247 | fs/minix/file.c | filp->f_pos = pos; |
filp | 29 | fs/msdos/dir.c | static int msdos_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
filp | 67 | fs/msdos/dir.c | struct file *filp, |
filp | 80 | fs/msdos/dir.c | if (filp->f_pos == 2) filp->f_pos = 0; |
filp | 81 | fs/msdos/dir.c | else if (filp->f_pos < 2) { |
filp | 82 | fs/msdos/dir.c | walk = filp->f_pos++ ? ".." : "."; |
filp | 91 | fs/msdos/dir.c | if (filp->f_pos & (sizeof(struct msdos_dir_entry)-1)) return -ENOENT; |
filp | 93 | fs/msdos/dir.c | while ((ino = msdos_get_entry(inode,&filp->f_pos,&bh,&de)) > -1) { |
filp | 155 | fs/msdos/file.c | struct file *filp, |
filp | 176 | fs/msdos/file.c | if (filp->f_pos >= inode->i_size || count <= 0) return 0; |
filp | 186 | 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 | 192 | fs/msdos/file.c | int count_max = (filp->f_pos & (SECTOR_SIZE-1)) + count; |
filp | 194 | fs/msdos/file.c | pre.file_sector = filp->f_pos >> SECTOR_BITS; |
filp | 197 | fs/msdos/file.c | if (filp->f_reada || !MSDOS_I(inode)->i_binary){ |
filp | 212 | fs/msdos/file.c | while ((left_in_file = inode->i_size - filp->f_pos) > 0 |
filp | 227 | fs/msdos/file.c | PRINTK (("file_read pos %ld nblist %d %d %d\n",filp->f_pos,pre.nblist,pre.fetched,count)); |
filp | 234 | fs/msdos/file.c | offset = filp->f_pos & (SECTOR_SIZE-1); |
filp | 241 | fs/msdos/file.c | filp->f_pos += size; |
filp | 245 | fs/msdos/file.c | filp->f_pos++; |
filp | 247 | fs/msdos/file.c | filp->f_pos = inode->i_size; |
filp | 260 | fs/msdos/file.c | filp->f_reada = 1; /* Will be reset if a lseek is done */ |
filp | 269 | fs/msdos/file.c | struct file *filp, |
filp | 293 | fs/msdos/file.c | if (filp->f_flags & O_APPEND) filp->f_pos = inode->i_size; |
filp | 297 | fs/msdos/file.c | while (!(sector = msdos_smap(inode,filp->f_pos >> SECTOR_BITS))) |
filp | 303 | fs/msdos/file.c | offset = filp->f_pos & (SECTOR_SIZE-1); |
filp | 308 | fs/msdos/file.c | || filp->f_pos + size >= inode->i_size)){ |
filp | 326 | fs/msdos/file.c | to = (char *) bh->b_data+(filp->f_pos & (SECTOR_SIZE-1)); |
filp | 345 | fs/msdos/file.c | filp->f_pos += written; |
filp | 346 | fs/msdos/file.c | if (filp->f_pos > inode->i_size) { |
filp | 347 | fs/msdos/file.c | inode->i_size = filp->f_pos; |
filp | 51 | fs/msdos/mmap.c | struct file filp; |
filp | 55 | fs/msdos/mmap.c | filp.f_reada = 0; |
filp | 56 | fs/msdos/mmap.c | filp.f_pos = pos; |
filp | 61 | fs/msdos/mmap.c | cur_read = msdos_file_read (inode,&filp,(char*)page |
filp | 28 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *, struct file *filp, char *buf, |
filp | 79 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
filp | 93 | fs/nfs/dir.c | static int nfs_readdir(struct inode *inode, struct file *filp, |
filp | 126 | fs/nfs/dir.c | if (filp->f_pos == c_entry[i].cookie) { |
filp | 142 | fs/nfs/dir.c | filp->f_pos, NFS_READDIR_CACHE_SIZE, c_entry); |
filp | 162 | fs/nfs/dir.c | filp->f_pos = entry->cookie; |
filp | 32 | fs/nfs/inode.c | extern int close_fp(struct file *filp); |
filp | 78 | fs/nfs/inode.c | struct file *filp; |
filp | 93 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
filp | 99 | fs/nfs/inode.c | if (!S_ISSOCK(filp->f_inode->i_mode)) { |
filp | 105 | fs/nfs/inode.c | filp->f_count++; |
filp | 113 | fs/nfs/inode.c | server->file = filp; |
filp | 480 | fs/open.c | int close_fp(struct file *filp) |
filp | 484 | fs/open.c | if (filp->f_count == 0) { |
filp | 488 | fs/open.c | inode = filp->f_inode; |
filp | 490 | fs/open.c | fcntl_remove_locks(current, filp); |
filp | 491 | fs/open.c | if (filp->f_count > 1) { |
filp | 492 | fs/open.c | filp->f_count--; |
filp | 495 | fs/open.c | if (filp->f_op && filp->f_op->release) |
filp | 496 | fs/open.c | filp->f_op->release(inode,filp); |
filp | 497 | fs/open.c | filp->f_count--; |
filp | 498 | fs/open.c | filp->f_inode = NULL; |
filp | 499 | fs/open.c | if (filp->f_mode & 2) put_write_access(inode); |
filp | 506 | fs/open.c | struct file * filp; |
filp | 511 | fs/open.c | if (!(filp = current->files->fd[fd])) |
filp | 514 | fs/open.c | return (close_fp (filp)); |
filp | 25 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 30 | fs/pipe.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 72 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 94 | fs/pipe.c | if (filp->f_flags & O_NONBLOCK) |
filp | 129 | fs/pipe.c | static int bad_pipe_rw(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 134 | fs/pipe.c | static int pipe_ioctl(struct inode *pino, struct file * filp, |
filp | 150 | fs/pipe.c | static int pipe_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 176 | fs/pipe.c | static int fifo_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 203 | fs/pipe.c | static int connect_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 208 | fs/pipe.c | if (filp->f_flags & O_NONBLOCK) |
filp | 215 | fs/pipe.c | filp->f_op = &read_fifo_fops; |
filp | 216 | fs/pipe.c | return pipe_read(inode,filp,buf,count); |
filp | 219 | fs/pipe.c | static int connect_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 224 | fs/pipe.c | filp->f_op = &read_fifo_fops; |
filp | 247 | fs/pipe.c | static void pipe_read_release(struct inode * inode, struct file * filp) |
filp | 253 | fs/pipe.c | static void pipe_write_release(struct inode * inode, struct file * filp) |
filp | 259 | 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 | 209 | fs/proc/net.c | static int proc_readnetdir(struct inode * inode, struct file * filp, |
filp | 219 | fs/proc/net.c | if (((unsigned) filp->f_pos) < NR_NET_DIRENTRY) { |
filp | 220 | fs/proc/net.c | de = net_dir + filp->f_pos; |
filp | 221 | fs/proc/net.c | filp->f_pos++; |
filp | 144 | fs/proc/root.c | static int proc_readroot(struct inode * inode, struct file * filp, |
filp | 154 | fs/proc/root.c | nr = filp->f_pos; |
filp | 158 | fs/proc/root.c | filp->f_pos++; |
filp | 171 | fs/proc/root.c | filp->f_pos++; |
filp | 644 | fs/super.c | struct file filp; |
filp | 655 | fs/super.c | memset(&filp, 0, sizeof(filp)); |
filp | 658 | fs/super.c | filp.f_inode = &d_inode; |
filp | 660 | fs/super.c | filp.f_mode = 1; /* read only */ |
filp | 662 | fs/super.c | filp.f_mode = 3; /* read write */ |
filp | 663 | fs/super.c | retval = blkdev_open(&d_inode, &filp); |
filp | 666 | fs/super.c | filp.f_mode = 1; |
filp | 667 | fs/super.c | retval = blkdev_open(&d_inode, &filp); |
filp | 30 | fs/sysv/dir.c | static int sysv_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 71 | fs/sysv/dir.c | static int sysv_readdir1 (struct inode * inode, struct file * filp, |
filp | 83 | fs/sysv/dir.c | if ((unsigned long)(filp->f_pos) % SYSV_DIRSIZE) |
filp | 85 | fs/sysv/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 86 | fs/sysv/dir.c | offset = filp->f_pos & sb->sv_block_size_1; |
filp | 87 | fs/sysv/dir.c | bh = sysv_file_bread(inode, filp->f_pos >> sb->sv_block_size_bits, 0); |
filp | 89 | fs/sysv/dir.c | filp->f_pos += sb->sv_block_size - offset; |
filp | 93 | fs/sysv/dir.c | while (offset < sb->sv_block_size && filp->f_pos < inode->i_size) { |
filp | 96 | fs/sysv/dir.c | filp->f_pos += SYSV_DIRSIZE; |
filp | 113 | fs/sysv/dir.c | inode->i_dev, inode->i_ino, (off_t) filp->f_pos - SYSV_DIRSIZE, sde.inode); |
filp | 127 | fs/sysv/dir.c | static int sysv_readdir(struct inode * inode, struct file * filp, |
filp | 134 | fs/sysv/dir.c | return sysv_readdir1(inode,filp,dirent); |
filp | 138 | fs/sysv/dir.c | retval = sysv_readdir1(inode,filp,dirent); |
filp | 76 | fs/sysv/file.c | int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 96 | fs/sysv/file.c | offset = filp->f_pos; |
filp | 112 | fs/sysv/file.c | if (filp->f_reada) { |
filp | 170 | fs/sysv/file.c | filp->f_pos += chars; |
filp | 195 | fs/sysv/file.c | filp->f_reada = 1; |
filp | 203 | fs/sysv/file.c | static int sysv_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 226 | fs/sysv/file.c | if (filp->f_flags & O_APPEND) |
filp | 229 | fs/sysv/file.c | pos = filp->f_pos; |
filp | 266 | fs/sysv/file.c | filp->f_pos = pos; |
filp | 34 | fs/umsdos/dir.c | int UMSDOS_dir_read(struct inode *inode,struct file *filp,char *buf, |
filp | 54 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
filp | 65 | fs/umsdos/dir.c | if (filp->f_pos == UMSDOS_SPECIAL_DIRFPOS |
filp | 84 | fs/umsdos/dir.c | filp->f_pos++; |
filp | 85 | fs/umsdos/dir.c | }else if (filp->f_pos < 2 |
filp | 86 | fs/umsdos/dir.c | || (dir != dir->i_sb->s_mounted && filp->f_pos == 32)){ |
filp | 120 | fs/umsdos/dir.c | ret = msdos_readdir(dir,filp,dirent,count); |
filp | 121 | fs/umsdos/dir.c | if (filp->f_pos == 64) filp->f_pos = UMSDOS_SPECIAL_DIRFPOS; |
filp | 126 | fs/umsdos/dir.c | if (filp->f_pos <= UMSDOS_SPECIAL_DIRFPOS+1) filp->f_pos = 0; |
filp | 127 | fs/umsdos/dir.c | PRINTK (("f_pos %ld i_size %d\n",filp->f_pos,emd_dir->i_size)); |
filp | 129 | fs/umsdos/dir.c | while (filp->f_pos < emd_dir->i_size){ |
filp | 131 | fs/umsdos/dir.c | off_t cur_f_pos = filp->f_pos; |
filp | 132 | fs/umsdos/dir.c | if (umsdos_emd_dir_readentry (emd_dir,filp,&entry)!=0){ |
filp | 224 | fs/umsdos/dir.c | PRINTK (("read dir %p pos %d ret %d\n",dir,filp->f_pos,ret)); |
filp | 234 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
filp | 242 | fs/umsdos/dir.c | ret = umsdos_readdir_x (dir,filp,dirent,1,count,&entry,1,&f_pos); |
filp | 360 | fs/umsdos/dir.c | struct file filp; |
filp | 361 | fs/umsdos/dir.c | filp.f_reada = 1; |
filp | 362 | fs/umsdos/dir.c | filp.f_pos = 0; |
filp | 365 | fs/umsdos/dir.c | if (umsdos_readdir_kmem (dir,&filp,&dirent,1) <= 0){ |
filp | 381 | fs/umsdos/dir.c | struct file filp; |
filp | 382 | fs/umsdos/dir.c | filp.f_reada = 1; |
filp | 383 | fs/umsdos/dir.c | filp.f_pos = UMSDOS_SPECIAL_DIRFPOS; |
filp | 387 | fs/umsdos/dir.c | if (umsdos_readdir_x(dir,&filp,&dirent |
filp | 635 | fs/umsdos/dir.c | struct file filp; |
filp | 636 | fs/umsdos/dir.c | filp.f_reada = 1; |
filp | 637 | fs/umsdos/dir.c | filp.f_pos = 0; |
filp | 639 | fs/umsdos/dir.c | if (umsdos_file_read_kmem (hlink,&filp,path,hlink->i_size) |
filp | 27 | fs/umsdos/emd.c | struct file *filp, |
filp | 34 | fs/umsdos/emd.c | ret = msdos_readdir(inode,filp,dirent,count); |
filp | 43 | fs/umsdos/emd.c | struct file *filp, |
filp | 50 | fs/umsdos/emd.c | ret = msdos_file_read(inode,filp,buf,count); |
filp | 59 | fs/umsdos/emd.c | struct file *filp, |
filp | 66 | fs/umsdos/emd.c | ret = msdos_file_write(inode,filp,buf,count); |
filp | 80 | fs/umsdos/emd.c | struct file *filp, |
filp | 85 | fs/umsdos/emd.c | filp->f_flags = 0; |
filp | 86 | fs/umsdos/emd.c | written = umsdos_file_write_kmem (emd_dir,filp,buf,count); |
filp | 96 | fs/umsdos/emd.c | struct file *filp, |
filp | 102 | fs/umsdos/emd.c | filp->f_flags = 0; |
filp | 103 | fs/umsdos/emd.c | sizeread = umsdos_file_read_kmem (emd_dir,filp,buf,count); |
filp | 157 | fs/umsdos/emd.c | struct file *filp, |
filp | 160 | fs/umsdos/emd.c | int ret = umsdos_emd_dir_read(emd_dir,filp,(char*)entry,UMSDOS_REC_SIZE); |
filp | 165 | fs/umsdos/emd.c | ret = umsdos_emd_dir_read(emd_dir,filp |
filp | 183 | fs/umsdos/emd.c | struct file filp; |
filp | 206 | fs/umsdos/emd.c | filp.f_pos = info->f_pos; |
filp | 207 | fs/umsdos/emd.c | filp.f_reada = 0; |
filp | 208 | fs/umsdos/emd.c | ret = umsdos_emd_dir_write(emd_dir,&filp,(char*)entry,info->recsize); |
filp | 223 | fs/umsdos/emd.c | struct file filp; |
filp | 245 | fs/umsdos/emd.c | remain = inode->i_size - buf->filp.f_pos; |
filp | 248 | fs/umsdos/emd.c | ret = umsdos_emd_dir_read (inode,&buf->filp,buf->buffer+mustmove |
filp | 306 | fs/umsdos/emd.c | buf.filp.f_pos = 0; |
filp | 307 | fs/umsdos/emd.c | buf.filp.f_reada = 1; |
filp | 314 | fs/umsdos/emd.c | int file_pos = buf.filp.f_pos - buf.size + buf.pos; |
filp | 463 | fs/umsdos/emd.c | struct file filp; |
filp | 465 | fs/umsdos/emd.c | filp.f_pos = 0; |
filp | 466 | fs/umsdos/emd.c | filp.f_reada = 1; |
filp | 467 | fs/umsdos/emd.c | filp.f_flags = O_RDONLY; |
filp | 469 | fs/umsdos/emd.c | while (filp.f_pos < emd_dir->i_size){ |
filp | 471 | fs/umsdos/emd.c | if (umsdos_emd_dir_readentry(emd_dir,&filp,&entry)!=0){ |
filp | 34 | fs/umsdos/file.c | struct file *filp, |
filp | 39 | fs/umsdos/file.c | int ret = msdos_file_read(inode,filp,buf,count); |
filp | 51 | fs/umsdos/file.c | struct file *filp, |
filp | 55 | 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 | 28 | fs/umsdos/ioctl.c | struct file *filp, |
filp | 83 | fs/umsdos/ioctl.c | ret = msdos_readdir(dir,filp,&idata->dos_dirent,1); |
filp | 99 | fs/umsdos/ioctl.c | if (filp->f_pos >= emd_dir->i_size){ |
filp | 104 | fs/umsdos/ioctl.c | off_t f_pos = filp->f_pos; |
filp | 105 | fs/umsdos/ioctl.c | ret = umsdos_emd_dir_readentry (emd_dir,filp,&entry); |
filp | 450 | fs/umsdos/namei.c | struct file filp; |
filp | 451 | fs/umsdos/namei.c | filp.f_pos = 0; |
filp | 453 | fs/umsdos/namei.c | ret = umsdos_file_write_kmem (inode,&filp,(char*)symname,len); |
filp | 33 | fs/umsdos/rdir.c | struct file *filp, |
filp | 40 | fs/umsdos/rdir.c | ret = msdos_readdir(dir,filp,dirent,count); |
filp | 38 | fs/umsdos/symlink.c | struct file filp; |
filp | 39 | fs/umsdos/symlink.c | filp.f_pos = 0; |
filp | 40 | fs/umsdos/symlink.c | filp.f_reada = 0; |
filp | 42 | fs/umsdos/symlink.c | if ((*msdos_read) (inode, &filp, buffer,ret) != ret){ |
filp | 67 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
filp | 73 | fs/xiafs/dir.c | struct file * filp, struct dirent * dirent, int count) |
filp | 84 | fs/xiafs/dir.c | while (!ret && filp->f_pos < inode->i_size) { |
filp | 85 | fs/xiafs/dir.c | offset = filp->f_pos & (XIAFS_ZSIZE(inode->i_sb) - 1); |
filp | 86 | fs/xiafs/dir.c | bh = xiafs_bread(inode, filp->f_pos >> XIAFS_ZSIZE_BITS(inode->i_sb),0); |
filp | 88 | fs/xiafs/dir.c | filp->f_pos += XIAFS_ZSIZE(inode->i_sb)-offset; |
filp | 100 | fs/xiafs/dir.c | while (!ret && offset < XIAFS_ZSIZE(inode->i_sb) && filp->f_pos < inode->i_size) { |
filp | 112 | fs/xiafs/dir.c | filp->f_pos += de->d_rec_len; |
filp | 74 | fs/xiafs/file.c | xiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 91 | fs/xiafs/file.c | offset = filp->f_pos; |
filp | 103 | fs/xiafs/file.c | if (filp->f_reada) { |
filp | 160 | fs/xiafs/file.c | filp->f_pos += chars; |
filp | 185 | fs/xiafs/file.c | filp->f_reada = 1; |
filp | 194 | fs/xiafs/file.c | xiafs_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 213 | fs/xiafs/file.c | if (filp->f_flags & O_APPEND) |
filp | 216 | fs/xiafs/file.c | pos = filp->f_pos; |
filp | 252 | 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 | 393 | include/linux/fs.h | extern int blkdev_open(struct inode * inode, struct file * filp); |
filp | 399 | 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 | 171 | include/linux/msdos_fs.h | extern int msdos_readdir (struct inode *inode, struct file *filp, |
filp | 306 | include/linux/tty.h | extern void tty_unhangup(struct file *filp); |
filp | 307 | include/linux/tty.h | extern int tty_hung_up_p(struct file * filp); |
filp | 320 | include/linux/tty.h | extern int rs_open(struct tty_struct * tty, struct file * filp); |
filp | 324 | include/linux/tty.h | extern int pty_open(struct tty_struct * tty, struct file * filp); |
filp | 328 | 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 | 78 | kernel/ksyms.c | extern int close_fp(struct file *filp); |
filp | 986 | mm/swap.c | struct file filp; |
filp | 1022 | mm/swap.c | memset(&filp, 0, sizeof(filp)); |
filp | 1023 | mm/swap.c | filp.f_inode = inode; |
filp | 1024 | mm/swap.c | filp.f_mode = 3; /* read write */ |
filp | 1026 | mm/swap.c | if( !blkdev_open(inode, &filp) && |
filp | 1027 | mm/swap.c | filp.f_op && filp.f_op->release){ |
filp | 1028 | mm/swap.c | filp.f_op->release(inode,&filp); |
filp | 1029 | mm/swap.c | filp.f_op->release(inode,&filp); |
filp | 1058 | mm/swap.c | struct file filp; |
filp | 1060 | mm/swap.c | memset(&filp, 0, sizeof(filp)); |
filp | 1091 | mm/swap.c | filp.f_inode = swap_inode; |
filp | 1092 | mm/swap.c | filp.f_mode = 3; /* read write */ |
filp | 1093 | mm/swap.c | error = blkdev_open(swap_inode, &filp); |
filp | 1159 | mm/swap.c | if(filp.f_op && filp.f_op->release) |
filp | 1160 | mm/swap.c | filp.f_op->release(filp.f_inode,&filp); |
filp | 80 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on); |
filp | 418 | net/socket.c | void sock_close(struct inode *inode, struct file *filp) |
filp | 434 | net/socket.c | sock_fasync(inode, filp, 0); |
filp | 442 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on) |
filp | 463 | net/socket.c | if(fa->fa_file==filp) |
filp | 474 | net/socket.c | fna->fa_file=filp; |
filp | 1133 | net/socket.c | int sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |
filp | 1137 | net/socket.c | sock = socki_lookup (filp->f_inode); |