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 | 167 | fs/exec.c | if (file.f_op->release) |
file | 168 | fs/exec.c | file.f_op->release(inode,&file); |
file | 383 | fs/exec.c | struct file file; |
file | 388 | fs/exec.c | file.f_mode = 1; |
file | 389 | fs/exec.c | file.f_flags = 0; |
file | 390 | fs/exec.c | file.f_count = 1; |
file | 391 | fs/exec.c | file.f_inode = inode; |
file | 392 | fs/exec.c | file.f_pos = 0; |
file | 393 | fs/exec.c | file.f_reada = 0; |
file | 394 | fs/exec.c | file.f_op = inode->i_op->default_file_ops; |
file | 395 | fs/exec.c | if (file.f_op->open) |
file | 396 | fs/exec.c | if (file.f_op->open(inode,&file)) |
file | 398 | fs/exec.c | if (!file.f_op || !file.f_op->read) |
file | 400 | fs/exec.c | if (file.f_op->lseek) { |
file | 401 | fs/exec.c | if (file.f_op->lseek(inode,&file,offset,0) != offset) |
file | 404 | fs/exec.c | file.f_pos = offset; |
file | 405 | fs/exec.c | result = file.f_op->read(inode, &file, addr, count); |
file | 407 | fs/exec.c | if (file.f_op->release) |
file | 408 | 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 | 63 | 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 | 71 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 192 | 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 | 62 | 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 | 112 | 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 | 165 | fs/locks.c | void fcntl_remove_locks(struct task_struct *task, struct file *filp) |
file | 186 | fs/locks.c | static int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l) |
file | 256 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller) |
file | 369 | fs/locks.c | static int unlock_it(struct file *filp, struct file_lock *caller) |
file | 426 | fs/locks.c | static struct file_lock *alloc_lock(struct file *filp, struct file_lock *template) |
file | 454 | 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 | 56 | 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 | 65 | fs/minix/file.c | static int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 186 | 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 | 55 | 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 | 79 | fs/msdos/file.c | static int msdos_file_read(struct inode *inode,struct file *filp,char *buf, |
file | 128 | 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 | 70 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
file | 84 | fs/nfs/dir.c | static int nfs_readdir(struct inode *inode, struct file *filp, |
file | 270 | fs/nfs/dir.c | static void nfs_lookup_cache_refresh(struct inode *file, |
file | 274 | fs/nfs/dir.c | int dev = file->i_dev; |
file | 275 | fs/nfs/dir.c | int 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 | 53 | fs/nfs/sock.c | file = server->file; |
file | 54 | fs/nfs/sock.c | inode = file->f_inode; |
file | 55 | fs/nfs/sock.c | select = file->f_op->select; |
file | 78 | fs/nfs/sock.c | if (!select(inode, file, SEL_IN, &wait_table) |
file | 79 | 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 | 282 | fs/open.c | struct file * file; |
file | 284 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
file | 286 | fs/open.c | if (!(inode = file->f_inode)) |
file | 354 | fs/open.c | struct file * f; |
file | 418 | fs/open.c | int close_fp(struct file *filp) |
file | 443 | fs/open.c | struct file * filp; |
file | 490 | 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 | 50 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, char * buf, int count) |
file | 95 | fs/pipe.c | static int pipe_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 100 | fs/pipe.c | static int pipe_readdir(struct inode * inode, struct file * file, struct dirent * de, int count) |
file | 105 | fs/pipe.c | static int bad_pipe_rw(struct inode * inode, struct file * filp, char * buf, int count) |
file | 110 | fs/pipe.c | static int pipe_ioctl(struct inode *pino, struct file * filp, |
file | 123 | fs/pipe.c | static int pipe_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 149 | fs/pipe.c | static void pipe_read_release(struct inode * inode, struct file * filp) |
file | 155 | fs/pipe.c | static void pipe_write_release(struct inode * inode, struct file * filp) |
file | 161 | fs/pipe.c | static void pipe_rdwr_release(struct inode * inode, struct file * filp) |
file | 212 | fs/pipe.c | struct file * f[2]; |
file | 282 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
file | 326 | fs/proc/array.c | if (file->f_pos >= length) { |
file | 330 | fs/proc/array.c | if (count + file->f_pos > length) |
file | 331 | fs/proc/array.c | count = length - file->f_pos; |
file | 332 | fs/proc/array.c | end = count + file->f_pos; |
file | 333 | fs/proc/array.c | memcpy_tofs(buf, page + file->f_pos, count); |
file | 335 | 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 | 130 | 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 | 120 | fs/proc/fd.c | static int proc_readfd(struct inode * inode, struct file * filp, |
file | 22 | fs/proc/kmsg.c | static int kmsg_open(struct inode * inode, struct file * file) |
file | 27 | fs/proc/kmsg.c | static void kmsg_release(struct inode * inode, struct file * file) |
file | 32 | fs/proc/kmsg.c | static int kmsg_read(struct inode * inode, struct file * file,char * buf, int count) |
file | 37 | fs/proc/kmsg.c | static int kmsg_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 23 | fs/proc/mem.c | static int mem_read(struct inode * inode, struct file * file,char * buf, int count) |
file | 42 | fs/proc/mem.c | addr = file->f_pos; |
file | 66 | fs/proc/mem.c | file->f_pos = addr; |
file | 72 | fs/proc/mem.c | static int mem_write(struct inode * inode, struct file * file,char * buf, int count) |
file | 81 | fs/proc/mem.c | addr = file->f_pos; |
file | 119 | fs/proc/mem.c | file->f_pos = addr; |
file | 129 | fs/proc/mem.c | static int mem_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 133 | fs/proc/mem.c | file->f_pos = offset; |
file | 134 | fs/proc/mem.c | return file->f_pos; |
file | 136 | fs/proc/mem.c | file->f_pos += offset; |
file | 137 | 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 | 122 | 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 | 63 | fs/select.c | static int check(int flag, select_table * wait, struct file * file) |
file | 67 | fs/select.c | int (*select) (struct inode *, struct file *, int, select_table *); |
file | 69 | fs/select.c | inode = file->f_inode; |
file | 70 | fs/select.c | if ((fops = file->f_op) && (select = fops->select)) |
file | 71 | fs/select.c | return select(inode, file, flag, wait) |
file | 72 | 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 | 247 | include/linux/fs.h | int (*lseek) (struct inode *, struct file *, off_t, int); |
file | 248 | include/linux/fs.h | int (*read) (struct inode *, struct file *, char *, int); |
file | 249 | include/linux/fs.h | int (*write) (struct inode *, struct file *, char *, int); |
file | 250 | include/linux/fs.h | int (*readdir) (struct inode *, struct file *, struct dirent *, int); |
file | 251 | include/linux/fs.h | int (*select) (struct inode *, struct file *, int, select_table *); |
file | 252 | include/linux/fs.h | int (*ioctl) (struct inode *, struct file *, unsigned int, unsigned int); |
file | 254 | include/linux/fs.h | int (*open) (struct inode *, struct file *); |
file | 255 | include/linux/fs.h | void (*release) (struct inode *, struct file *); |
file | 300 | include/linux/fs.h | extern struct file file_table[NR_FILE]; |
file | 333 | include/linux/fs.h | extern struct file * get_empty_filp(void); |
file | 348 | include/linux/fs.h | extern int char_read(struct inode *, struct file *, char *, int); |
file | 349 | include/linux/fs.h | extern int block_read(struct inode *, struct file *, char *, int); |
file | 352 | include/linux/fs.h | extern int char_write(struct inode *, struct file *, char *, int); |
file | 353 | 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 | 202 | include/linux/sched.h | struct file * filp[NR_OPEN]; |
file | 194 | include/linux/tty.h | int (*open)(struct tty_struct * tty, struct file * filp); |
file | 195 | include/linux/tty.h | void (*close)(struct tty_struct * tty, struct file * filp); |
file | 197 | include/linux/tty.h | int (*ioctl)(struct tty_struct *tty, struct file * file, |
file | 286 | include/linux/tty.h | extern int tty_ioctl(struct inode *, struct file *, unsigned int, unsigned int); |
file | 302 | include/linux/tty.h | extern int rs_open(struct tty_struct * tty, struct file * filp); |
file | 307 | include/linux/tty.h | extern int pty_open(struct tty_struct * tty, struct file * filp); |
file | 311 | include/linux/tty.h | extern int con_open(struct tty_struct * tty, struct file * filp); |
file | 318 | 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 | 85 | kernel/blk_drv/scsi/st.c | static int st_int_ioctl(struct inode * inode,struct file * file, |
file | 254 | kernel/blk_drv/scsi/st.c | static int flush_buffer(struct inode * inode, struct file * filp, |
file | 285 | kernel/blk_drv/scsi/st.c | static int scsi_tape_open(struct inode * inode, struct file * filp) |
file | 480 | kernel/blk_drv/scsi/st.c | static void scsi_tape_close(struct inode * inode, struct file * filp) |
file | 546 | kernel/blk_drv/scsi/st.c | int st_write(struct inode * inode, struct file * filp, char * buf, int count) |
file | 685 | kernel/blk_drv/scsi/st.c | int st_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 847 | kernel/blk_drv/scsi/st.c | static int st_int_ioctl(struct inode * inode,struct file * file, |
file | 1060 | kernel/blk_drv/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTFSF, 1); |
file | 1062 | kernel/blk_drv/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTBSF, 1); |
file | 1088 | kernel/blk_drv/scsi/st.c | static int st_ioctl(struct inode * inode,struct file * file, |
file | 1116 | kernel/blk_drv/scsi/st.c | i = flush_buffer(inode, file, mtc.mt_op == MTSEEK || |
file | 1122 | kernel/blk_drv/scsi/st.c | return st_int_ioctl(inode, file, mtc.mt_op, mtc.mt_count); |
file | 1141 | 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 | 1495 | kernel/chr_drv/console.c | int con_open(struct tty_struct *tty, struct file * filp) |
file | 75 | kernel/chr_drv/lp.c | static int lp_write(struct inode * inode, struct file * file, char * buf, int count) |
file | 157 | kernel/chr_drv/lp.c | static int lp_lseek(struct inode * inode, struct file * file, |
file | 163 | kernel/chr_drv/lp.c | static int lp_open(struct inode * inode, struct file * file) |
file | 177 | kernel/chr_drv/lp.c | static void lp_release(struct inode * inode, struct file * file) |
file | 185 | 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 | 177 | kernel/chr_drv/psaux.c | static int open_aux(struct inode * inode, struct file * file) |
file | 201 | kernel/chr_drv/psaux.c | static int write_aux(struct inode * inode, struct file * file, char * buffer, int count) |
file | 222 | kernel/chr_drv/psaux.c | static int read_aux(struct inode * inode, struct file * file, char * buffer, int count) |
file | 229 | kernel/chr_drv/psaux.c | if (file->f_flags & O_NONBLOCK) |
file | 257 | 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 | 66 | kernel/chr_drv/pty.c | int pty_open(struct tty_struct *tty, struct file * filp) |
file | 594 | kernel/chr_drv/serial.c | static void rs_close(struct tty_struct *tty, struct file * filp) |
file | 923 | kernel/chr_drv/serial.c | static int rs_ioctl(struct tty_struct *tty, struct file * file, |
file | 967 | kernel/chr_drv/serial.c | int rs_open(struct tty_struct *tty, struct file * filp) |
file | 60 | kernel/chr_drv/tty_io.c | static int tty_read(struct inode *, struct file *, char *, int); |
file | 61 | kernel/chr_drv/tty_io.c | static int tty_write(struct inode *, struct file *, char *, int); |
file | 62 | kernel/chr_drv/tty_io.c | static int tty_select(struct inode *, struct file *, int, select_table *); |
file | 63 | kernel/chr_drv/tty_io.c | static int tty_open(struct inode *, struct file *); |
file | 64 | kernel/chr_drv/tty_io.c | static void tty_release(struct inode *, struct file *); |
file | 116 | kernel/chr_drv/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
file | 121 | kernel/chr_drv/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, char * buf, int count) |
file | 126 | kernel/chr_drv/tty_io.c | static int hung_up_tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 131 | kernel/chr_drv/tty_io.c | static int tty_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 162 | kernel/chr_drv/tty_io.c | struct file * filp; |
file | 185 | kernel/chr_drv/tty_io.c | static inline int hung_up(struct file * filp) |
file | 523 | kernel/chr_drv/tty_io.c | static void __wait_for_canon_input(struct file * file, struct tty_struct *); |
file | 525 | kernel/chr_drv/tty_io.c | static void wait_for_canon_input(struct file * file, struct tty_struct * tty) |
file | 530 | kernel/chr_drv/tty_io.c | __wait_for_canon_input(file, tty); |
file | 534 | kernel/chr_drv/tty_io.c | static int read_chan(struct tty_struct * tty, struct file * file, char * buf, int nr) |
file | 557 | kernel/chr_drv/tty_io.c | if (file->f_flags & O_NONBLOCK) { |
file | 564 | kernel/chr_drv/tty_io.c | wait_for_canon_input(file, tty); |
file | 625 | kernel/chr_drv/tty_io.c | if (hung_up(file)) |
file | 650 | kernel/chr_drv/tty_io.c | if (file->f_flags & O_NONBLOCK) |
file | 655 | kernel/chr_drv/tty_io.c | static void __wait_for_canon_input(struct file * file, struct tty_struct * tty) |
file | 666 | kernel/chr_drv/tty_io.c | if (hung_up(file)) |
file | 689 | kernel/chr_drv/tty_io.c | static int write_chan(struct tty_struct * tty, struct file * file, char * buf, int nr) |
file | 702 | kernel/chr_drv/tty_io.c | if (hung_up(file)) |
file | 750 | kernel/chr_drv/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
file | 755 | kernel/chr_drv/tty_io.c | dev = file->f_rdev; |
file | 773 | kernel/chr_drv/tty_io.c | i = read_chan(tty,file,buf,count); |
file | 779 | kernel/chr_drv/tty_io.c | static int tty_write(struct inode * inode, struct file * file, char * buf, int count) |
file | 784 | kernel/chr_drv/tty_io.c | dev = file->f_rdev; |
file | 806 | kernel/chr_drv/tty_io.c | i = write_chan(tty,file,buf,count); |
file | 906 | kernel/chr_drv/tty_io.c | static void release_dev(int dev, struct file * filp) |
file | 988 | kernel/chr_drv/tty_io.c | static int tty_open(struct inode * inode, struct file * filp) |
file | 1037 | kernel/chr_drv/tty_io.c | static void tty_release(struct inode * inode, struct file * filp) |
file | 1054 | kernel/chr_drv/tty_io.c | static int tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 1118 | kernel/chr_drv/tty_io.c | struct file *filp; |
file | 256 | kernel/chr_drv/tty_ioctl.c | int tty_ioctl(struct inode * inode, struct file * file, |
file | 266 | kernel/chr_drv/tty_ioctl.c | if (MAJOR(file->f_rdev) != 4) { |
file | 270 | kernel/chr_drv/tty_ioctl.c | dev = MINOR(file->f_rdev); |
file | 422 | kernel/chr_drv/tty_ioctl.c | file->f_flags |= O_NONBLOCK; |
file | 424 | kernel/chr_drv/tty_ioctl.c | file->f_flags &= ~O_NONBLOCK; |
file | 427 | kernel/chr_drv/tty_ioctl.c | if (MINOR(file->f_rdev) != current->tty) |
file | 454 | kernel/chr_drv/tty_ioctl.c | return (tty->ioctl)(tty, file, cmd, arg); |
file | 104 | kernel/chr_drv/vt.c | int vt_ioctl(struct tty_struct *tty, struct file * file, |
file | 84 | 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 | 800 | net/socket.c | struct file *file; |
file | 804 | net/socket.c | file = current->filp[fd]; |
file | 805 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || file == NULL) |
file | 816 | net/socket.c | sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |