taglinefilesource code
filp100drivers/block/cdu31a.cstatic int scd_open(struct inode *inode, struct file *filp);
filp1593drivers/block/cdu31a.cstruct file *filp)
filp1671drivers/block/cdu31a.cstruct file *filp)
filp1105drivers/block/floppy.cstatic int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
filp1271drivers/block/floppy.cstatic int floppy_open(struct inode * inode, struct file * filp)
filp1286drivers/block/floppy.cif (filp && filp->f_mode)
filp1291drivers/block/floppy.cstatic void floppy_release(struct inode * inode, struct file * filp)
filp568drivers/block/hd.cstatic int hd_open(struct inode * inode, struct file * filp)
filp1619drivers/char/console.cint con_open(struct tty_struct *tty, struct file * filp)
filp347drivers/char/mem.cstatic int memory_open(struct inode * inode, struct file * filp)
filp351drivers/char/mem.cfilp->f_op = &ram_fops;
filp354drivers/char/mem.cfilp->f_op = &mem_fops;
filp357drivers/char/mem.cfilp->f_op = &kmem_fops;
filp360drivers/char/mem.cfilp->f_op = &null_fops;
filp363drivers/char/mem.cfilp->f_op = &port_fops;
filp366drivers/char/mem.cfilp->f_op = &zero_fops;
filp369drivers/char/mem.cfilp->f_op = &full_fops;
filp374drivers/char/mem.cif (filp->f_op && filp->f_op->open)
filp375drivers/char/mem.creturn filp->f_op->open(inode,filp);
filp27drivers/char/pty.cstatic void pty_close(struct tty_struct * tty, struct file * filp)
filp92drivers/char/pty.cint pty_open(struct tty_struct *tty, struct file * filp)
filp101drivers/char/pty.cif (filp->f_flags & O_NDELAY)
filp1484drivers/char/serial.cstatic void rs_close(struct tty_struct *tty, struct file * filp)
filp1489drivers/char/serial.cif (tty_hung_up_p(filp))
filp1591drivers/char/serial.cstatic int block_til_ready(struct tty_struct *tty, struct file * filp,
filp1618drivers/char/serial.cif (MAJOR(filp->f_rdev) == TTYAUX_MAJOR) {
filp1637drivers/char/serial.cif (filp->f_flags & O_NONBLOCK) {
filp1667drivers/char/serial.cif (tty_hung_up_p(filp) ||
filp1696drivers/char/serial.cif (!tty_hung_up_p(filp))
filp1715drivers/char/serial.cint rs_open(struct tty_struct *tty, struct file * filp)
filp1739drivers/char/serial.cif (MAJOR(filp->f_rdev) == TTY_MAJOR)
filp1751drivers/char/serial.cretval = block_til_ready(tty, filp, info);
filp1810drivers/char/tpqic02.cstatic int tape_qic02_read(struct inode * inode, struct file * filp, char * buf, int count)
filp1814drivers/char/tpqic02.cunsigned short flags = filp->f_flags;
filp1820drivers/char/tpqic02.cMINOR(dev), buf, count, filp->f_pos, flags);
filp1941drivers/char/tpqic02.cfilp->f_pos += bytes_done;
filp1980drivers/char/tpqic02.cstatic int tape_qic02_write(struct inode * inode, struct file * filp, char * buf, int count)
filp1984drivers/char/tpqic02.cunsigned short flags = filp->f_flags;
filp1989drivers/char/tpqic02.cMINOR(dev), buf, count, filp->f_pos, flags);
filp2104drivers/char/tpqic02.cfilp->f_pos += bytes_done;
filp2127drivers/char/tpqic02.cstatic int tape_qic02_open(struct inode * inode, struct file * filp)
filp2130drivers/char/tpqic02.cunsigned short flags = filp->f_flags;
filp2284drivers/char/tpqic02.cstatic int tape_qic02_readdir(struct inode * inode, struct file * filp, struct dirent * dp, int count)
filp2290drivers/char/tpqic02.cstatic void tape_qic02_release(struct inode * inode, struct file * filp)
filp2324drivers/char/tpqic02.cstatic int tape_qic02_ioctl(struct inode * inode, struct file * filp, 
filp198drivers/char/tty_io.cstatic int hung_up_tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait)
filp241drivers/char/tty_io.cstruct file * filp;
filp248drivers/char/tty_io.cfor (filp = first_file, i=0; i<nr_files; i++, filp = filp->f_next) {
filp249drivers/char/tty_io.cif (!filp->f_count)
filp251drivers/char/tty_io.cif (filp->f_rdev != dev)
filp253drivers/char/tty_io.cif (filp->f_inode && filp->f_inode->i_rdev == CONSOLE_DEV)
filp255drivers/char/tty_io.cif (filp->f_op != &tty_fops)
filp257drivers/char/tty_io.cfilp->f_op = fops;
filp292drivers/char/tty_io.cint tty_hung_up_p(struct file * filp)
filp294drivers/char/tty_io.creturn (filp->f_op == &hung_up_tty_fops);
filp1352drivers/char/tty_io.cstatic void release_dev(int dev, struct file * filp)
filp1391drivers/char/tty_io.ctty->close(tty, filp);
filp1463drivers/char/tty_io.cstatic int tty_open(struct inode * inode, struct file * filp)
filp1472drivers/char/tty_io.cnoctty = filp->f_flags & O_NOCTTY;
filp1492drivers/char/tty_io.cfilp->f_rdev = (major << 8) | minor;
filp1521drivers/char/tty_io.cretval = tty->open(tty, filp);
filp1530drivers/char/tty_io.crelease_dev(minor, filp);
filp1546drivers/char/tty_io.cfilp->f_rdev = MKDEV(TTY_MAJOR,minor); /* Set it to something normal */
filp1555drivers/char/tty_io.cstatic void tty_release(struct inode * inode, struct file * filp)
filp1559drivers/char/tty_io.cdev = filp->f_rdev;
filp1564drivers/char/tty_io.cdev = MINOR(filp->f_rdev);
filp1569drivers/char/tty_io.crelease_dev(dev, filp);
filp1572drivers/char/tty_io.cstatic int tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait)
filp1577drivers/char/tty_io.cdev = filp->f_rdev;
filp1582drivers/char/tty_io.cdev = MINOR(filp->f_rdev);
filp1589drivers/char/tty_io.creturn (ldiscs[tty->disc].select)(tty, inode, filp,
filp1641drivers/char/tty_io.cstruct file  *filp;
filp1653drivers/char/tty_io.cfilp = (*p)->filp[i];
filp1654drivers/char/tty_io.cif (filp && (filp->f_op == &tty_fops) &&
filp1655drivers/char/tty_io.c(MINOR(filp->f_rdev) == line)) {
filp56drivers/scsi/sd.cstatic int sd_open(struct inode * inode, struct file * filp)
filp72drivers/scsi/sg.cstatic int sg_open(struct inode * inode, struct file * filp)
filp75drivers/scsi/sg.cint flags=filp->f_flags;
filp112drivers/scsi/sg.cstatic void sg_close(struct inode * inode, struct file * filp)
filp153drivers/scsi/sg.cstatic int sg_read(struct inode *inode,struct file *filp,char *buf,int count)
filp162drivers/scsi/sg.cif (filp->f_flags & O_NONBLOCK)
filp207drivers/scsi/sg.cstatic int sg_write(struct inode *inode,struct file *filp,char *buf,int count)
filp221drivers/scsi/sg.cif (filp->f_flags & O_NONBLOCK)
filp251drivers/scsi/sg.cif (!(SCpnt=allocate_device(NULL,device->device->index, !(filp->f_flags & O_NONBLOCK))))
filp260drivers/scsi/sr.cstatic int sr_open(struct inode * inode, struct file * filp)
filp309drivers/scsi/st.cflush_buffer(struct inode * inode, struct file * filp, int seek_next)
filp335drivers/scsi/st.cresult = st_int_ioctl(inode, filp, MTBSF, 1); /* Back over the EOF hit */
filp342drivers/scsi/st.cresult = st_int_ioctl(inode, filp, MTBSR, backspace);
filp351drivers/scsi/st.cscsi_tape_open(struct inode * inode, struct file * filp)
filp382drivers/scsi/st.cflags = filp->f_flags;
filp541drivers/scsi/st.cscsi_tape_close(struct inode * inode, struct file * filp)
filp560drivers/scsi/st.cprintk("st%d: File length %d bytes.\n", dev, filp->f_pos);
filp590drivers/scsi/st.cst_int_ioctl(inode, filp, MTBSF, 1); /* Back over the EOF hit */
filp592drivers/scsi/st.cflush_buffer(inode, filp, 0);
filp597drivers/scsi/st.cst_int_ioctl(inode, filp, MTREW, 1);
filp608drivers/scsi/st.cst_write(struct inode * inode, struct file * filp, char * buf, int count)
filp634drivers/scsi/st.cretval = flush_buffer(inode, filp, 0);
filp739drivers/scsi/st.cfilp->f_pos += do_count - transfer;
filp767drivers/scsi/st.cfilp->f_pos += do_count;
filp777drivers/scsi/st.cfilp->f_pos += count;
filp823drivers/scsi/st.cst_read(struct inode * inode, struct file * filp, char * buf, int count)
filp845drivers/scsi/st.ctransfer = flush_buffer(inode, filp, 0);
filp989drivers/scsi/st.cfilp->f_pos += transfer;
filp387fs/binfmt_coff.cfp = current->filp[fd];
filp759fs/binfmt_coff.cfile           = current->filp[fd];
filp164fs/binfmt_elf.cfile = current->filp[elf_exec_fileno];
filp321fs/binfmt_elf.cfile = current->filp[elf_exec_fileno];
filp561fs/binfmt_elf.cfile = current->filp[fd];
filp17fs/block_dev.cint block_write(struct inode * inode, struct file * filp, char * buf, int count)
filp41fs/block_dev.cblock = filp->f_pos >> blocksize_bits;
filp42fs/block_dev.coffset = filp->f_pos & (blocksize-1);
filp63fs/block_dev.cfilp->f_pos += chars;
filp78fs/block_dev.cint block_read(struct inode * inode, struct file * filp, char * buf, int count)
filp106fs/block_dev.coffset = filp->f_pos;
filp126fs/block_dev.cif (filp->f_reada) {
filp183fs/block_dev.cfilp->f_pos += chars;
filp208fs/block_dev.cfilp->f_reada = 1;
filp212fs/block_dev.cint block_fsync(struct inode *inode, struct file *filp)
filp172fs/buffer.cint file_fsync (struct inode *inode, struct file *filp)
filp182fs/buffer.cif (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode))
filp96fs/devices.cint blkdev_open(struct inode * inode, struct file * filp)
filp103fs/devices.cfilp->f_op = blkdevs[i].fops;
filp104fs/devices.cif (filp->f_op->open)
filp105fs/devices.creturn filp->f_op->open(inode,filp);
filp147fs/devices.cint chrdev_open(struct inode * inode, struct file * filp)
filp154fs/devices.cfilp->f_op = chrdevs[i].fops;
filp155fs/devices.cif (filp->f_op->open)
filp156fs/devices.creturn filp->f_op->open(inode,filp);
filp67fs/exec.cfpp = current->filp;
filp247fs/exec.cfile = current->filp[fd];
filp813fs/exec.cfile = current->filp[fd];
filp869fs/exec.cfile = current->filp[fd];
filp23fs/ext/dir.cstatic int ext_dir_read(struct inode * inode, struct file * filp, char * buf, int count)
filp64fs/ext/dir.cstatic int ext_readdir(struct inode * inode, struct file * filp,
filp74fs/ext/dir.cif (filp->f_pos % 8 != 0)
filp76fs/ext/dir.cwhile (filp->f_pos < inode->i_size) {
filp77fs/ext/dir.coffset = filp->f_pos & 1023;
filp78fs/ext/dir.cbh = ext_bread(inode,(filp->f_pos)>>BLOCK_SIZE_BITS,0);
filp80fs/ext/dir.cfilp->f_pos += 1024-offset;
filp84fs/ext/dir.cwhile (offset < 1024 && filp->f_pos < inode->i_size) {
filp87fs/ext/dir.c(de->rec_len + filp->f_pos - 1) / 1024 > (filp->f_pos / 1024)) {
filp91fs/ext/dir.cfilp->f_pos += 1024-offset;
filp92fs/ext/dir.cif (filp->f_pos > inode->i_size)
filp93fs/ext/dir.cfilp->f_pos = inode->i_size;
filp97fs/ext/dir.cfilp->f_pos += de->rec_len;
filp72fs/ext/file.cstatic int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count)
filp90fs/ext/file.coffset = filp->f_pos;
filp106fs/ext/file.cif (filp->f_reada) {
filp163fs/ext/file.cfilp->f_pos += chars;
filp188fs/ext/file.cfilp->f_reada = 1;
filp196fs/ext/file.cstatic int ext_file_write(struct inode * inode, struct file * filp, char * buf, int count)
filp215fs/ext/file.cif (filp->f_flags & O_APPEND)
filp218fs/ext/file.cpos = filp->f_pos;
filp254fs/ext/file.cfilp->f_pos = pos;
filp249fs/ext/truncate.cvoid ext_release(struct inode * inode, struct file * filp)
filp25fs/ext2/dir.cstatic int ext2_dir_read (struct inode * inode, struct file * filp,
filp91fs/ext2/dir.cstatic int ext2_readdir (struct inode * inode, struct file * filp,
filp104fs/ext2/dir.cwhile (filp->f_pos < inode->i_size) {
filp105fs/ext2/dir.coffset = filp->f_pos & (sb->s_blocksize - 1);
filp106fs/ext2/dir.cblk = (filp->f_pos) >> EXT2_BLOCK_SIZE_BITS(sb);
filp109fs/ext2/dir.cfilp->f_pos += sb->s_blocksize - offset;
filp133fs/ext2/dir.cwhile (offset < sb->s_blocksize && filp->f_pos < inode->i_size) {
filp140fs/ext2/dir.cfilp->f_pos += de->rec_len;
filp75fs/ext2/file.cstatic int ext2_file_read (struct inode * inode, struct file * filp,
filp98fs/ext2/file.coffset = filp->f_pos;
filp114fs/ext2/file.cif (filp->f_reada) {
filp182fs/ext2/file.cfilp->f_pos += chars;
filp210fs/ext2/file.cfilp->f_reada = 1;
filp218fs/ext2/file.cstatic int ext2_file_write (struct inode * inode, struct file * filp,
filp245fs/ext2/file.cif (filp->f_flags & O_APPEND)
filp248fs/ext2/file.cpos = filp->f_pos;
filp285fs/ext2/file.cfilp->f_pos = pos;
filp295fs/ext2/file.cstatic void ext2_release_file (struct inode * inode, struct file * filp)
filp297fs/ext2/file.cif (filp->f_mode & 2)
filp17fs/ext2/ioctl.cint ext2_ioctl (struct inode * inode, struct file * filp, unsigned int cmd,
filp22fs/fcntl.cif (fd >= NR_OPEN || !current->filp[fd])
filp27fs/fcntl.cif (current->filp[arg])
filp34fs/fcntl.c(current->filp[arg] = current->filp[fd])->f_count++;
filp40fs/fcntl.cif (oldfd >= NR_OPEN || !current->filp[oldfd])
filp68fs/fcntl.cstruct file * filp;
filp70fs/fcntl.cif (fd >= NR_OPEN || !(filp = current->filp[fd]))
filp84fs/fcntl.creturn filp->f_flags;
filp86fs/fcntl.cfilp->f_flags &= ~(O_APPEND | O_NONBLOCK);
filp87fs/fcntl.cfilp->f_flags |= arg & (O_APPEND | O_NONBLOCK);
filp97fs/fcntl.cif (S_ISSOCK (filp->f_inode->i_mode))
filp99fs/fcntl.creturn (sock_fcntl (filp, cmd, arg));
filp12fs/fifo.cstatic int fifo_open(struct inode * inode,struct file * filp)
filp17fs/fifo.cswitch( filp->f_mode ) {
filp25fs/fifo.cfilp->f_op = &connecting_fifo_fops;
filp28fs/fifo.cif (!(filp->f_flags & O_NONBLOCK) && !PIPE_WRITERS(*inode)) {
filp43fs/fifo.cfilp->f_op = &read_fifo_fops;
filp54fs/fifo.cif ((filp->f_flags & O_NONBLOCK) && !PIPE_READERS(*inode)) {
filp58fs/fifo.cfilp->f_op = &write_fifo_fops;
filp86fs/fifo.cfilp->f_op = &rdwr_fifo_fops;
filp182fs/hpfs/hpfs_fs.cstatic int hpfs_dir_read(struct inode *inode, struct file *filp,
filp184fs/hpfs/hpfs_fs.cstatic int hpfs_readdir(struct inode *inode, struct file *filp,
filp862fs/hpfs/hpfs_fs.cstatic int hpfs_file_read(struct inode *inode, struct file *filp,
filp876fs/hpfs/hpfs_fs.cif (count > inode->i_size - filp->f_pos)
filp877fs/hpfs/hpfs_fs.ccount = inode->i_size - filp->f_pos;
filp885fs/hpfs/hpfs_fs.cq = filp->f_pos >> 9;
filp886fs/hpfs/hpfs_fs.cr = filp->f_pos & 511;
filp922fs/hpfs/hpfs_fs.cif (count > inode->i_size - filp->f_pos - n + n0)
filp923fs/hpfs/hpfs_fs.ccount = inode->i_size - filp->f_pos - n + n0;
filp931fs/hpfs/hpfs_fs.cfilp->f_pos += n;
filp1328fs/hpfs/hpfs_fs.cstatic int hpfs_readdir(struct inode *inode, struct file *filp,
filp1343fs/hpfs/hpfs_fs.cswitch (filp->f_pos) {
filp1346fs/hpfs/hpfs_fs.cfilp->f_pos = -1;
filp1352fs/hpfs/hpfs_fs.cfilp->f_pos = 1;
filp1359fs/hpfs/hpfs_fs.cde = map_pos_dirent(inode, &filp->f_pos, &qbh);
filp1361fs/hpfs/hpfs_fs.cfilp->f_pos = -2;
filp1560fs/hpfs/hpfs_fs.cstatic int hpfs_dir_read(struct inode *inode, struct file *filp,
filp16fs/ioctl.cstatic int file_ioctl(struct file *filp,unsigned int cmd,unsigned long arg)
filp23fs/ioctl.cif (filp->f_inode->i_op == NULL)
filp25fs/ioctl.cif (filp->f_inode->i_op->bmap == NULL)
filp31fs/ioctl.cblock = filp->f_inode->i_op->bmap(filp->f_inode,block);
filp35fs/ioctl.cif (filp->f_inode->i_sb == NULL)
filp40fs/ioctl.cput_fs_long(filp->f_inode->i_sb->s_blocksize,
filp47fs/ioctl.cput_fs_long(filp->f_inode->i_size - filp->f_pos,
filp51fs/ioctl.cif (filp->f_op && filp->f_op->ioctl)
filp52fs/ioctl.creturn filp->f_op->ioctl(filp->f_inode, filp, cmd,arg);
filp59fs/ioctl.cstruct file * filp;
filp62fs/ioctl.cif (fd >= NR_OPEN || !(filp = current->filp[fd]))
filp76fs/ioctl.cfilp->f_flags |= O_NONBLOCK;
filp78fs/ioctl.cfilp->f_flags &= ~O_NONBLOCK;
filp85fs/ioctl.cfilp->f_flags |= O_SYNC;
filp87fs/ioctl.cfilp->f_flags &= ~O_SYNC;
filp91fs/ioctl.cif (filp->f_inode && S_ISREG(filp->f_inode->i_mode))
filp92fs/ioctl.creturn file_ioctl(filp,cmd,arg);
filp94fs/ioctl.cif (filp->f_op && filp->f_op->ioctl)
filp95fs/ioctl.creturn filp->f_op->ioctl(filp->f_inode, filp, cmd,arg);
filp64fs/isofs/dir.cstatic int isofs_readdir(struct inode * inode, struct file * filp,
filp82fs/isofs/dir.coffset = filp->f_pos & (bufsize - 1);
filp83fs/isofs/dir.cblock = isofs_bmap(inode,filp->f_pos>>bufbits);
filp87fs/isofs/dir.cwhile (filp->f_pos < inode->i_size) {
filp90fs/isofs/dir.cblock, offset, filp->f_pos);
filp102fs/isofs/dir.cfilp->f_pos = ((filp->f_pos & ~(ISOFS_BLOCK_SIZE - 1))
filp104fs/isofs/dir.cblock = isofs_bmap(inode,(filp->f_pos)>>bufbits);
filp118fs/isofs/dir.cfilp->f_pos += *((unsigned char *) de);
filp126fs/isofs/dir.coffset = filp->f_pos & (bufsize - 1);
filp127fs/isofs/dir.cblock = isofs_bmap(inode,(filp->f_pos)>> bufbits);
filp114fs/isofs/file.cstatic int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count)
filp134fs/isofs/file.cif (filp->f_pos > inode->i_size)
filp137fs/isofs/file.cleft = inode->i_size - filp->f_pos;
filp143fs/isofs/file.cblock = filp->f_pos >> ISOFS_BUFFER_BITS(inode);
filp144fs/isofs/file.coffset = filp->f_pos & (ISOFS_BUFFER_SIZE(inode)-1);
filp186fs/isofs/file.cif(blocks == 0 && bhrequest && filp->f_reada && bhb != bhe) { 
filp231fs/isofs/file.cfilp->f_pos += chars;
filp260fs/isofs/file.cfilp->f_reada = 1;
filp25fs/locks.cstatic int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l,
filp29fs/locks.cstatic int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd);
filp58fs/locks.cstruct file *filp;
filp61fs/locks.cif (fd >= NR_OPEN || !(filp = current->filp[fd]))
filp69fs/locks.cif (!copy_flock(filp, &file_lock, &flock, fd))
filp72fs/locks.cfor (fl = filp->f_inode->i_flock; fl != NULL; fl = fl->fl_next) {
filp97fs/locks.cstruct file *filp;
filp105fs/locks.cif (fd >= NR_OPEN || !(filp = current->filp[fd]))
filp111fs/locks.cif (!copy_flock(filp, &file_lock, &flock, fd))
filp115fs/locks.cif (!(filp->f_mode & 1))
filp119fs/locks.cif (!(filp->f_mode & 2))
filp123fs/locks.cif (!(filp->f_mode & 3))
filp128fs/locks.cif (!(filp->f_mode & 3))
filp142fs/locks.cfor (fl = filp->f_inode->i_flock; fl != NULL; fl = fl->fl_next) {
filp166fs/locks.creturn lock_it(filp, &file_lock, fd);
filp173fs/locks.cvoid fcntl_remove_locks(struct task_struct *task, struct file *filp,
filp181fs/locks.cbefore = &filp->f_inode->i_flock;
filp196fs/locks.cstatic int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l,
filp201fs/locks.cif (!filp->f_inode)  /* just in case */
filp203fs/locks.cif (!S_ISREG(filp->f_inode->i_mode))
filp210fs/locks.ccase 1 /*SEEK_CUR*/ : start = filp->f_pos; break;
filp211fs/locks.ccase 2 /*SEEK_END*/ : start = filp->f_inode->i_size; break;
filp272fs/locks.cstatic int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd)
filp284fs/locks.cbefore = &filp->f_inode->i_flock;
filp16fs/minix/dir.cstatic int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count)
filp57fs/minix/dir.cstatic int minix_readdir(struct inode * inode, struct file * filp,
filp69fs/minix/dir.cif (filp->f_pos & (info->s_dirsize - 1))
filp71fs/minix/dir.cwhile (filp->f_pos < inode->i_size) {
filp72fs/minix/dir.coffset = filp->f_pos & 1023;
filp73fs/minix/dir.cbh = minix_bread(inode,(filp->f_pos)>>BLOCK_SIZE_BITS,0);
filp75fs/minix/dir.cfilp->f_pos += 1024-offset;
filp78fs/minix/dir.cwhile (offset < 1024 && filp->f_pos < inode->i_size) {
filp81fs/minix/dir.cfilp->f_pos += info->s_dirsize;
filp66fs/minix/file.cstatic int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count)
filp84fs/minix/file.coffset = filp->f_pos;
filp100fs/minix/file.cif (filp->f_reada) {
filp157fs/minix/file.cfilp->f_pos += chars;
filp182fs/minix/file.cfilp->f_reada = 1;
filp188fs/minix/file.cstatic int minix_file_write(struct inode * inode, struct file * filp, char * buf, int count)
filp207fs/minix/file.cif (filp->f_flags & O_APPEND)
filp210fs/minix/file.cpos = filp->f_pos;
filp246fs/minix/file.cfilp->f_pos = pos;
filp17fs/msdos/dir.cstatic int msdos_dir_read(struct inode * inode,struct file * filp, char * buf,int count)
filp22fs/msdos/dir.cstatic int msdos_readdir(struct inode *inode,struct file *filp,
filp57fs/msdos/dir.cstatic int msdos_readdir(struct inode *inode,struct file *filp,
filp68fs/msdos/dir.cif (filp->f_pos == 2) filp->f_pos = 0;
filp69fs/msdos/dir.celse if (filp->f_pos < 2) {
filp70fs/msdos/dir.cwalk = filp->f_pos++ ? ".." : ".";
filp79fs/msdos/dir.cif (filp->f_pos & (sizeof(struct msdos_dir_entry)-1)) return -ENOENT;
filp81fs/msdos/dir.cwhile ((ino = msdos_get_entry(inode,&filp->f_pos,&bh,&de)) > -1) {
filp22fs/msdos/file.cstatic int msdos_file_read(struct inode *inode,struct file *filp,char *buf,
filp24fs/msdos/file.cstatic int msdos_file_write(struct inode *inode,struct file *filp,char *buf,
filp80fs/msdos/file.cstatic int msdos_file_read(struct inode *inode,struct file *filp,char *buf,
filp98fs/msdos/file.cif (filp->f_pos >= inode->i_size || count <= 0) return 0;
filp100fs/msdos/file.cwhile ((left = MIN(inode->i_size-filp->f_pos,count-(buf-start))) > 0){
filp101fs/msdos/file.cif (!(sector = msdos_smap(inode,filp->f_pos >> SECTOR_BITS)))
filp103fs/msdos/file.coffset = filp->f_pos & (SECTOR_SIZE-1);
filp105fs/msdos/file.cfilp->f_pos += (size = MIN(SECTOR_SIZE-offset,left));
filp116fs/msdos/file.cfilp->f_pos = inode->i_size;
filp135fs/msdos/file.cstatic int msdos_file_write(struct inode *inode,struct file *filp,char *buf,
filp156fs/msdos/file.cif (filp->f_flags & O_APPEND) filp->f_pos = inode->i_size;
filp160fs/msdos/file.cwhile (!(sector = msdos_smap(inode,filp->f_pos >> SECTOR_BITS)))
filp166fs/msdos/file.coffset = filp->f_pos & (SECTOR_SIZE-1);
filp173fs/msdos/file.cmemcpy_fromfs(data+(filp->f_pos & (SECTOR_SIZE-1)),
filp179fs/msdos/file.cto = (char *) data+(filp->f_pos & (SECTOR_SIZE-1));
filp198fs/msdos/file.cfilp->f_pos += written;
filp199fs/msdos/file.cif (filp->f_pos > inode->i_size) {
filp200fs/msdos/file.cinode->i_size = filp->f_pos;
filp21fs/nfs/dir.cstatic int nfs_dir_read(struct inode *, struct file *filp, char *buf,
filp72fs/nfs/dir.cstatic int nfs_dir_read(struct inode *inode, struct file *filp, char *buf,
filp86fs/nfs/dir.cstatic int nfs_readdir(struct inode *inode, struct file *filp,
filp119fs/nfs/dir.cif (filp->f_pos == c_entry[i].cookie) {
filp135fs/nfs/dir.cfilp->f_pos, NFS_READDIR_CACHE_SIZE, c_entry);
filp155fs/nfs/dir.cfilp->f_pos = entry->cookie;
filp21fs/nfs/inode.cextern int close_fp(struct file *filp, unsigned int fd);
filp67fs/nfs/inode.cstruct file *filp;
filp80fs/nfs/inode.cif (fd >= NR_OPEN || !(filp = current->filp[fd])) {
filp85fs/nfs/inode.cif (!S_ISSOCK(filp->f_inode->i_mode)) {
filp90fs/nfs/inode.cfilp->f_count++;
filp98fs/nfs/inode.cserver->file = filp;
filp58fs/open.cif (fd >= NR_OPEN || !(file = current->filp[fd]))
filp99fs/open.cif (fd >= NR_OPEN || !(file = current->filp[fd]))
filp218fs/open.cif (fd >= NR_OPEN || !(file = current->filp[fd]))
filp258fs/open.cif (fd >= NR_OPEN || !(file = current->filp[fd]))
filp309fs/open.cif (fd >= NR_OPEN || !(file = current->filp[fd]))
filp383fs/open.cif (!current->filp[fd])
filp391fs/open.ccurrent->filp[fd] = f;
filp400fs/open.ccurrent->filp[fd]=NULL;
filp416fs/open.ccurrent->filp[fd]=NULL;
filp442fs/open.cint close_fp(struct file *filp, unsigned int fd)
filp446fs/open.cif (filp->f_count == 0) {
filp450fs/open.cinode = filp->f_inode;
filp452fs/open.cfcntl_remove_locks(current, filp, fd);
filp453fs/open.cif (filp->f_count > 1) {
filp454fs/open.cfilp->f_count--;
filp457fs/open.cif (filp->f_op && filp->f_op->release)
filp458fs/open.cfilp->f_op->release(inode,filp);
filp459fs/open.cfilp->f_count--;
filp460fs/open.cfilp->f_inode = NULL;
filp467fs/open.cstruct file * filp;
filp472fs/open.cif (!(filp = current->filp[fd]))
filp474fs/open.ccurrent->filp[fd] = NULL;
filp475fs/open.creturn (close_fp (filp, fd));
filp24fs/pipe.cstatic int pipe_read(struct inode * inode, struct file * filp, char * buf, int count)
filp29fs/pipe.cif (filp->f_flags & O_NONBLOCK) {
filp71fs/pipe.cstatic int pipe_write(struct inode * inode, struct file * filp, char * buf, int count)
filp93fs/pipe.cif (filp->f_flags & O_NONBLOCK)
filp128fs/pipe.cstatic int bad_pipe_rw(struct inode * inode, struct file * filp, char * buf, int count)
filp133fs/pipe.cstatic int pipe_ioctl(struct inode *pino, struct file * filp,
filp149fs/pipe.cstatic int pipe_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait)
filp175fs/pipe.cstatic int fifo_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait)
filp202fs/pipe.cstatic int connect_read(struct inode * inode, struct file * filp, char * buf, int count)
filp207fs/pipe.cif (filp->f_flags & O_NONBLOCK)
filp214fs/pipe.cfilp->f_op = &read_fifo_fops;
filp215fs/pipe.creturn pipe_read(inode,filp,buf,count);
filp218fs/pipe.cstatic int connect_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait)
filp223fs/pipe.cfilp->f_op = &read_fifo_fops;
filp246fs/pipe.cstatic void pipe_read_release(struct inode * inode, struct file * filp)
filp252fs/pipe.cstatic void pipe_write_release(struct inode * inode, struct file * filp)
filp258fs/pipe.cstatic void pipe_rdwr_release(struct inode * inode, struct file * filp)
filp397fs/pipe.cif (!current->filp[i]) {
filp398fs/pipe.ccurrent->filp[ fd[j]=i ] = f[j];
filp402fs/pipe.ccurrent->filp[fd[0]]=NULL;
filp409fs/pipe.ccurrent->filp[fd[0]] = NULL;
filp410fs/pipe.ccurrent->filp[fd[1]] = NULL;
filp132fs/proc/base.cstatic int proc_readbase(struct inode * inode, struct file * filp,
filp148fs/proc/base.cif (((unsigned) filp->f_pos) < NR_BASE_DIRENTRY) {
filp149fs/proc/base.cde = base_dir + filp->f_pos;
filp150fs/proc/base.cfilp->f_pos++;
filp108fs/proc/fd.cif (fd >= NR_OPEN || !p->filp[fd] || !p->filp[fd]->f_inode)
filp126fs/proc/fd.cstatic int proc_readfd(struct inode * inode, struct file * filp,
filp142fs/proc/fd.cfd = filp->f_pos;
filp143fs/proc/fd.cfilp->f_pos++;
filp166fs/proc/fd.cif (!p->filp[fd] || !p->filp[fd]->f_inode)
filp172fs/proc/inode.cif (ino >= NR_OPEN || !p->filp[ino])
filp81fs/proc/link.cif (ino < NR_OPEN && p->filp[ino])
filp82fs/proc/link.cinode = p->filp[ino]->f_inode;
filp130fs/proc/net.cstatic int proc_readnetdir(struct inode * inode, struct file * filp,
filp140fs/proc/net.cif (((unsigned) filp->f_pos) < NR_NET_DIRENTRY) {
filp141fs/proc/net.cde = net_dir + filp->f_pos;
filp142fs/proc/net.cfilp->f_pos++;
filp131fs/proc/root.cstatic int proc_readroot(struct inode * inode, struct file * filp,
filp141fs/proc/root.cnr = filp->f_pos;
filp145fs/proc/root.cfilp->f_pos++;
filp158fs/proc/root.cfilp->f_pos++;
filp25fs/read_write.cif (fd >= NR_OPEN || !(file = current->filp[fd]) ||
filp42fs/read_write.cif (fd >= NR_OPEN || !(file=current->filp[fd]) || !(file->f_inode))
filp76fs/read_write.cif (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode))
filp96fs/read_write.cif (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode))
filp98fs/select.cif (!current->filp[i])
filp100fs/select.cif (!current->filp[i]->f_inode)
filp119fs/select.cif (FD_ISSET(i,in) && check(SEL_IN,wait,current->filp[i])) {
filp124fs/select.cif (FD_ISSET(i,out) && check(SEL_OUT,wait,current->filp[i])) {
filp129fs/select.cif (FD_ISSET(i,ex) && check(SEL_EX,wait,current->filp[i])) {
filp162fs/stat.cif (fd >= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode))
filp177fs/stat.cif (fd >= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode))
filp23fs/sysv/dir.cstatic int sysv_dir_read(struct inode * inode, struct file * filp, char * buf, int count)
filp64fs/sysv/dir.cstatic int sysv_readdir(struct inode * inode, struct file * filp,
filp76fs/sysv/dir.cif ((unsigned long)(filp->f_pos) % SYSV_DIRSIZE)
filp78fs/sysv/dir.cwhile (filp->f_pos < inode->i_size) {
filp79fs/sysv/dir.coffset = filp->f_pos & sb->sv_block_size_1;
filp80fs/sysv/dir.cbh = sysv_file_bread(inode, filp->f_pos >> sb->sv_block_size_bits, 0, &bh_data);
filp82fs/sysv/dir.cfilp->f_pos += sb->sv_block_size - offset;
filp85fs/sysv/dir.cwhile (offset < sb->sv_block_size && filp->f_pos < inode->i_size) {
filp88fs/sysv/dir.cfilp->f_pos += SYSV_DIRSIZE;
filp98fs/sysv/dir.cinode->i_dev, inode->i_ino, filp->f_pos - SYSV_DIRSIZE, de->inode);
filp109fs/sysv/file.cstatic int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count)
filp129fs/sysv/file.coffset = filp->f_pos;
filp145fs/sysv/file.cif (filp->f_reada) {
filp211fs/sysv/file.cfilp->f_pos += chars;
filp236fs/sysv/file.cfilp->f_reada = 1;
filp242fs/sysv/file.cstatic int sysv_file_write(struct inode * inode, struct file * filp, char * buf, int count)
filp268fs/sysv/file.cif (filp->f_flags & O_APPEND)
filp271fs/sysv/file.cpos = filp->f_pos;
filp308fs/sysv/file.cfilp->f_pos = pos;
filp60fs/xiafs/dir.cstruct file * filp, char * buf, int count)
filp66fs/xiafs/dir.cstruct file * filp, struct dirent * dirent, int count)
filp76fs/xiafs/dir.cwhile (filp->f_pos < inode->i_size) {
filp77fs/xiafs/dir.coffset = filp->f_pos & (XIAFS_ZSIZE(inode->i_sb) - 1);
filp78fs/xiafs/dir.cbh = xiafs_bread(inode, filp->f_pos >> XIAFS_ZSIZE_BITS(inode->i_sb),0);
filp80fs/xiafs/dir.cfilp->f_pos += XIAFS_ZSIZE(inode->i_sb)-offset;
filp84fs/xiafs/dir.cwhile (offset < XIAFS_ZSIZE(inode->i_sb) && filp->f_pos < inode->i_size) {
filp96fs/xiafs/dir.cfilp->f_pos += de->d_rec_len;
filp70fs/xiafs/file.cxiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count)
filp87fs/xiafs/file.coffset = filp->f_pos;
filp99fs/xiafs/file.cif (filp->f_reada) {
filp155fs/xiafs/file.cfilp->f_pos += chars;
filp180fs/xiafs/file.cfilp->f_reada = 1;
filp189fs/xiafs/file.cxiafs_file_write(struct inode * inode, struct file * filp, char * buf, int count)
filp208fs/xiafs/file.cif (filp->f_flags & O_APPEND)
filp211fs/xiafs/file.cpos = filp->f_pos;
filp247fs/xiafs/file.cfilp->f_pos = pos;
filp62include/linux/ext_fs.hextern int ext_open(struct inode * inode, struct file * filp);
filp63include/linux/ext_fs.hextern void ext_release(struct inode * inode, struct file * filp);
filp326include/linux/fs.hextern int blkdev_open(struct inode * inode, struct file * filp);
filp332include/linux/fs.hextern int chrdev_open(struct inode * inode, struct file * filp);
filp167include/linux/iso_fs.hextern int isofs_open(struct inode * inode, struct file * filp);
filp168include/linux/iso_fs.hextern void isofs_release(struct inode * inode, struct file * filp);
filp228include/linux/sched.hstruct file * filp[NR_OPEN];
filp256include/linux/tty.hint  (*open)(struct tty_struct * tty, struct file * filp);
filp257include/linux/tty.hvoid (*close)(struct tty_struct * tty, struct file * filp);
filp418include/linux/tty.hextern void tty_unhangup(struct file *filp);
filp419include/linux/tty.hextern int tty_hung_up_p(struct file * filp);
filp430include/linux/tty.hextern int  rs_open(struct tty_struct * tty, struct file * filp);
filp434include/linux/tty.hextern int  pty_open(struct tty_struct * tty, struct file * filp);
filp438include/linux/tty.hextern int con_open(struct tty_struct * tty, struct file * filp);
filp369kernel/exit.cif (current->filp[i])
filp203kernel/fork.cif ((f = p->filp[i]) != NULL)
filp204kernel/fork.cp->filp[i] = copy_fd(f);
filp207kernel/fork.cif ((f = p->filp[i]) != NULL)
filp149mm/mmap.cif (fd >= NR_OPEN || !(file = current->filp[fd]))
filp107net/socket.cif (!current->filp[fd]) break;
filp113net/socket.ccurrent->filp[fd] = file;
filp161net/socket.cif (fd < 0 || fd >= NR_OPEN || !(file = current->filp[fd])) return(NULL);
filp543net/socket.cif (fd < 0 || fd >= NR_OPEN || current->filp[fd] == NULL)
filp565net/socket.cif (fd < 0 || fd >= NR_OPEN || current->filp[fd] == NULL)
filp591net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
filp646net/socket.cif (fd < 0 || fd >= NR_OPEN || (file=current->filp[fd]) == NULL)
filp681net/socket.cif (fd < 0 || fd >= NR_OPEN || current->filp[fd] == NULL)
filp694net/socket.cif (fd < 0 || fd >= NR_OPEN || current->filp[fd] == NULL)
filp711net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
filp730net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
filp749net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
filp768net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
filp788net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
filp807net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
filp824net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL))
filp834net/socket.csock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg)
filp838net/socket.csock = socki_lookup (filp->f_inode);