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 | 49 | fs/devices.c | int blkdev_open(struct inode * inode, struct file * filp) |
file | 100 | fs/devices.c | int chrdev_open(struct inode * inode, struct file * filp) |
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 | 387 | fs/exec.c | struct file file; |
file | 392 | fs/exec.c | file.f_mode = 1; |
file | 393 | fs/exec.c | file.f_flags = 0; |
file | 394 | fs/exec.c | file.f_count = 1; |
file | 395 | fs/exec.c | file.f_inode = inode; |
file | 396 | fs/exec.c | file.f_pos = 0; |
file | 397 | fs/exec.c | file.f_reada = 0; |
file | 398 | fs/exec.c | file.f_op = inode->i_op->default_file_ops; |
file | 399 | fs/exec.c | if (file.f_op->open) |
file | 400 | fs/exec.c | if (file.f_op->open(inode,&file)) |
file | 402 | fs/exec.c | if (!file.f_op || !file.f_op->read) |
file | 404 | fs/exec.c | if (file.f_op->lseek) { |
file | 405 | fs/exec.c | if (file.f_op->lseek(inode,&file,offset,0) != offset) |
file | 408 | fs/exec.c | file.f_pos = offset; |
file | 409 | fs/exec.c | result = file.f_op->read(inode, &file, addr, count); |
file | 411 | fs/exec.c | if (file.f_op->release) |
file | 412 | fs/exec.c | file.f_op->release(inode,&file); |
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 | 64 | 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 | 72 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 193 | 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 | 24 | fs/ext2/dir.c | static int ext2_dir_read (struct inode * inode, struct file * filp, |
file | 31 | fs/ext2/dir.c | /* static */ int ext2_file_read (struct inode *, struct file *, char *, int); |
file | 32 | fs/ext2/dir.c | static int ext2_readdir (struct inode *, struct file *, struct dirent *, int); |
file | 93 | fs/ext2/dir.c | static int ext2_readdir (struct inode * inode, struct file * filp, |
file | 34 | fs/ext2/file.c | /* static */ int ext2_file_read (struct inode *, struct file *, char *, int); |
file | 35 | fs/ext2/file.c | static int ext2_file_write (struct inode *, struct file *, char *, int); |
file | 72 | fs/ext2/file.c | /* static */ int ext2_file_read (struct inode * inode, struct file * filp, |
file | 198 | fs/ext2/file.c | static int ext2_file_write (struct inode * inode, struct file * filp, |
file | 11 | fs/ext2/ioctl.c | int ext2_ioctl (struct inode * inode, struct file * filp, unsigned int cmd, |
file | 281 | fs/ext2/truncate.c | void ext2_release (struct inode * inode, struct file * filp) |
file | 68 | fs/fcntl.c | struct file * filp; |
file | 69 | 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 | 18 | fs/file_table.c | struct file * get_empty_filp(void) |
file | 21 | 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 | 59 | fs/ioctl.c | struct file * filp; |
file | 22 | fs/isofs/dir.c | static int isofs_readdir(struct inode *, struct file *, struct dirent *, int); |
file | 63 | 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 | 113 | 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 | 55 | fs/locks.c | struct file *filp; |
file | 94 | fs/locks.c | struct file *filp; |
file | 175 | fs/locks.c | void fcntl_remove_locks(struct task_struct *task, struct file *filp) |
file | 196 | fs/locks.c | static int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l) |
file | 267 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller) |
file | 380 | fs/locks.c | static int unlock_it(struct file *filp, struct file_lock *caller) |
file | 437 | fs/locks.c | static struct file_lock *alloc_lock(struct file *filp, struct file_lock *template) |
file | 465 | fs/locks.c | static void free_lock(struct file *filp, struct file_lock *fl) |
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 | 57 | 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 | 66 | fs/minix/file.c | static int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 187 | 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 | 57 | 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 | 80 | fs/msdos/file.c | static int msdos_file_read(struct inode *inode,struct file *filp,char *buf, |
file | 129 | fs/msdos/file.c | static int msdos_file_write(struct inode *inode,struct file *filp,char *buf, |
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 | 71 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
file | 85 | fs/nfs/dir.c | static int nfs_readdir(struct inode *inode, struct file *filp, |
file | 271 | fs/nfs/dir.c | static void nfs_lookup_cache_refresh(struct inode *file, |
file | 275 | fs/nfs/dir.c | int dev = file->i_dev; |
file | 276 | 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 | 53 | fs/nfs/file.c | static int nfs_file_read(struct inode *inode, struct file *file, char *buf, |
file | 73 | fs/nfs/file.c | pos = file->f_pos; |
file | 74 | fs/nfs/file.c | if (file->f_pos + count > inode->i_size) |
file | 98 | fs/nfs/file.c | file->f_pos = pos; |
file | 104 | fs/nfs/file.c | static int nfs_file_write(struct inode *inode, struct file *file, char *buf, |
file | 126 | fs/nfs/file.c | pos = file->f_pos; |
file | 127 | fs/nfs/file.c | if (file->f_flags & O_APPEND) |
file | 149 | fs/nfs/file.c | file->f_pos = pos; |
file | 21 | fs/nfs/inode.c | extern int close_fp(struct file *filp); |
file | 45 | fs/nfs/inode.c | close_fp(sb->u.nfs_sb.s_server.file); |
file | 65 | fs/nfs/inode.c | struct file *filp; |
file | 95 | fs/nfs/inode.c | server->file = filp; |
file | 34 | fs/nfs/sock.c | struct file *file; |
file | 43 | fs/nfs/sock.c | int (*select) (struct inode *, struct file *, int, select_table *); |
file | 54 | fs/nfs/sock.c | file = server->file; |
file | 55 | fs/nfs/sock.c | inode = file->f_inode; |
file | 56 | fs/nfs/sock.c | select = file->f_op->select; |
file | 79 | fs/nfs/sock.c | if (!select(inode, file, SEL_IN, &wait_table) |
file | 80 | 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 | 52 | fs/open.c | struct file * file; |
file | 58 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
file | 60 | fs/open.c | if (!(inode = file->f_inode)) |
file | 97 | fs/open.c | struct file * file; |
file | 99 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
file | 101 | fs/open.c | if (!(inode = file->f_inode)) |
file | 103 | fs/open.c | if (S_ISDIR(inode->i_mode) || !(file->f_mode & 2)) |
file | 237 | fs/open.c | struct file * file; |
file | 239 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
file | 241 | fs/open.c | if (!(inode = file->f_inode)) |
file | 284 | fs/open.c | struct file * file; |
file | 286 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
file | 288 | fs/open.c | if (!(inode = file->f_inode)) |
file | 356 | fs/open.c | struct file * f; |
file | 422 | fs/open.c | int close_fp(struct file *filp) |
file | 447 | fs/open.c | struct file * filp; |
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 | 126 | fs/pipe.c | static int pipe_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 152 | fs/pipe.c | static void pipe_read_release(struct inode * inode, struct file * filp) |
file | 158 | fs/pipe.c | static void pipe_write_release(struct inode * inode, struct file * filp) |
file | 164 | fs/pipe.c | static void pipe_rdwr_release(struct inode * inode, struct file * filp) |
file | 218 | fs/pipe.c | struct file * f[2]; |
file | 295 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
file | 339 | fs/proc/array.c | if (file->f_pos >= length) { |
file | 343 | fs/proc/array.c | if (count + file->f_pos > length) |
file | 344 | fs/proc/array.c | count = length - file->f_pos; |
file | 345 | fs/proc/array.c | end = count + file->f_pos; |
file | 346 | fs/proc/array.c | memcpy_tofs(buf, page + file->f_pos, count); |
file | 348 | 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 | 131 | 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 | 121 | 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 | 123 | 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 | 29 | fs/read_write.c | if (file->f_op && file->f_op->readdir) { |
file | 32 | fs/read_write.c | error = file->f_op->readdir(inode,file,dirent,count); |
file | 39 | fs/read_write.c | struct file * file; |
file | 42 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->filp[fd]) || !(file->f_inode)) |
file | 46 | fs/read_write.c | if (file->f_op && file->f_op->lseek) |
file | 47 | fs/read_write.c | return file->f_op->lseek(file->f_inode,file,offset,origin); |
file | 55 | fs/read_write.c | tmp = file->f_pos + offset; |
file | 58 | fs/read_write.c | if (!file->f_inode) |
file | 60 | fs/read_write.c | tmp = file->f_inode->i_size + offset; |
file | 65 | fs/read_write.c | file->f_pos = tmp; |
file | 66 | fs/read_write.c | file->f_reada = 0; |
file | 67 | fs/read_write.c | return file->f_pos; |
file | 73 | fs/read_write.c | struct file * file; |
file | 76 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode)) |
file | 78 | fs/read_write.c | if (!(file->f_mode & 1)) |
file | 80 | fs/read_write.c | if (!file->f_op || !file->f_op->read) |
file | 87 | fs/read_write.c | return file->f_op->read(inode,file,buf,count); |
file | 93 | fs/read_write.c | struct file * file; |
file | 96 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode)) |
file | 98 | fs/read_write.c | if (!(file->f_mode & 2)) |
file | 100 | fs/read_write.c | if (!file->f_op || !file->f_op->write) |
file | 107 | 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 | 144 | fs/stat.c | struct file * f; |
file | 159 | fs/stat.c | struct file * f; |
file | 22 | fs/xiafs/dir.c | static int xiafs_dir_read(struct inode *, struct file *, char *, int); |
file | 23 | fs/xiafs/dir.c | static int xiafs_readdir(struct inode *, struct file *, struct dirent *, int); |
file | 60 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
file | 66 | fs/xiafs/dir.c | struct file * filp, struct dirent * dirent, int count) |
file | 31 | fs/xiafs/file.c | static int xiafs_file_read(struct inode *, struct file *, char *, int); |
file | 32 | fs/xiafs/file.c | static int xiafs_file_write(struct inode *, struct file *, char *, int); |
file | 70 | fs/xiafs/file.c | xiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 186 | fs/xiafs/file.c | xiafs_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
file | 259 | include/linux/ext2_fs.h | extern int ext2_read (struct inode *, struct file *, char *, int); |
file | 260 | include/linux/ext2_fs.h | extern int ext2_write (struct inode *, struct file *, char *, int); |
file | 282 | include/linux/ext2_fs.h | extern int ext2_ioctl (struct inode *, struct file *, unsigned int, |
file | 286 | include/linux/ext2_fs.h | extern int ext2_open (struct inode *, struct file *); |
file | 287 | include/linux/ext2_fs.h | extern void ext2_release (struct inode *, struct file *); |
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 | 79 | include/linux/fs.h | #define NIL_FILP ((struct file *)0) |
file | 263 | include/linux/fs.h | int (*lseek) (struct inode *, struct file *, off_t, int); |
file | 264 | include/linux/fs.h | int (*read) (struct inode *, struct file *, char *, int); |
file | 265 | include/linux/fs.h | int (*write) (struct inode *, struct file *, char *, int); |
file | 266 | include/linux/fs.h | int (*readdir) (struct inode *, struct file *, struct dirent *, int); |
file | 267 | include/linux/fs.h | int (*select) (struct inode *, struct file *, int, select_table *); |
file | 268 | include/linux/fs.h | int (*ioctl) (struct inode *, struct file *, unsigned int, unsigned long); |
file | 269 | include/linux/fs.h | int (*mmap) (struct inode *, struct file *, unsigned long, size_t, int, unsigned long); |
file | 270 | include/linux/fs.h | int (*open) (struct inode *, struct file *); |
file | 271 | include/linux/fs.h | void (*release) (struct inode *, struct file *); |
file | 272 | include/linux/fs.h | int (*fsync) (struct inode *, struct file *); |
file | 313 | include/linux/fs.h | extern int blkdev_open(struct inode * inode, struct file * filp); |
file | 318 | include/linux/fs.h | extern int chrdev_open(struct inode * inode, struct file * filp); |
file | 329 | include/linux/fs.h | extern struct file file_table[NR_FILE]; |
file | 362 | include/linux/fs.h | extern struct file * get_empty_filp(void); |
file | 377 | include/linux/fs.h | extern int char_read(struct inode *, struct file *, char *, int); |
file | 378 | include/linux/fs.h | extern int block_read(struct inode *, struct file *, char *, int); |
file | 381 | include/linux/fs.h | extern int char_write(struct inode *, struct file *, char *, int); |
file | 382 | 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 | 203 | include/linux/sched.h | struct file * filp[NR_OPEN]; |
file | 213 | include/linux/tty.h | int (*open)(struct tty_struct * tty, struct file * filp); |
file | 214 | include/linux/tty.h | void (*close)(struct tty_struct * tty, struct file * filp); |
file | 216 | include/linux/tty.h | int (*ioctl)(struct tty_struct *tty, struct file * file, |
file | 238 | include/linux/tty.h | int (*read)(struct tty_struct * tty, struct file * file, |
file | 240 | include/linux/tty.h | int (*write)(struct tty_struct * tty, struct file * file, |
file | 242 | include/linux/tty.h | int (*ioctl)(struct tty_struct * tty, struct file * file, |
file | 344 | include/linux/tty.h | extern int tty_ioctl(struct inode *, struct file *, unsigned int, unsigned long); |
file | 352 | include/linux/tty.h | extern void tty_unhangup(struct file *filp); |
file | 353 | include/linux/tty.h | extern int tty_hung_up_p(struct file * filp); |
file | 363 | include/linux/tty.h | extern int rs_open(struct tty_struct * tty, struct file * filp); |
file | 367 | include/linux/tty.h | extern int pty_open(struct tty_struct * tty, struct file * filp); |
file | 371 | include/linux/tty.h | extern int con_open(struct tty_struct * tty, struct file * filp); |
file | 378 | include/linux/tty.h | extern int vt_ioctl(struct tty_struct *tty, struct file * file, |
file | 115 | include/linux/xd.h | static int xd_open (struct inode *inode,struct file *file); |
file | 117 | include/linux/xd.h | static int xd_ioctl (struct inode *inode,struct file *file,unsigned int cmd,unsigned long arg); |
file | 118 | include/linux/xd.h | static void xd_release (struct inode *inode,struct file *file); |
file | 49 | init/main.c | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
file | 50 | 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 | 1189 | kernel/blk_drv/floppy.c | static int floppy_open(struct inode * inode, struct file * filp) |
file | 1209 | kernel/blk_drv/floppy.c | static void floppy_release(struct inode * inode, struct file * filp) |
file | 509 | kernel/blk_drv/hd.c | static int hd_ioctl(struct inode * inode, struct file * file, |
file | 551 | kernel/blk_drv/hd.c | static int hd_open(struct inode * inode, struct file * filp) |
file | 566 | 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 long); |
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 int 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 long); |
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 int 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 | 1118 | kernel/blk_drv/scsi/st.c | i = flush_buffer(inode, file, mtc.mt_op == MTSEEK || |
file | 1124 | kernel/blk_drv/scsi/st.c | return st_int_ioctl(inode, file, mtc.mt_op, mtc.mt_count); |
file | 1145 | kernel/blk_drv/scsi/st.c | i = flush_buffer(inode, file, 0); |
file | 150 | kernel/blk_drv/xd.c | static int xd_open (struct inode *inode,struct file *file) |
file | 193 | kernel/blk_drv/xd.c | static int xd_ioctl (struct inode *inode,struct file *file,u_int cmd,u_long arg) |
file | 226 | kernel/blk_drv/xd.c | static void xd_release (struct inode *inode, struct file *file) |
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 | 61 | kernel/chr_drv/busmouse.c | static void release_mouse(struct inode * inode, struct file * file) |
file | 69 | kernel/chr_drv/busmouse.c | static int open_mouse(struct inode * inode, struct file * file) |
file | 89 | kernel/chr_drv/busmouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
file | 94 | 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 | 1497 | kernel/chr_drv/console.c | int con_open(struct tty_struct *tty, struct file * filp) |
file | 122 | kernel/chr_drv/lp.c | static int lp_write_interrupt(struct inode * inode, struct file * file, char * buf, int count) |
file | 189 | kernel/chr_drv/lp.c | static int lp_write_polled(struct inode * inode, struct file * file, |
file | 263 | kernel/chr_drv/lp.c | static int lp_write(struct inode * inode, struct file * file, char * buf, int count) |
file | 266 | kernel/chr_drv/lp.c | return lp_write_interrupt(inode, file, buf, count); |
file | 268 | kernel/chr_drv/lp.c | return lp_write_polled(inode, file, buf, count); |
file | 271 | kernel/chr_drv/lp.c | static int lp_lseek(struct inode * inode, struct file * file, |
file | 277 | kernel/chr_drv/lp.c | static int lp_open(struct inode * inode, struct file * file) |
file | 314 | kernel/chr_drv/lp.c | static void lp_release(struct inode * inode, struct file * file) |
file | 329 | 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 mmap_mem(struct inode * inode, struct file * file, |
file | 139 | kernel/chr_drv/mem.c | static int read_port(struct inode * inode,struct file * file,char * buf, int count) |
file | 141 | kernel/chr_drv/mem.c | unsigned int i = file->f_pos; |
file | 149 | kernel/chr_drv/mem.c | file->f_pos = i; |
file | 153 | kernel/chr_drv/mem.c | static int write_port(struct inode * inode,struct file * file,char * buf, int count) |
file | 155 | kernel/chr_drv/mem.c | unsigned int i = file->f_pos; |
file | 163 | kernel/chr_drv/mem.c | file->f_pos = i; |
file | 167 | kernel/chr_drv/mem.c | static int read_null(struct inode * node,struct file * file,char * buf,int count) |
file | 172 | kernel/chr_drv/mem.c | static int write_null(struct inode * inode,struct file * file,char * buf, int count) |
file | 177 | kernel/chr_drv/mem.c | static int read_zero(struct inode * node,struct file * file,char * buf,int count) |
file | 188 | kernel/chr_drv/mem.c | static int write_zero(struct inode * inode,struct file * file,char * buf, int count) |
file | 193 | kernel/chr_drv/mem.c | static int mmap_zero(struct inode * inode, struct file * file, |
file | 211 | kernel/chr_drv/mem.c | static int memory_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 215 | kernel/chr_drv/mem.c | file->f_pos = offset; |
file | 216 | kernel/chr_drv/mem.c | return file->f_pos; |
file | 218 | kernel/chr_drv/mem.c | file->f_pos += offset; |
file | 219 | kernel/chr_drv/mem.c | return file->f_pos; |
file | 223 | kernel/chr_drv/mem.c | if (file->f_pos < 0) |
file | 225 | kernel/chr_drv/mem.c | return file->f_pos; |
file | 316 | kernel/chr_drv/mem.c | static int memory_open(struct inode * inode, struct file * filp) |
file | 37 | kernel/chr_drv/mouse.c | static int mouse_open(struct inode * inode, struct file * file) |
file | 44 | kernel/chr_drv/mouse.c | file->f_op = &bus_mouse_fops; |
file | 49 | kernel/chr_drv/mouse.c | file->f_op = &psaux_fops; |
file | 54 | kernel/chr_drv/mouse.c | file->f_op = &ms_bus_mouse_fops; |
file | 59 | kernel/chr_drv/mouse.c | file->f_op = &atixl_busmouse_fops; |
file | 65 | 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 | 24 | kernel/chr_drv/pty.c | static void pty_close(struct tty_struct * tty, struct file * filp) |
file | 74 | kernel/chr_drv/pty.c | int pty_open(struct tty_struct *tty, struct file * filp) |
file | 972 | kernel/chr_drv/serial.c | static int rs_ioctl(struct tty_struct *tty, struct file * file, |
file | 1070 | kernel/chr_drv/serial.c | static void rs_close(struct tty_struct *tty, struct file * filp) |
file | 1123 | kernel/chr_drv/serial.c | static int block_til_ready(struct tty_struct *tty, struct file * filp, |
file | 1211 | kernel/chr_drv/serial.c | int rs_open(struct tty_struct *tty, struct file * filp) |
file | 72 | kernel/chr_drv/tty_io.c | static int tty_read(struct inode *, struct file *, char *, int); |
file | 73 | kernel/chr_drv/tty_io.c | static int tty_write(struct inode *, struct file *, char *, int); |
file | 74 | kernel/chr_drv/tty_io.c | static int tty_select(struct inode *, struct file *, int, select_table *); |
file | 75 | kernel/chr_drv/tty_io.c | static int tty_open(struct inode *, struct file *); |
file | 76 | kernel/chr_drv/tty_io.c | static void tty_release(struct inode *, struct file *); |
file | 169 | kernel/chr_drv/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
file | 174 | kernel/chr_drv/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, char * buf, int count) |
file | 179 | 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 | 184 | kernel/chr_drv/tty_io.c | static int hung_up_tty_ioctl(struct inode * inode, struct file * file, |
file | 190 | kernel/chr_drv/tty_io.c | static int tty_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 233 | kernel/chr_drv/tty_io.c | struct file * filp; |
file | 275 | kernel/chr_drv/tty_io.c | void tty_unhangup(struct file *filp) |
file | 280 | kernel/chr_drv/tty_io.c | inline int tty_hung_up_p(struct file * filp) |
file | 691 | kernel/chr_drv/tty_io.c | static void __wait_for_canon_input(struct file * file, struct tty_struct *); |
file | 693 | kernel/chr_drv/tty_io.c | static void wait_for_canon_input(struct file * file, struct tty_struct * tty) |
file | 698 | kernel/chr_drv/tty_io.c | __wait_for_canon_input(file, tty); |
file | 702 | kernel/chr_drv/tty_io.c | static int read_chan(struct tty_struct * tty, struct file * file, char * buf, int nr) |
file | 725 | kernel/chr_drv/tty_io.c | if (file->f_flags & O_NONBLOCK) { |
file | 732 | kernel/chr_drv/tty_io.c | wait_for_canon_input(file, tty); |
file | 757 | kernel/chr_drv/tty_io.c | if (tty_hung_up_p(file)) { |
file | 758 | kernel/chr_drv/tty_io.c | file->f_flags &= ~O_NONBLOCK; |
file | 820 | kernel/chr_drv/tty_io.c | if (file->f_flags & O_NONBLOCK) |
file | 825 | kernel/chr_drv/tty_io.c | static void __wait_for_canon_input(struct file * file, struct tty_struct * tty) |
file | 836 | kernel/chr_drv/tty_io.c | if (tty_hung_up_p(file)) |
file | 859 | kernel/chr_drv/tty_io.c | static int write_chan(struct tty_struct * tty, struct file * file, char * buf, int nr) |
file | 872 | kernel/chr_drv/tty_io.c | if (tty_hung_up_p(file)) |
file | 920 | kernel/chr_drv/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
file | 925 | kernel/chr_drv/tty_io.c | dev = file->f_rdev; |
file | 945 | kernel/chr_drv/tty_io.c | i = (ldiscs[tty->disc].read)(tty,file,buf,count); |
file | 953 | kernel/chr_drv/tty_io.c | static int tty_write(struct inode * inode, struct file * file, char * buf, int count) |
file | 958 | kernel/chr_drv/tty_io.c | dev = file->f_rdev; |
file | 981 | kernel/chr_drv/tty_io.c | i = (ldiscs[tty->disc].write)(tty,file,buf,count); |
file | 1083 | kernel/chr_drv/tty_io.c | static void release_dev(int dev, struct file * filp) |
file | 1181 | kernel/chr_drv/tty_io.c | static int tty_open(struct inode * inode, struct file * filp) |
file | 1252 | kernel/chr_drv/tty_io.c | static void tty_release(struct inode * inode, struct file * filp) |
file | 1269 | kernel/chr_drv/tty_io.c | static int tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 1333 | kernel/chr_drv/tty_io.c | struct file *filp; |
file | 303 | kernel/chr_drv/tty_ioctl.c | int tty_ioctl(struct inode * inode, struct file * file, |
file | 314 | kernel/chr_drv/tty_ioctl.c | if (MAJOR(file->f_rdev) != 4) { |
file | 318 | kernel/chr_drv/tty_ioctl.c | dev = MINOR(file->f_rdev); |
file | 475 | kernel/chr_drv/tty_ioctl.c | file->f_flags |= O_NONBLOCK; |
file | 477 | kernel/chr_drv/tty_ioctl.c | file->f_flags &= ~O_NONBLOCK; |
file | 480 | kernel/chr_drv/tty_ioctl.c | if (MINOR(file->f_rdev) != current->tty) |
file | 516 | kernel/chr_drv/tty_ioctl.c | retval = (tty->ioctl)(tty, file, cmd, arg); |
file | 522 | kernel/chr_drv/tty_ioctl.c | (tty, file, cmd, arg); |
file | 104 | kernel/chr_drv/vt.c | int vt_ioctl(struct tty_struct *tty, struct file * file, |
file | 75 | kernel/fork.c | struct file *f; |
file | 10 | lib/execve.c | _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
file | 42 | mm/mmap.c | struct file *file; |
file | 51 | mm/mmap.c | if (fd >= NR_OPEN || fd < 0 || !(file = current->filp[fd])) |
file | 64 | mm/mmap.c | if ((prot & PROT_WRITE) && !(file->f_mode & 2)) |
file | 68 | mm/mmap.c | if (!(file->f_mode & 1)) |
file | 119 | mm/mmap.c | if (!file->f_op || !file->f_op->mmap) |
file | 132 | mm/mmap.c | error = file->f_op->mmap(file->f_inode, file, base + addr, len, mask, off); |
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 | 83 | net/socket.c | struct file *file; |
file | 88 | net/socket.c | file = get_empty_filp(); |
file | 89 | net/socket.c | if (!file) |
file | 95 | net/socket.c | file->f_count = 0; |
file | 99 | net/socket.c | current->filp[fd] = file; |
file | 100 | net/socket.c | file->f_op = &socket_file_ops; |
file | 101 | net/socket.c | file->f_mode = 3; |
file | 102 | net/socket.c | file->f_flags = 0; |
file | 103 | net/socket.c | file->f_count = 1; |
file | 104 | net/socket.c | file->f_inode = inode; |
file | 107 | net/socket.c | file->f_pos = 0; |
file | 135 | net/socket.c | sockfd_lookup(int fd, struct file **pfile) |
file | 137 | net/socket.c | struct file *file; |
file | 139 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->filp[fd])) |
file | 142 | net/socket.c | *pfile = file; |
file | 143 | 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 | 568 | net/socket.c | struct file *file; |
file | 573 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
file | 595 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
file | 625 | net/socket.c | struct file *file; |
file | 629 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
file | 641 | net/socket.c | return (sock->ops->connect(sock, uservaddr, addrlen, file->f_flags)); |
file | 646 | net/socket.c | i = sock->ops->connect(sock, uservaddr, addrlen, file->f_flags); |
file | 683 | net/socket.c | struct file *file; |
file | 688 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
file | 694 | net/socket.c | return (sock->ops->send (sock, buff, len, (file->f_flags & O_NONBLOCK), |
file | 704 | net/socket.c | struct file *file; |
file | 709 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
file | 716 | net/socket.c | (file->f_flags & O_NONBLOCK), |
file | 726 | net/socket.c | struct file *file; |
file | 731 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
file | 737 | net/socket.c | return (sock->ops->recv (sock, buff, len,(file->f_flags & O_NONBLOCK), |
file | 747 | net/socket.c | struct file *file; |
file | 752 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
file | 759 | net/socket.c | (file->f_flags & O_NONBLOCK), |
file | 769 | net/socket.c | struct file *file; |
file | 775 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
file | 789 | net/socket.c | struct file *file; |
file | 794 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
file | 811 | net/socket.c | struct file *file; |
file | 815 | net/socket.c | file = current->filp[fd]; |
file | 816 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || file == NULL) |
file | 827 | net/socket.c | sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |