taglinefilesource code
filp16fs/block_dev.cint block_write(struct inode * inode, struct file * filp, char * buf, int count)
filp18fs/block_dev.cint block = filp->f_pos >> BLOCK_SIZE_BITS;
filp19fs/block_dev.cint offset = filp->f_pos & (BLOCK_SIZE-1);
filp47fs/block_dev.cfilp->f_pos += chars;
filp62fs/block_dev.cint block_read(struct inode * inode, struct file * filp, char * buf, int count)
filp77fs/block_dev.coffset = filp->f_pos;
filp97fs/block_dev.cif (filp->f_reada) {
filp151fs/block_dev.cfilp->f_pos += chars;
filp176fs/block_dev.cfilp->f_reada = 1;
filp49fs/devices.cint blkdev_open(struct inode * inode, struct file * filp)
filp56fs/devices.cfilp->f_op = blkdev_fops[i];
filp57fs/devices.cif (filp->f_op->open)
filp58fs/devices.creturn filp->f_op->open(inode,filp);
filp100fs/devices.cint chrdev_open(struct inode * inode, struct file * filp)
filp107fs/devices.cfilp->f_op = chrdev_fops[i];
filp108fs/devices.cif (filp->f_op->open)
filp109fs/devices.creturn filp->f_op->open(inode,filp);
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) {
filp160fs/ext/file.cfilp->f_pos += chars;
filp185fs/ext/file.cfilp->f_reada = 1;
filp193fs/ext/file.cstatic int ext_file_write(struct inode * inode, struct file * filp, char * buf, int count)
filp212fs/ext/file.cif (filp->f_flags & O_APPEND)
filp215fs/ext/file.cpos = filp->f_pos;
filp252fs/ext/file.cfilp->f_pos = pos;
filp250fs/ext/truncate.cvoid ext_release(struct inode * inode, struct file * filp)
filp24fs/ext2/dir.cstatic int ext2_dir_read (struct inode * inode, struct file * filp,
filp93fs/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.cbh = ext2_bread (inode, (filp->f_pos) >> EXT2_BLOCK_SIZE_BITS(sb), 0, &err);
filp108fs/ext2/dir.cfilp->f_pos += sb->s_blocksize - offset;
filp112fs/ext2/dir.cwhile (offset < sb->s_blocksize && filp->f_pos < inode->i_size) {
filp119fs/ext2/dir.cfilp->f_pos += de->rec_len;
filp72fs/ext2/file.c/* static */ int ext2_file_read (struct inode * inode, struct file * filp,
filp93fs/ext2/file.coffset = filp->f_pos;
filp109fs/ext2/file.cif (filp->f_reada) {
filp164fs/ext2/file.cfilp->f_pos += chars;
filp190fs/ext2/file.cfilp->f_reada = 1;
filp198fs/ext2/file.cstatic int ext2_file_write (struct inode * inode, struct file * filp,
filp221fs/ext2/file.cif (filp->f_flags & O_APPEND)
filp224fs/ext2/file.cpos = filp->f_pos;
filp264fs/ext2/file.cfilp->f_pos = pos;
filp11fs/ext2/ioctl.cint ext2_ioctl (struct inode * inode, struct file * filp, unsigned int cmd,
filp281fs/ext2/truncate.cvoid ext2_release (struct inode * inode, struct file * filp)
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;
filp71fs/fcntl.cif (fd >= NR_OPEN || !(filp = current->filp[fd]))
filp85fs/fcntl.creturn filp->f_flags;
filp87fs/fcntl.cfilp->f_flags &= ~(O_APPEND | O_NONBLOCK);
filp88fs/fcntl.cfilp->f_flags |= arg & (O_APPEND | O_NONBLOCK);
filp98fs/fcntl.cif (S_ISSOCK (filp->f_inode->i_mode))
filp100fs/fcntl.creturn (sock_fcntl (filp, cmd, arg));
filp16fs/fifo.cstatic int fifo_open(struct inode * inode,struct file * filp)
filp21fs/fifo.cswitch( filp->f_mode ) {
filp29fs/fifo.cfilp->f_op = &read_pipe_fops;
filp32fs/fifo.cif (!(filp->f_flags & O_NONBLOCK) && !PIPE_WRITERS(*inode)) {
filp60fs/fifo.cif ((filp->f_flags & O_NONBLOCK) && !PIPE_READERS(*inode)) {
filp64fs/fifo.cfilp->f_op = &write_pipe_fops;
filp92fs/fifo.cfilp->f_op = &rdwr_pipe_fops;
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);
filp63fs/isofs/dir.cstatic int isofs_readdir(struct inode * inode, struct file * filp,
filp79fs/isofs/dir.coffset = filp->f_pos & (BLOCK_SIZE - 1);
filp80fs/isofs/dir.cblock = isofs_bmap(inode,(filp->f_pos)>>BLOCK_SIZE_BITS);
filp84fs/isofs/dir.cwhile (filp->f_pos < inode->i_size) {
filp86fs/isofs/dir.cprintk("Block, offset: %x %x %x\n",block, offset, filp->f_pos);
filp97fs/isofs/dir.cfilp->f_pos =(filp->f_pos & ~(ISOFS_BLOCK_SIZE - 1))+ISOFS_BLOCK_SIZE;
filp98fs/isofs/dir.cblock = isofs_bmap(inode,(filp->f_pos)>>BLOCK_SIZE_BITS);
filp110fs/isofs/dir.cfilp->f_pos += *((unsigned char*) de);
filp116fs/isofs/dir.coffset = filp->f_pos & (BLOCK_SIZE - 1);
filp117fs/isofs/dir.cblock = isofs_bmap(inode,(filp->f_pos)>>BLOCK_SIZE_BITS);
filp113fs/isofs/file.cstatic int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count)
filp133fs/isofs/file.cif (filp->f_pos > inode->i_size)
filp136fs/isofs/file.cleft = inode->i_size - filp->f_pos;
filp142fs/isofs/file.cblock = filp->f_pos >> ISOFS_BUFFER_BITS;
filp143fs/isofs/file.coffset = filp->f_pos & (ISOFS_BUFFER_SIZE-1);
filp185fs/isofs/file.cif(blocks == 0 && bhrequest && filp->f_reada && bhb != bhe) { 
filp227fs/isofs/file.cfilp->f_pos += chars;
filp256fs/isofs/file.cfilp->f_reada = 1;
filp23fs/locks.cstatic int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l);
filp26fs/locks.cstatic int lock_it(struct file *filp, struct file_lock *caller);
filp27fs/locks.cstatic int unlock_it(struct file *filp, struct file_lock *caller);
filp28fs/locks.cstatic struct file_lock *alloc_lock(struct file *filp, struct file_lock *template);
filp29fs/locks.cstatic void free_lock(struct file *filp, struct file_lock *fl);
filp55fs/locks.cstruct file *filp;
filp58fs/locks.cif (fd >= NR_OPEN || !(filp = current->filp[fd]))
filp66fs/locks.cif (!copy_flock(filp, &file_lock, &flock))
filp69fs/locks.cfor (fl = filp->f_inode->i_flock; fl != NULL; fl = fl->fl_next) {
filp94fs/locks.cstruct file *filp;
filp102fs/locks.cif (fd >= NR_OPEN || !(filp = current->filp[fd]))
filp108fs/locks.cif (!copy_flock(filp, &file_lock, &flock))
filp112fs/locks.cif (!(filp->f_mode & 1))
filp116fs/locks.cif (!(filp->f_mode & 2))
filp120fs/locks.cif (!(filp->f_mode & 3))
filp125fs/locks.cif (!(filp->f_mode & 3))
filp138fs/locks.creturn unlock_it(filp, &file_lock);
filp145fs/locks.cfor (fl = filp->f_inode->i_flock; fl != NULL; fl = fl->fl_next) {
filp168fs/locks.creturn lock_it(filp, &file_lock);
filp175fs/locks.cvoid fcntl_remove_locks(struct task_struct *task, struct file *filp)
filp179fs/locks.cfor (fl = filp->f_inode->i_flock; fl != NULL; ) {
filp186fs/locks.cfree_lock(filp, fl);
filp196fs/locks.cstatic int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l)
filp200fs/locks.cif (!filp->f_inode)  /* just in case */
filp202fs/locks.cif (!S_ISREG(filp->f_inode->i_mode))
filp209fs/locks.ccase 1 /*SEEK_CUR*/ : start = filp->f_pos; break;
filp210fs/locks.ccase 2 /*SEEK_END*/ : start = filp->f_inode->i_size; break;
filp267fs/locks.cstatic int lock_it(struct file *filp, struct file_lock *caller)
filp279fs/locks.cif ((caller = alloc_lock(filp, caller)) == NULL)
filp286fs/locks.cfor (fl = filp->f_inode->i_flock; fl != NULL; fl = fl->fl_next) {
filp299fs/locks.cfree_lock(filp, caller);
filp304fs/locks.cfree_lock(filp, caller);
filp321fs/locks.cif ((new = alloc_lock(filp, fl)) == NULL) {
filp322fs/locks.cfree_lock(filp, caller);
filp333fs/locks.cfree_lock(filp, fl);
filp344fs/locks.cfree_lock(filp, caller);
filp358fs/locks.cfree_lock(filp, caller);
filp380fs/locks.cstatic int unlock_it(struct file *filp, struct file_lock *caller)
filp385fs/locks.cfor (fl = filp->f_inode->i_flock; fl != NULL; ) {
filp396fs/locks.cif ((next = alloc_lock(filp, fl)) == NULL)
filp421fs/locks.cfree_lock(filp, fl);
filp437fs/locks.cstatic struct file_lock *alloc_lock(struct file *filp, struct file_lock *template)
filp451fs/locks.cnew->fl_next = filp->f_inode->i_flock;  /* insert into file's list */
filp452fs/locks.cfilp->f_inode->i_flock = new;
filp465fs/locks.cstatic void free_lock(struct file *filp, struct file_lock *fl)
filp477fs/locks.cfor (fl_p = &filp->f_inode->i_flock; *fl_p != NULL; fl_p = &(*fl_p)->fl_next) {
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) {
filp154fs/minix/file.cfilp->f_pos += chars;
filp179fs/minix/file.cfilp->f_reada = 1;
filp187fs/minix/file.cstatic int minix_file_write(struct inode * inode, struct file * filp, char * buf, int count)
filp206fs/minix/file.cif (filp->f_flags & O_APPEND)
filp209fs/minix/file.cpos = filp->f_pos;
filp245fs/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;
filp129fs/msdos/file.cstatic int msdos_file_write(struct inode *inode,struct file *filp,char *buf,
filp150fs/msdos/file.cif (filp->f_flags & O_APPEND) filp->f_pos = inode->i_size;
filp154fs/msdos/file.cwhile (!(sector = msdos_smap(inode,filp->f_pos >> SECTOR_BITS)))
filp160fs/msdos/file.coffset = filp->f_pos & (SECTOR_SIZE-1);
filp167fs/msdos/file.cmemcpy_fromfs(data+(filp->f_pos & (SECTOR_SIZE-1)),
filp173fs/msdos/file.cto = data+(filp->f_pos & (SECTOR_SIZE-1));
filp192fs/msdos/file.cfilp->f_pos += written;
filp193fs/msdos/file.cif (filp->f_pos > inode->i_size) {
filp194fs/msdos/file.cinode->i_size = filp->f_pos;
filp20fs/nfs/dir.cstatic int nfs_dir_read(struct inode *, struct file *filp, char *buf,
filp71fs/nfs/dir.cstatic int nfs_dir_read(struct inode *inode, struct file *filp, char *buf,
filp85fs/nfs/dir.cstatic int nfs_readdir(struct inode *inode, struct file *filp,
filp118fs/nfs/dir.cif (filp->f_pos == c_entry[i].cookie) {
filp134fs/nfs/dir.cfilp->f_pos, NFS_READDIR_CACHE_SIZE, c_entry);
filp154fs/nfs/dir.cfilp->f_pos = entry->cookie;
filp21fs/nfs/inode.cextern int close_fp(struct file *filp);
filp65fs/nfs/inode.cstruct file *filp;
filp78fs/nfs/inode.cif (fd >= NR_OPEN || !(filp = current->filp[fd])) {
filp83fs/nfs/inode.cif (!S_ISSOCK(filp->f_inode->i_mode)) {
filp88fs/nfs/inode.cfilp->f_count++;
filp95fs/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]))
filp239fs/open.cif (fd >= NR_OPEN || !(file = current->filp[fd]))
filp286fs/open.cif (fd >= NR_OPEN || !(file = current->filp[fd]))
filp361fs/open.cif (!current->filp[fd])
filp369fs/open.ccurrent->filp[fd] = f;
filp382fs/open.ccurrent->filp[fd]=NULL;
filp392fs/open.ccurrent->filp[fd] = NULL;
filp409fs/open.ccurrent->filp[fd]=NULL;
filp422fs/open.cint close_fp(struct file *filp)
filp426fs/open.cif (filp->f_count == 0) {
filp430fs/open.cinode = filp->f_inode;
filp432fs/open.cfcntl_remove_locks(current, filp);
filp433fs/open.cif (filp->f_count > 1) {
filp434fs/open.cfilp->f_count--;
filp437fs/open.cif (filp->f_op && filp->f_op->release)
filp438fs/open.cfilp->f_op->release(inode,filp);
filp439fs/open.cfilp->f_count--;
filp440fs/open.cfilp->f_inode = NULL;
filp447fs/open.cstruct file * filp;
filp452fs/open.cif (!(filp = current->filp[fd]))
filp454fs/open.ccurrent->filp[fd] = NULL;
filp455fs/open.creturn (close_fp (filp));
filp16fs/pipe.cstatic int pipe_read(struct inode * inode, struct file * filp, char * buf, int count)
filp20fs/pipe.cif (!(filp->f_flags & O_NONBLOCK))
filp50fs/pipe.cstatic int pipe_write(struct inode * inode, struct file * filp, char * buf, int count)
filp71fs/pipe.cif (filp->f_flags & O_NONBLOCK)
filp105fs/pipe.cstatic int bad_pipe_rw(struct inode * inode, struct file * filp, char * buf, int count)
filp110fs/pipe.cstatic int pipe_ioctl(struct inode *pino, struct file * filp,
filp126fs/pipe.cstatic int pipe_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait)
filp152fs/pipe.cstatic void pipe_read_release(struct inode * inode, struct file * filp)
filp158fs/pipe.cstatic void pipe_write_release(struct inode * inode, struct file * filp)
filp164fs/pipe.cstatic void pipe_rdwr_release(struct inode * inode, struct file * filp)
filp234fs/pipe.cif (!current->filp[i]) {
filp235fs/pipe.ccurrent->filp[ fd[j]=i ] = f[j];
filp239fs/pipe.ccurrent->filp[fd[0]]=NULL;
filp246fs/pipe.ccurrent->filp[fd[0]] = NULL;
filp247fs/pipe.ccurrent->filp[fd[1]] = NULL;
filp131fs/proc/base.cstatic int proc_readbase(struct inode * inode, struct file * filp,
filp147fs/proc/base.cif (((unsigned) filp->f_pos) < NR_BASE_DIRENTRY) {
filp148fs/proc/base.cde = base_dir + filp->f_pos;
filp149fs/proc/base.cfilp->f_pos++;
filp108fs/proc/fd.cif (fd >= NR_OPEN || !p->filp[fd] || !p->filp[fd]->f_inode)
filp121fs/proc/fd.cstatic int proc_readfd(struct inode * inode, struct file * filp,
filp137fs/proc/fd.cfd = filp->f_pos;
filp138fs/proc/fd.cfilp->f_pos++;
filp161fs/proc/fd.cif (!p->filp[fd] || !p->filp[fd]->f_inode)
filp149fs/proc/inode.cif (ino >= NR_OPEN || !p->filp[ino])
filp77fs/proc/link.cif (ino < NR_OPEN && p->filp[ino])
filp78fs/proc/link.cinode = p->filp[ino]->f_inode;
filp123fs/proc/root.cstatic int proc_readroot(struct inode * inode, struct file * filp,
filp133fs/proc/root.cnr = filp->f_pos;
filp137fs/proc/root.cfilp->f_pos++;
filp150fs/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)
filp120fs/select.cif (FD_ISSET(i,in) && check(SEL_IN,wait,current->filp[i])) {
filp125fs/select.cif (FD_ISSET(i,out) && check(SEL_OUT,wait,current->filp[i])) {
filp130fs/select.cif (FD_ISSET(i,ex) && check(SEL_EX,wait,current->filp[i])) {
filp151fs/stat.cif (fd >= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode))
filp166fs/stat.cif (fd >= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode))
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) {
filp152fs/xiafs/file.cfilp->f_pos += chars;
filp177fs/xiafs/file.cfilp->f_reada = 1;
filp186fs/xiafs/file.cxiafs_file_write(struct inode * inode, struct file * filp, char * buf, int count)
filp205fs/xiafs/file.cif (filp->f_flags & O_APPEND)
filp208fs/xiafs/file.cpos = filp->f_pos;
filp244fs/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);
filp313include/linux/fs.hextern int blkdev_open(struct inode * inode, struct file * filp);
filp318include/linux/fs.hextern int chrdev_open(struct inode * inode, struct file * filp);
filp156include/linux/iso_fs.hextern int isofs_open(struct inode * inode, struct file * filp);
filp157include/linux/iso_fs.hextern void isofs_release(struct inode * inode, struct file * filp);
filp203include/linux/sched.hstruct file * filp[NR_OPEN];
filp213include/linux/tty.hint  (*open)(struct tty_struct * tty, struct file * filp);
filp214include/linux/tty.hvoid (*close)(struct tty_struct * tty, struct file * filp);
filp352include/linux/tty.hextern void tty_unhangup(struct file *filp);
filp353include/linux/tty.hextern int tty_hung_up_p(struct file * filp);
filp363include/linux/tty.hextern int  rs_open(struct tty_struct * tty, struct file * filp);
filp367include/linux/tty.hextern int  pty_open(struct tty_struct * tty, struct file * filp);
filp371include/linux/tty.hextern int con_open(struct tty_struct * tty, struct file * filp);
filp1033kernel/blk_drv/floppy.cstatic int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
filp1189kernel/blk_drv/floppy.cstatic int floppy_open(struct inode * inode, struct file * filp)
filp1204kernel/blk_drv/floppy.cif (filp && filp->f_mode)
filp1209kernel/blk_drv/floppy.cstatic void floppy_release(struct inode * inode, struct file * filp)
filp551kernel/blk_drv/hd.cstatic int hd_open(struct inode * inode, struct file * filp)
filp59kernel/blk_drv/scsi/sd.cstatic int sd_open(struct inode * inode, struct file * filp)
filp257kernel/blk_drv/scsi/sr.cstatic int sr_open(struct inode * inode, struct file * filp)
filp254kernel/blk_drv/scsi/st.cstatic int flush_buffer(struct inode * inode, struct file * filp,
filp273kernel/blk_drv/scsi/st.cresult = st_int_ioctl(inode, filp, MTBSR, backspace);
filp285kernel/blk_drv/scsi/st.cstatic int scsi_tape_open(struct inode * inode, struct file * filp)
filp314kernel/blk_drv/scsi/st.cflags = filp->f_flags;
filp444kernel/blk_drv/scsi/st.cif (st_int_ioctl(inode, filp, MTSETBLK, ST_BLOCK_SIZE)) {
filp480kernel/blk_drv/scsi/st.cstatic void scsi_tape_close(struct inode * inode, struct file * filp)
filp497kernel/blk_drv/scsi/st.cprintk("st%d: File length %d bytes.\n", dev, filp->f_pos);
filp529kernel/blk_drv/scsi/st.cst_int_ioctl(inode, filp, MTBSF, 1); /* Back over the EOF hit */
filp531kernel/blk_drv/scsi/st.cflush_buffer(inode, filp, 0);
filp536kernel/blk_drv/scsi/st.cst_int_ioctl(inode, filp, MTREW, 1);
filp546kernel/blk_drv/scsi/st.cint st_write(struct inode * inode, struct file * filp, char * buf, int count)
filp566kernel/blk_drv/scsi/st.cretval = flush_buffer(inode, filp, 0);
filp636kernel/blk_drv/scsi/st.cfilp->f_pos += do_count;
filp646kernel/blk_drv/scsi/st.cfilp->f_pos += count;
filp685kernel/blk_drv/scsi/st.cint st_read(struct inode * inode, struct file * filp, char * buf, int count)
filp702kernel/blk_drv/scsi/st.ctransfer = flush_buffer(inode, filp, 0);
filp822kernel/blk_drv/scsi/st.cfilp->f_pos += transfer;
filp1497kernel/chr_drv/console.cint con_open(struct tty_struct *tty, struct file * filp)
filp316kernel/chr_drv/mem.cstatic int memory_open(struct inode * inode, struct file * filp)
filp320kernel/chr_drv/mem.cfilp->f_op = &ram_fops;
filp323kernel/chr_drv/mem.cfilp->f_op = &mem_fops;
filp326kernel/chr_drv/mem.cfilp->f_op = &kmem_fops;
filp329kernel/chr_drv/mem.cfilp->f_op = &null_fops;
filp332kernel/chr_drv/mem.cfilp->f_op = &port_fops;
filp335kernel/chr_drv/mem.cfilp->f_op = &zero_fops;
filp338kernel/chr_drv/mem.cfilp->f_op = &core_fops;
filp343kernel/chr_drv/mem.cif (filp->f_op && filp->f_op->open)
filp344kernel/chr_drv/mem.creturn filp->f_op->open(inode,filp);
filp24kernel/chr_drv/pty.cstatic void pty_close(struct tty_struct * tty, struct file * filp)
filp74kernel/chr_drv/pty.cint pty_open(struct tty_struct *tty, struct file * filp)
filp81kernel/chr_drv/pty.cif (filp->f_flags & O_NDELAY)
filp1070kernel/chr_drv/serial.cstatic void rs_close(struct tty_struct *tty, struct file * filp)
filp1123kernel/chr_drv/serial.cstatic int block_til_ready(struct tty_struct *tty, struct file * filp,
filp1133kernel/chr_drv/serial.cif (MAJOR(filp->f_rdev) == 5) {
filp1144kernel/chr_drv/serial.cif (filp->f_flags & O_NONBLOCK) {
filp1170kernel/chr_drv/serial.cif (tty_hung_up_p(filp)) {
filp1211kernel/chr_drv/serial.cint rs_open(struct tty_struct *tty, struct file * filp)
filp1269kernel/chr_drv/serial.cretval = block_til_ready(tty, filp, info);
filp179kernel/chr_drv/tty_io.cstatic int hung_up_tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait)
filp233kernel/chr_drv/tty_io.cstruct file * filp;
filp240kernel/chr_drv/tty_io.cfilp = file_table + NR_FILE;
filp241kernel/chr_drv/tty_io.cwhile (filp-- > file_table) {
filp242kernel/chr_drv/tty_io.cif (!filp->f_count)
filp244kernel/chr_drv/tty_io.cif (filp->f_rdev != dev)
filp246kernel/chr_drv/tty_io.cif (filp->f_inode && filp->f_inode->i_rdev == 0x0400)
filp248kernel/chr_drv/tty_io.cif (filp->f_op != &tty_fops)
filp250kernel/chr_drv/tty_io.cfilp->f_op = fops;
filp275kernel/chr_drv/tty_io.cvoid tty_unhangup(struct file *filp)
filp277kernel/chr_drv/tty_io.cfilp->f_op = &tty_fops;
filp280kernel/chr_drv/tty_io.cinline int tty_hung_up_p(struct file * filp)
filp282kernel/chr_drv/tty_io.creturn ((filp->f_op == &hung_up_tty_fops) ||
filp283kernel/chr_drv/tty_io.c(filp->f_op == &vhung_up_tty_fops));
filp1083kernel/chr_drv/tty_io.cstatic void release_dev(int dev, struct file * filp)
filp1119kernel/chr_drv/tty_io.ctty->close(tty, filp);
filp1181kernel/chr_drv/tty_io.cstatic int tty_open(struct inode * inode, struct file * filp)
filp1189kernel/chr_drv/tty_io.cnoctty = filp->f_flags & O_NOCTTY;
filp1209kernel/chr_drv/tty_io.cfilp->f_rdev = (major << 8) | minor;
filp1227kernel/chr_drv/tty_io.cretval = tty->open(tty, filp);
filp1232kernel/chr_drv/tty_io.crelease_dev(minor, filp);
filp1243kernel/chr_drv/tty_io.cfilp->f_rdev = 0x0400 | minor; /* Set it to something normal */
filp1252kernel/chr_drv/tty_io.cstatic void tty_release(struct inode * inode, struct file * filp)
filp1256kernel/chr_drv/tty_io.cdev = filp->f_rdev;
filp1261kernel/chr_drv/tty_io.cdev = MINOR(filp->f_rdev);
filp1266kernel/chr_drv/tty_io.crelease_dev(dev, filp);
filp1269kernel/chr_drv/tty_io.cstatic int tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait)
filp1274kernel/chr_drv/tty_io.cdev = filp->f_rdev;
filp1279kernel/chr_drv/tty_io.cdev = MINOR(filp->f_rdev);
filp1333kernel/chr_drv/tty_io.cstruct file  *filp;
filp1345kernel/chr_drv/tty_io.cfilp = (*p)->filp[i];
filp1346kernel/chr_drv/tty_io.cif (filp && (filp->f_op == &tty_fops) &&
filp1347kernel/chr_drv/tty_io.c(MINOR(filp->f_rdev) == line)) {
filp336kernel/exit.cif (current->filp[i])
filp141kernel/fork.cif ((f = p->filp[i]) != NULL)
filp51mm/mmap.cif (fd >= NR_OPEN || fd < 0 || !(file = current->filp[fd]))
filp92net/socket.cif (!current->filp[fd])
filp99net/socket.ccurrent->filp[fd] = file;
filp139net/socket.cif (fd < 0 || fd >= NR_OPEN || !(file = current->filp[fd]))
filp688net/socket.cif (fd < 0 || fd >= NR_OPEN ||   ((file = current->filp[fd]) == NULL))
filp709net/socket.cif (fd < 0 || fd >= NR_OPEN ||   ((file = current->filp[fd]) == NULL))
filp731net/socket.cif (fd < 0 || fd >= NR_OPEN ||   ((file = current->filp[fd]) == NULL))
filp752net/socket.cif (fd < 0 || fd >= NR_OPEN ||   ((file = current->filp[fd]) == NULL))
filp775net/socket.cif (fd < 0 || fd >= NR_OPEN ||   ((file = current->filp[fd]) == NULL))
filp794net/socket.cif (fd < 0 || fd >= NR_OPEN ||   ((file = current->filp[fd]) == NULL))
filp815net/socket.cfile = current->filp[fd];
filp827net/socket.csock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg)
filp830net/socket.csock = socki_lookup (filp->f_inode);