| tag | line | file | source code |
| file | 16 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 62 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 50 | fs/exec.c | while (file.f_op->write(inode,&file,(char *)(addr),(nr)) != (nr)) goto close_coredump |
| file | 53 | fs/exec.c | if (file.f_op->lseek) { \ |
| file | 54 | fs/exec.c | if (file.f_op->lseek(inode,&file,(offset),0) != (offset)) \ |
| file | 56 | fs/exec.c | } else file.f_pos = (offset) |
| file | 70 | fs/exec.c | struct file file; |
| file | 92 | fs/exec.c | file.f_mode = 3; |
| file | 93 | fs/exec.c | file.f_flags = 0; |
| file | 94 | fs/exec.c | file.f_count = 1; |
| file | 95 | fs/exec.c | file.f_inode = inode; |
| file | 96 | fs/exec.c | file.f_pos = 0; |
| file | 97 | fs/exec.c | file.f_reada = 0; |
| file | 98 | fs/exec.c | file.f_op = inode->i_op->default_file_ops; |
| file | 99 | fs/exec.c | if (file.f_op->open) |
| file | 100 | fs/exec.c | if (file.f_op->open(inode,&file)) |
| file | 102 | fs/exec.c | if (!file.f_op->write) |
| file | 164 | fs/exec.c | if (file.f_op->release) |
| file | 165 | fs/exec.c | file.f_op->release(inode,&file); |
| file | 23 | fs/ext/blkdev.c | static int blkdev_open(struct inode * inode, struct file * filp) |
| file | 23 | fs/ext/chrdev.c | static int chrdev_open(struct inode * inode, struct file * filp) |
| file | 23 | fs/ext/dir.c | static int ext_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 28 | fs/ext/dir.c | static int ext_readdir(struct inode *, struct file *, struct dirent *, int); |
| file | 62 | fs/ext/dir.c | static int ext_readdir(struct inode * inode, struct file * filp, |
| file | 34 | fs/ext/file.c | static int ext_file_read(struct inode *, struct file *, char *, int); |
| file | 35 | fs/ext/file.c | static int ext_file_write(struct inode *, struct file *, char *, int); |
| file | 70 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 191 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 250 | fs/ext/truncate.c | void ext_release(struct inode * inode, struct file * filp) |
| file | 55 | fs/fcntl.c | struct file * filp; |
| file | 56 | fs/fcntl.c | extern int sock_fcntl (struct file *, unsigned int cmd, |
| file | 16 | fs/fifo.c | static int fifo_open(struct inode * inode,struct file * filp) |
| file | 10 | fs/file_table.c | struct file file_table[NR_FILE]; |
| file | 12 | fs/file_table.c | struct file * get_empty_filp(void) |
| file | 15 | fs/file_table.c | struct file * f = file_table+0; |
| file | 16 | fs/ioctl.c | static int file_ioctl(struct file *filp,unsigned int cmd,unsigned long arg) |
| file | 51 | fs/ioctl.c | struct file * filp; |
| file | 22 | fs/isofs/blkdev.c | static int blkdev_open(struct inode * inode, struct file * filp) |
| file | 22 | fs/isofs/chrdev.c | static int chrdev_open(struct inode * inode, struct file * filp) |
| file | 22 | fs/isofs/dir.c | static int isofs_readdir(struct inode *, struct file *, struct dirent *, int); |
| file | 61 | fs/isofs/dir.c | static int isofs_readdir(struct inode * inode, struct file * filp, |
| file | 32 | fs/isofs/file.c | static int isofs_file_read(struct inode *, struct file *, char *, int); |
| file | 111 | fs/isofs/file.c | static int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 23 | fs/locks.c | static int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l); |
| file | 26 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller); |
| file | 27 | fs/locks.c | static int unlock_it(struct file *filp, struct file_lock *caller); |
| file | 28 | fs/locks.c | static struct file_lock *alloc_lock(struct file *filp, struct file_lock *template); |
| file | 29 | fs/locks.c | static void free_lock(struct file *filp, struct file_lock *fl); |
| file | 54 | fs/locks.c | struct file *filp; |
| file | 90 | fs/locks.c | struct file *filp; |
| file | 155 | fs/locks.c | void fcntl_remove_locks(struct task_struct *task, struct file *filp) |
| file | 176 | fs/locks.c | static int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l) |
| file | 246 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller) |
| file | 359 | fs/locks.c | static int unlock_it(struct file *filp, struct file_lock *caller) |
| file | 416 | fs/locks.c | static struct file_lock *alloc_lock(struct file *filp, struct file_lock *template) |
| file | 444 | fs/locks.c | static void free_lock(struct file *filp, struct file_lock *fl) |
| file | 17 | fs/minix/blkdev.c | static int blkdev_open(struct inode * inode, struct file * filp) |
| file | 17 | fs/minix/chrdev.c | static int chrdev_open(struct inode * inode, struct file * filp) |
| file | 16 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 21 | fs/minix/dir.c | static int minix_readdir(struct inode *, struct file *, struct dirent *, int); |
| file | 55 | fs/minix/dir.c | static int minix_readdir(struct inode * inode, struct file * filp, |
| file | 28 | fs/minix/file.c | static int minix_file_read(struct inode *, struct file *, char *, int); |
| file | 29 | fs/minix/file.c | static int minix_file_write(struct inode *, struct file *, char *, int); |
| file | 64 | fs/minix/file.c | static int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 185 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 17 | fs/msdos/dir.c | static int msdos_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
| file | 22 | fs/msdos/dir.c | static int msdos_readdir(struct inode *inode,struct file *filp, |
| file | 54 | fs/msdos/dir.c | static int msdos_readdir(struct inode *inode,struct file *filp, |
| file | 22 | fs/msdos/file.c | static int msdos_file_read(struct inode *inode,struct file *filp,char *buf, |
| file | 24 | fs/msdos/file.c | static int msdos_file_write(struct inode *inode,struct file *filp,char *buf, |
| file | 77 | fs/msdos/file.c | static int msdos_file_read(struct inode *inode,struct file *filp,char *buf, |
| file | 126 | fs/msdos/file.c | static int msdos_file_write(struct inode *inode,struct file *filp,char *buf, |
| file | 17 | fs/nfs/blkdev.c | static int blkdev_open(struct inode * inode, struct file * filp) |
| file | 17 | fs/nfs/chrdev.c | static int chrdev_open(struct inode * inode, struct file * filp) |
| file | 20 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *, struct file *filp, char *buf, |
| file | 22 | fs/nfs/dir.c | static int nfs_readdir(struct inode *, struct file *, struct dirent *, int); |
| file | 69 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
| file | 83 | fs/nfs/dir.c | static int nfs_readdir(struct inode *inode, struct file *filp, |
| file | 257 | fs/nfs/dir.c | static void nfs_lookup_cache_refresh(struct inode *file, |
| file | 265 | fs/nfs/dir.c | if (entry->dev == file->i_dev |
| file | 266 | fs/nfs/dir.c | && entry->fattr.fileid == file->i_ino) { |
| file | 20 | fs/nfs/file.c | static int nfs_file_read(struct inode *, struct file *, char *, int); |
| file | 21 | fs/nfs/file.c | static int nfs_file_write(struct inode *, struct file *, char *, int); |
| file | 52 | fs/nfs/file.c | static int nfs_file_read(struct inode *inode, struct file *file, char *buf, |
| file | 71 | fs/nfs/file.c | if (file->f_pos + count > inode->i_size) |
| file | 72 | fs/nfs/file.c | count = inode->i_size - file->f_pos; |
| file | 82 | fs/nfs/file.c | file->f_pos, hunk, data, &fattr); |
| file | 88 | fs/nfs/file.c | file->f_pos += result; |
| file | 100 | fs/nfs/file.c | static int nfs_file_write(struct inode *inode, struct file *file, char *buf, |
| file | 121 | fs/nfs/file.c | if (file->f_flags & O_APPEND) |
| file | 122 | fs/nfs/file.c | file->f_pos = inode->i_size; |
| file | 131 | fs/nfs/file.c | file->f_pos, hunk, data, &fattr); |
| file | 136 | fs/nfs/file.c | file->f_pos += hunk; |
| file | 21 | fs/nfs/inode.c | extern int close_fp(struct file *filp); |
| file | 39 | fs/nfs/inode.c | close_fp(sb->u.nfs_sb.s_server.file); |
| file | 58 | fs/nfs/inode.c | struct file *filp; |
| file | 88 | fs/nfs/inode.c | server->file = filp; |
| file | 33 | fs/nfs/sock.c | struct file *file; |
| file | 42 | fs/nfs/sock.c | int (*select) (struct inode *, struct file *, int, select_table *); |
| file | 52 | fs/nfs/sock.c | file = server->file; |
| file | 53 | fs/nfs/sock.c | inode = file->f_inode; |
| file | 54 | fs/nfs/sock.c | select = file->f_op->select; |
| file | 77 | fs/nfs/sock.c | if (!select(inode, file, SEL_IN, &wait_table) |
| file | 78 | fs/nfs/sock.c | && !select(inode, file, SEL_IN, NULL)) { |
| file | 22 | fs/open.c | extern void fcntl_remove_locks(struct task_struct *, struct file *); |
| file | 58 | fs/open.c | struct file * file; |
| file | 61 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
| file | 63 | fs/open.c | if (!(inode = file->f_inode)) |
| file | 100 | fs/open.c | struct file * file; |
| file | 102 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
| file | 104 | fs/open.c | if (!(inode = file->f_inode)) |
| file | 106 | fs/open.c | if (S_ISDIR(inode->i_mode) || !(file->f_mode & 2)) |
| file | 235 | fs/open.c | struct file * file; |
| file | 237 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
| file | 239 | fs/open.c | if (!(inode = file->f_inode)) |
| file | 276 | fs/open.c | struct file * file; |
| file | 278 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
| file | 280 | fs/open.c | if (!(inode = file->f_inode)) |
| file | 346 | fs/open.c | struct file * f; |
| file | 410 | fs/open.c | int close_fp(struct file *filp) |
| file | 435 | fs/open.c | struct file * filp; |
| file | 482 | fs/open.c | struct file *filep; |
| file | 16 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 46 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 91 | fs/pipe.c | static int pipe_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
| file | 96 | fs/pipe.c | static int pipe_readdir(struct inode * inode, struct file * file, struct dirent * de, int count) |
| file | 101 | fs/pipe.c | static int bad_pipe_rw(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 106 | fs/pipe.c | static int pipe_ioctl(struct inode *pino, struct file * filp, |
| file | 119 | fs/pipe.c | static int pipe_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
| file | 145 | fs/pipe.c | static void pipe_read_release(struct inode * inode, struct file * filp) |
| file | 151 | fs/pipe.c | static void pipe_write_release(struct inode * inode, struct file * filp) |
| file | 157 | fs/pipe.c | static void pipe_rdwr_release(struct inode * inode, struct file * filp) |
| file | 208 | fs/pipe.c | struct file * f[2]; |
| file | 150 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
| file | 188 | fs/proc/array.c | if (file->f_pos >= length) { |
| file | 192 | fs/proc/array.c | if (count + file->f_pos > length) |
| file | 193 | fs/proc/array.c | count = length - file->f_pos; |
| file | 194 | fs/proc/array.c | end = count + file->f_pos; |
| file | 195 | fs/proc/array.c | memcpy_tofs(buf, page + file->f_pos, count); |
| file | 197 | fs/proc/array.c | file->f_pos = end; |
| file | 16 | fs/proc/base.c | static int proc_readbase(struct inode *, struct file *, struct dirent *, int); |
| file | 128 | fs/proc/base.c | static int proc_readbase(struct inode * inode, struct file * filp, |
| file | 16 | fs/proc/fd.c | static int proc_readfd(struct inode *, struct file *, struct dirent *, int); |
| file | 119 | fs/proc/fd.c | static int proc_readfd(struct inode * inode, struct file * filp, |
| file | 15 | fs/proc/mem.c | static int mem_read(struct inode * inode, struct file * file,char * buf, int count) |
| file | 34 | fs/proc/mem.c | addr = file->f_pos; |
| file | 58 | fs/proc/mem.c | file->f_pos = addr; |
| file | 62 | fs/proc/mem.c | static int mem_write(struct inode * inode, struct file * file,char * buf, int count) |
| file | 71 | fs/proc/mem.c | addr = file->f_pos; |
| file | 109 | fs/proc/mem.c | file->f_pos = addr; |
| file | 117 | fs/proc/mem.c | static int mem_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
| file | 121 | fs/proc/mem.c | file->f_pos = offset; |
| file | 122 | fs/proc/mem.c | return file->f_pos; |
| file | 124 | fs/proc/mem.c | file->f_pos += offset; |
| file | 125 | fs/proc/mem.c | return file->f_pos; |
| file | 16 | fs/proc/root.c | static int proc_readroot(struct inode *, struct file *, struct dirent *, int); |
| file | 119 | fs/proc/root.c | static int proc_readroot(struct inode * inode, struct file * filp, |
| file | 22 | fs/read_write.c | struct file * file; |
| file | 25 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->filp[fd]) || |
| file | 26 | fs/read_write.c | !(inode = file->f_inode)) |
| file | 28 | fs/read_write.c | if (file->f_op && file->f_op->readdir) { |
| file | 30 | fs/read_write.c | return file->f_op->readdir(inode,file,dirent,count); |
| file | 37 | fs/read_write.c | struct file * file; |
| file | 40 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->filp[fd]) || !(file->f_inode)) |
| file | 44 | fs/read_write.c | if (file->f_op && file->f_op->lseek) |
| file | 45 | fs/read_write.c | return file->f_op->lseek(file->f_inode,file,offset,origin); |
| file | 53 | fs/read_write.c | tmp = file->f_pos + offset; |
| file | 56 | fs/read_write.c | if (!file->f_inode) |
| file | 58 | fs/read_write.c | tmp = file->f_inode->i_size + offset; |
| file | 63 | fs/read_write.c | file->f_pos = tmp; |
| file | 64 | fs/read_write.c | file->f_reada = 0; |
| file | 65 | fs/read_write.c | return file->f_pos; |
| file | 70 | fs/read_write.c | struct file * file; |
| file | 73 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode)) |
| file | 75 | fs/read_write.c | if (!(file->f_mode & 1)) |
| file | 77 | fs/read_write.c | if (!file->f_op || !file->f_op->read) |
| file | 82 | fs/read_write.c | return file->f_op->read(inode,file,buf,count); |
| file | 87 | fs/read_write.c | struct file * file; |
| file | 90 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode)) |
| file | 92 | fs/read_write.c | if (!(file->f_mode & 2)) |
| file | 94 | fs/read_write.c | if (!file->f_op || !file->f_op->write) |
| file | 98 | fs/read_write.c | return file->f_op->write(inode,file,buf,count); |
| file | 61 | fs/select.c | static int check(int flag, select_table * wait, struct file * file) |
| file | 65 | fs/select.c | int (*select) (struct inode *, struct file *, int, select_table *); |
| file | 67 | fs/select.c | inode = file->f_inode; |
| file | 68 | fs/select.c | if ((fops = file->f_op) && (select = fops->select)) |
| file | 69 | fs/select.c | return select(inode, file, flag, wait) |
| file | 70 | fs/select.c | || (wait && select(inode, file, flag, NULL)); |
| file | 134 | fs/stat.c | struct file * f; |
| file | 145 | fs/stat.c | struct file * f; |
| file | 62 | include/linux/ext_fs.h | extern int ext_open(struct inode * inode, struct file * filp); |
| file | 63 | include/linux/ext_fs.h | extern void ext_release(struct inode * inode, struct file * filp); |
| file | 98 | include/linux/ext_fs.h | extern int ext_lseek(struct inode *, struct file *, off_t, int); |
| file | 99 | include/linux/ext_fs.h | extern int ext_read(struct inode *, struct file *, char *, int); |
| file | 100 | include/linux/ext_fs.h | extern int ext_write(struct inode *, struct file *, char *, int); |
| file | 78 | include/linux/fs.h | #define NIL_FILP ((struct file *)0) |
| file | 233 | include/linux/fs.h | int (*lseek) (struct inode *, struct file *, off_t, int); |
| file | 234 | include/linux/fs.h | int (*read) (struct inode *, struct file *, char *, int); |
| file | 235 | include/linux/fs.h | int (*write) (struct inode *, struct file *, char *, int); |
| file | 236 | include/linux/fs.h | int (*readdir) (struct inode *, struct file *, struct dirent *, int); |
| file | 237 | include/linux/fs.h | int (*select) (struct inode *, struct file *, int, select_table *); |
| file | 238 | include/linux/fs.h | int (*ioctl) (struct inode *, struct file *, unsigned int, unsigned int); |
| file | 240 | include/linux/fs.h | int (*open) (struct inode *, struct file *); |
| file | 241 | include/linux/fs.h | void (*release) (struct inode *, struct file *); |
| file | 285 | include/linux/fs.h | extern struct file file_table[NR_FILE]; |
| file | 318 | include/linux/fs.h | extern struct file * get_empty_filp(void); |
| file | 333 | include/linux/fs.h | extern int char_read(struct inode *, struct file *, char *, int); |
| file | 334 | include/linux/fs.h | extern int block_read(struct inode *, struct file *, char *, int); |
| file | 337 | include/linux/fs.h | extern int char_write(struct inode *, struct file *, char *, int); |
| file | 338 | include/linux/fs.h | extern int block_write(struct inode *, struct file *, char *, int); |
| file | 156 | include/linux/iso_fs.h | extern int isofs_open(struct inode * inode, struct file * filp); |
| file | 157 | include/linux/iso_fs.h | extern void isofs_release(struct inode * inode, struct file * filp); |
| file | 171 | include/linux/iso_fs.h | extern int isofs_lseek(struct inode *, struct file *, off_t, int); |
| file | 172 | include/linux/iso_fs.h | extern int isofs_read(struct inode *, struct file *, char *, int); |
| file | 7 | include/linux/nfs_fs_sb.h | struct file *file; |
| file | 205 | include/linux/sched.h | struct file * filp[NR_OPEN]; |
| file | 191 | include/linux/tty.h | int (*open)(struct tty_struct * tty, struct file * filp); |
| file | 192 | include/linux/tty.h | void (*close)(struct tty_struct * tty, struct file * filp); |
| file | 194 | include/linux/tty.h | int (*ioctl)(struct tty_struct *tty, struct file * file, |
| file | 282 | include/linux/tty.h | extern int tty_ioctl(struct inode *, struct file *, unsigned int, unsigned int); |
| file | 297 | include/linux/tty.h | extern int rs_open(struct tty_struct * tty, struct file * filp); |
| file | 302 | include/linux/tty.h | extern int pty_open(struct tty_struct * tty, struct file * filp); |
| file | 306 | include/linux/tty.h | extern int con_open(struct tty_struct * tty, struct file * filp); |
| file | 313 | include/linux/tty.h | extern int vt_ioctl(struct tty_struct *tty, struct file * file, |
| file | 47 | init/main.c | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
| file | 48 | init/main.c | static inline _syscall3(int,open,const char *,file,int,flag,int,mode) |
| file | 1033 | kernel/blk_drv/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
| file | 1179 | kernel/blk_drv/floppy.c | static int floppy_open(struct inode * inode, struct file * filp) |
| file | 1199 | kernel/blk_drv/floppy.c | static void floppy_release(struct inode * inode, struct file * filp) |
| file | 494 | kernel/blk_drv/hd.c | static int hd_ioctl(struct inode * inode, struct file * file, |
| file | 532 | kernel/blk_drv/hd.c | static int hd_open(struct inode * inode, struct file * filp) |
| file | 547 | kernel/blk_drv/hd.c | static void hd_release(struct inode * inode, struct file * file) |
| file | 53 | kernel/blk_drv/scsi/sd.c | extern int sd_ioctl(struct inode *, struct file *, unsigned int, unsigned int); |
| file | 59 | kernel/blk_drv/scsi/sd.c | static int sd_open(struct inode * inode, struct file * filp) |
| file | 82 | kernel/blk_drv/scsi/sd.c | static void sd_release(struct inode * inode, struct file * file) |
| file | 17 | kernel/blk_drv/scsi/sd_ioctl.c | int sd_ioctl(struct inode * inode, struct file * file, unsigned long cmd, unsigned long arg) |
| file | 39 | kernel/blk_drv/scsi/sr.c | static int sr_open(struct inode *, struct file *); |
| file | 41 | kernel/blk_drv/scsi/sr.c | extern int sr_ioctl(struct inode *, struct file *, unsigned int, unsigned int); |
| file | 45 | kernel/blk_drv/scsi/sr.c | static void sr_release(struct inode * inode, struct file * file) |
| file | 257 | kernel/blk_drv/scsi/sr.c | static int sr_open(struct inode * inode, struct file * filp) |
| file | 92 | kernel/blk_drv/scsi/sr_ioctl.c | int sr_ioctl(struct inode * inode, struct file * file, unsigned long cmd, unsigned long arg) |
| file | 80 | kernel/blk_drv/scsi/st.c | static int st_int_ioctl(struct inode * inode,struct file * file, |
| file | 249 | kernel/blk_drv/scsi/st.c | static int flush_buffer(struct inode * inode, struct file * filp, |
| file | 280 | kernel/blk_drv/scsi/st.c | static int scsi_tape_open(struct inode * inode, struct file * filp) |
| file | 475 | kernel/blk_drv/scsi/st.c | static void scsi_tape_close(struct inode * inode, struct file * filp) |
| file | 537 | kernel/blk_drv/scsi/st.c | int st_write(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 676 | kernel/blk_drv/scsi/st.c | int st_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 836 | kernel/blk_drv/scsi/st.c | static int st_int_ioctl(struct inode * inode,struct file * file, |
| file | 1052 | kernel/blk_drv/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTFSF, 1); |
| file | 1078 | kernel/blk_drv/scsi/st.c | static int st_ioctl(struct inode * inode,struct file * file, |
| file | 1106 | kernel/blk_drv/scsi/st.c | i = flush_buffer(inode, file, mtc.mt_op == MTSEEK || |
| file | 1112 | kernel/blk_drv/scsi/st.c | return st_int_ioctl(inode, file, mtc.mt_op, mtc.mt_count); |
| file | 1131 | kernel/blk_drv/scsi/st.c | i = flush_buffer(inode, file, 0); |
| file | 79 | kernel/chr_drv/atixlmouse.c | static void release_mouse(struct inode * inode, struct file * file) |
| file | 88 | kernel/chr_drv/atixlmouse.c | static int open_mouse(struct inode * inode, struct file * file) |
| file | 108 | kernel/chr_drv/atixlmouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
| file | 113 | kernel/chr_drv/atixlmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
| file | 132 | kernel/chr_drv/atixlmouse.c | static int mouse_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
| file | 60 | kernel/chr_drv/busmouse.c | static void release_mouse(struct inode * inode, struct file * file) |
| file | 68 | kernel/chr_drv/busmouse.c | static int open_mouse(struct inode * inode, struct file * file) |
| file | 88 | kernel/chr_drv/busmouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
| file | 93 | kernel/chr_drv/busmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
| file | 123 | kernel/chr_drv/busmouse.c | static int mouse_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
| file | 1482 | kernel/chr_drv/console.c | int con_open(struct tty_struct *tty, struct file * filp) |
| file | 70 | kernel/chr_drv/lp.c | static int lp_write(struct inode * inode, struct file * file, char * buf, int count) |
| file | 152 | kernel/chr_drv/lp.c | static int lp_lseek(struct inode * inode, struct file * file, |
| file | 158 | kernel/chr_drv/lp.c | static int lp_open(struct inode * inode, struct file * file) |
| file | 172 | kernel/chr_drv/lp.c | static void lp_release(struct inode * inode, struct file * file) |
| file | 180 | kernel/chr_drv/lp.c | static int lp_ioctl(struct inode *inode, struct file *file, |
| file | 22 | kernel/chr_drv/mem.c | static int read_ram(struct inode * inode, struct file * file,char * buf, int count) |
| file | 27 | kernel/chr_drv/mem.c | static int write_ram(struct inode * inode, struct file * file,char * buf, int count) |
| file | 32 | kernel/chr_drv/mem.c | static int read_core(struct inode * inode, struct file * file,char * buf, int count) |
| file | 34 | kernel/chr_drv/mem.c | unsigned long p = file->f_pos; |
| file | 73 | kernel/chr_drv/mem.c | file->f_pos += read; |
| file | 77 | kernel/chr_drv/mem.c | static int read_mem(struct inode * inode, struct file * file,char * buf, int count) |
| file | 79 | kernel/chr_drv/mem.c | unsigned long p = file->f_pos; |
| file | 98 | kernel/chr_drv/mem.c | file->f_pos += read; |
| file | 102 | kernel/chr_drv/mem.c | static int write_mem(struct inode * inode, struct file * file,char * buf, int count) |
| file | 104 | kernel/chr_drv/mem.c | unsigned long p = file->f_pos; |
| file | 123 | kernel/chr_drv/mem.c | file->f_pos += written; |
| file | 127 | kernel/chr_drv/mem.c | static int read_port(struct inode * inode,struct file * file,char * buf, int count) |
| file | 129 | kernel/chr_drv/mem.c | unsigned int i = file->f_pos; |
| file | 137 | kernel/chr_drv/mem.c | file->f_pos = i; |
| file | 141 | kernel/chr_drv/mem.c | static int write_port(struct inode * inode,struct file * file,char * buf, int count) |
| file | 143 | kernel/chr_drv/mem.c | unsigned int i = file->f_pos; |
| file | 151 | kernel/chr_drv/mem.c | file->f_pos = i; |
| file | 155 | kernel/chr_drv/mem.c | static int read_null(struct inode * node,struct file * file,char * buf,int count) |
| file | 160 | kernel/chr_drv/mem.c | static int write_null(struct inode * inode,struct file * file,char * buf, int count) |
| file | 165 | kernel/chr_drv/mem.c | static int read_zero(struct inode * node,struct file * file,char * buf,int count) |
| file | 176 | kernel/chr_drv/mem.c | static int write_zero(struct inode * inode,struct file * file,char * buf, int count) |
| file | 189 | kernel/chr_drv/mem.c | static int memory_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
| file | 193 | kernel/chr_drv/mem.c | file->f_pos = offset; |
| file | 194 | kernel/chr_drv/mem.c | return file->f_pos; |
| file | 196 | kernel/chr_drv/mem.c | file->f_pos += offset; |
| file | 197 | kernel/chr_drv/mem.c | return file->f_pos; |
| file | 201 | kernel/chr_drv/mem.c | if (file->f_pos < 0) |
| file | 203 | kernel/chr_drv/mem.c | return file->f_pos; |
| file | 293 | kernel/chr_drv/mem.c | static int memory_open(struct inode * inode, struct file * filp) |
| file | 36 | kernel/chr_drv/mouse.c | static int mouse_open(struct inode * inode, struct file * file) |
| file | 43 | kernel/chr_drv/mouse.c | file->f_op = &bus_mouse_fops; |
| file | 48 | kernel/chr_drv/mouse.c | file->f_op = &psaux_fops; |
| file | 53 | kernel/chr_drv/mouse.c | file->f_op = &ms_bus_mouse_fops; |
| file | 58 | kernel/chr_drv/mouse.c | file->f_op = &atixl_busmouse_fops; |
| file | 64 | kernel/chr_drv/mouse.c | return file->f_op->open(inode,file); |
| file | 66 | kernel/chr_drv/msbusmouse.c | static void release_mouse(struct inode * inode, struct file * file) |
| file | 74 | kernel/chr_drv/msbusmouse.c | static int open_mouse(struct inode * inode, struct file * file) |
| file | 95 | kernel/chr_drv/msbusmouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
| file | 100 | kernel/chr_drv/msbusmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
| file | 128 | kernel/chr_drv/msbusmouse.c | static int mouse_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
| file | 160 | kernel/chr_drv/psaux.c | static void release_aux(struct inode * inode, struct file * file) |
| file | 176 | kernel/chr_drv/psaux.c | static int open_aux(struct inode * inode, struct file * file) |
| file | 200 | kernel/chr_drv/psaux.c | static int write_aux(struct inode * inode, struct file * file, char * buffer, int count) |
| file | 221 | kernel/chr_drv/psaux.c | static int read_aux(struct inode * inode, struct file * file, char * buffer, int count) |
| file | 228 | kernel/chr_drv/psaux.c | if (file->f_flags & O_NONBLOCK) |
| file | 256 | kernel/chr_drv/psaux.c | static int aux_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
| file | 23 | kernel/chr_drv/pty.c | static void pty_close(struct tty_struct * tty, struct file * filp) |
| file | 68 | kernel/chr_drv/pty.c | int pty_open(struct tty_struct *tty, struct file * filp) |
| file | 643 | kernel/chr_drv/serial.c | static void rs_close(struct tty_struct *tty, struct file * filp) |
| file | 971 | kernel/chr_drv/serial.c | static int rs_ioctl(struct tty_struct *tty, struct file * file, |
| file | 1015 | kernel/chr_drv/serial.c | int rs_open(struct tty_struct *tty, struct file * filp) |
| file | 286 | kernel/chr_drv/tty_io.c | static int read_chan(struct tty_struct * tty, struct file * file, char * buf, int nr) |
| file | 309 | kernel/chr_drv/tty_io.c | if (file->f_flags & O_NONBLOCK) { |
| file | 400 | kernel/chr_drv/tty_io.c | if (file->f_flags & O_NONBLOCK) |
| file | 437 | kernel/chr_drv/tty_io.c | static int write_chan(struct tty_struct * tty, struct file * file, char * buf, int nr) |
| file | 496 | kernel/chr_drv/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
| file | 501 | kernel/chr_drv/tty_io.c | dev = file->f_rdev; |
| file | 519 | kernel/chr_drv/tty_io.c | i = read_chan(tty,file,buf,count); |
| file | 525 | kernel/chr_drv/tty_io.c | static int tty_write(struct inode * inode, struct file * file, char * buf, int count) |
| file | 530 | kernel/chr_drv/tty_io.c | dev = file->f_rdev; |
| file | 552 | kernel/chr_drv/tty_io.c | i = write_chan(tty,file,buf,count); |
| file | 558 | kernel/chr_drv/tty_io.c | static int tty_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
| file | 574 | kernel/chr_drv/tty_io.c | static int tty_open(struct inode * inode, struct file * filp) |
| file | 684 | kernel/chr_drv/tty_io.c | static void tty_release(struct inode * inode, struct file * filp) |
| file | 760 | kernel/chr_drv/tty_io.c | static int tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
| file | 836 | kernel/chr_drv/tty_io.c | struct file *filp; |
| file | 250 | kernel/chr_drv/tty_ioctl.c | int tty_ioctl(struct inode * inode, struct file * file, |
| file | 260 | kernel/chr_drv/tty_ioctl.c | if (MAJOR(file->f_rdev) != 4) { |
| file | 264 | kernel/chr_drv/tty_ioctl.c | dev = MINOR(file->f_rdev); |
| file | 403 | kernel/chr_drv/tty_ioctl.c | file->f_flags |= O_NONBLOCK; |
| file | 405 | kernel/chr_drv/tty_ioctl.c | file->f_flags &= ~O_NONBLOCK; |
| file | 408 | kernel/chr_drv/tty_ioctl.c | if (MINOR(file->f_rdev) != current->tty) |
| file | 435 | kernel/chr_drv/tty_ioctl.c | return (tty->ioctl)(tty, file, cmd, arg); |
| file | 66 | kernel/chr_drv/vt.c | int vt_ioctl(struct tty_struct *tty, struct file * file, |
| file | 110 | kernel/fork.c | struct file *f; |
| file | 10 | lib/execve.c | _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
| file | 91 | mm/mmap.c | struct file *file; |
| file | 101 | mm/mmap.c | if (fd >= NR_OPEN || fd < 0 || !(file = current->filp[fd])) |
| file | 105 | mm/mmap.c | inode = file->f_inode; |
| file | 115 | mm/mmap.c | if ((prot & PROT_WRITE) && !(file->f_mode & 2)) |
| file | 119 | mm/mmap.c | if (!(file->f_mode & 1)) |
| file | 48 | net/socket.c | static int sock_lseek(struct inode *inode, struct file *file, off_t offset, |
| file | 50 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
| file | 52 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, char *buf, |
| file | 54 | net/socket.c | static int sock_readdir(struct inode *inode, struct file *file, |
| file | 56 | net/socket.c | static void sock_close(struct inode *inode, struct file *file); |
| file | 57 | net/socket.c | static int sock_select(struct inode *inode, struct file *file, int which, select_table *seltable); |
| file | 58 | net/socket.c | static int sock_ioctl(struct inode *inode, struct file *file, |
| file | 86 | net/socket.c | struct file *file; |
| file | 91 | net/socket.c | file = get_empty_filp(); |
| file | 92 | net/socket.c | if (!file) |
| file | 98 | net/socket.c | file->f_count = 0; |
| file | 102 | net/socket.c | current->filp[fd] = file; |
| file | 103 | net/socket.c | file->f_op = &socket_file_ops; |
| file | 104 | net/socket.c | file->f_mode = 3; |
| file | 105 | net/socket.c | file->f_flags = 0; |
| file | 106 | net/socket.c | file->f_count = 1; |
| file | 107 | net/socket.c | file->f_inode = inode; |
| file | 110 | net/socket.c | file->f_pos = 0; |
| file | 138 | net/socket.c | sockfd_lookup(int fd, struct file **pfile) |
| file | 140 | net/socket.c | struct file *file; |
| file | 142 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->filp[fd])) |
| file | 145 | net/socket.c | *pfile = file; |
| file | 146 | net/socket.c | return socki_lookup(file->f_inode); |
| file | 238 | net/socket.c | sock_lseek(struct inode *inode, struct file *file, off_t offset, int whence) |
| file | 245 | net/socket.c | sock_read(struct inode *inode, struct file *file, char *ubuf, int size) |
| file | 256 | net/socket.c | return sock->ops->read(sock, ubuf, size, (file->f_flags & O_NONBLOCK)); |
| file | 260 | net/socket.c | sock_write(struct inode *inode, struct file *file, char *ubuf, int size) |
| file | 271 | net/socket.c | return sock->ops->write(sock, ubuf, size,(file->f_flags & O_NONBLOCK)); |
| file | 275 | net/socket.c | sock_readdir(struct inode *inode, struct file *file, struct dirent *dirent, |
| file | 283 | net/socket.c | sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
| file | 297 | net/socket.c | sock_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
| file | 317 | net/socket.c | sock_close(struct inode *inode, struct file *file) |
| file | 557 | net/socket.c | struct file *file; |
| file | 562 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
| file | 584 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
| file | 614 | net/socket.c | struct file *file; |
| file | 618 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
| file | 630 | net/socket.c | return (sock->ops->connect(sock, uservaddr, addrlen, file->f_flags)); |
| file | 635 | net/socket.c | i = sock->ops->connect(sock, uservaddr, addrlen, file->f_flags); |
| file | 672 | net/socket.c | struct file *file; |
| file | 677 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
| file | 683 | net/socket.c | return (sock->ops->send (sock, buff, len, (file->f_flags & O_NONBLOCK), |
| file | 693 | net/socket.c | struct file *file; |
| file | 698 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
| file | 705 | net/socket.c | (file->f_flags & O_NONBLOCK), |
| file | 715 | net/socket.c | struct file *file; |
| file | 720 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
| file | 726 | net/socket.c | return (sock->ops->recv (sock, buff, len,(file->f_flags & O_NONBLOCK), |
| file | 736 | net/socket.c | struct file *file; |
| file | 741 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
| file | 748 | net/socket.c | (file->f_flags & O_NONBLOCK), |
| file | 758 | net/socket.c | struct file *file; |
| file | 764 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
| file | 778 | net/socket.c | struct file *file; |
| file | 783 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
| file | 799 | net/socket.c | struct file *file; |
| file | 803 | net/socket.c | file = current->filp[fd]; |
| file | 804 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || file == NULL) |
| file | 815 | net/socket.c | sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |