tag | line | file | source code |
file | 15 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, char * buf, int count) |
file | 59 | 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 | 89 | fs/exec.c | file.f_mode = 3; |
file | 90 | fs/exec.c | file.f_flags = 0; |
file | 91 | fs/exec.c | file.f_count = 1; |
file | 92 | fs/exec.c | file.f_inode = inode; |
file | 93 | fs/exec.c | file.f_pos = 0; |
file | 94 | fs/exec.c | file.f_reada = 0; |
file | 95 | fs/exec.c | file.f_op = inode->i_op->default_file_ops; |
file | 96 | fs/exec.c | if (file.f_op->open) |
file | 97 | fs/exec.c | if (file.f_op->open(inode,&file)) |
file | 99 | fs/exec.c | if (!file.f_op->write) |
file | 152 | fs/exec.c | if (file.f_op->release) |
file | 153 | 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 | 22 | fs/ext/dir.c | static int ext_readdir(struct inode *, struct file *, struct dirent *, int); |
file | 55 | fs/ext/dir.c | static int ext_readdir(struct inode * inode, struct file * filp, |
file | 33 | fs/ext/file.c | static int ext_file_read(struct inode *, struct file *, char *, int); |
file | 34 | fs/ext/file.c | static int ext_file_write(struct inode *, struct file *, char *, int); |
file | 76 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 160 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
file | 190 | fs/ext/truncate.c | void ext_release(struct inode * inode, struct file * filp) |
file | 53 | fs/fcntl.c | struct file * filp; |
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 | struct file * filp; |
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_readdir(struct inode *, struct file *, struct dirent *, int); |
file | 49 | fs/minix/dir.c | static int minix_readdir(struct inode * inode, struct file * filp, |
file | 27 | fs/minix/file.c | int minix_file_read(struct inode *, struct file *, char *, int); |
file | 28 | fs/minix/file.c | static int minix_file_write(struct inode *, struct file *, char *, int); |
file | 76 | fs/minix/file.c | int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 160 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
file | 147 | fs/minix/truncate.c | void minix_release(struct inode * inode, struct file * filp) |
file | 17 | fs/msdos/dir.c | static int msdos_dummy_read(struct inode *inode,struct file *filp,char *buf, |
file | 19 | fs/msdos/dir.c | static int msdos_readdir(struct inode *inode,struct file *filp, |
file | 54 | fs/msdos/dir.c | static int msdos_dummy_read(struct inode *inode,struct file *filp,char *buf, |
file | 67 | 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 | 76 | fs/msdos/file.c | static int msdos_file_read(struct inode *inode,struct file *filp,char *buf, |
file | 125 | fs/msdos/file.c | static int msdos_file_write(struct inode *inode,struct file *filp,char *buf, |
file | 52 | fs/open.c | struct file * file; |
file | 55 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
file | 57 | fs/open.c | if (!(inode = file->f_inode)) |
file | 91 | fs/open.c | struct file * file; |
file | 93 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
file | 95 | fs/open.c | if (!(inode = file->f_inode)) |
file | 97 | fs/open.c | if (S_ISDIR(inode->i_mode) || !(file->f_mode & 2)) |
file | 217 | fs/open.c | struct file * file; |
file | 219 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
file | 221 | fs/open.c | if (!(inode = file->f_inode)) |
file | 255 | fs/open.c | struct file * file; |
file | 257 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
file | 259 | fs/open.c | if (!(inode = file->f_inode)) |
file | 300 | fs/open.c | struct file * f; |
file | 343 | 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 | 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 | 205 | fs/pipe.c | struct file * f[2]; |
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 | 80 | fs/read_write.c | if (file->f_op && file->f_op->read) |
file | 81 | 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 | 96 | fs/read_write.c | if (file->f_op && file->f_op->write) |
file | 97 | fs/read_write.c | return file->f_op->write(inode,file,buf,count); |
file | 50 | fs/select.c | static int check_in(select_table * wait, struct inode * inode, struct file * file) |
file | 52 | fs/select.c | if (file->f_op && file->f_op->select) |
file | 53 | fs/select.c | return file->f_op->select(inode,file,SEL_IN,wait); |
file | 57 | fs/select.c | static int check_out(select_table * wait, struct inode * inode, struct file * file) |
file | 59 | fs/select.c | if (file->f_op && file->f_op->select) |
file | 60 | fs/select.c | return file->f_op->select(inode,file,SEL_OUT,wait); |
file | 64 | fs/select.c | static int check_ex(select_table * wait, struct inode * inode, struct file * file) |
file | 66 | fs/select.c | if (file->f_op && file->f_op->select) |
file | 67 | fs/select.c | return file->f_op->select(inode,file,SEL_EX,wait); |
file | 76 | fs/select.c | struct file * file; |
file | 105 | fs/select.c | file = current->filp[i]; |
file | 107 | fs/select.c | if (check_in(&wait_table,file->f_inode,file)) { |
file | 112 | fs/select.c | if (check_out(&wait_table,file->f_inode,file)) { |
file | 117 | fs/select.c | if (check_ex(&wait_table,file->f_inode,file)) { |
file | 128 | fs/stat.c | struct file * f; |
file | 139 | fs/stat.c | struct file * f; |
file | 80 | include/linux/ext_fs.h | extern int ext_open(struct inode * inode, struct file * filp); |
file | 81 | include/linux/ext_fs.h | extern void ext_release(struct inode * inode, struct file * filp); |
file | 114 | include/linux/ext_fs.h | extern int ext_lseek(struct inode *, struct file *, off_t, int); |
file | 115 | include/linux/ext_fs.h | extern int ext_read(struct inode *, struct file *, char *, int); |
file | 116 | include/linux/ext_fs.h | extern int ext_write(struct inode *, struct file *, char *, int); |
file | 60 | include/linux/fs.h | #define NIL_FILP ((struct file *)0) |
file | 177 | include/linux/fs.h | int (*lseek) (struct inode *, struct file *, off_t, int); |
file | 178 | include/linux/fs.h | int (*read) (struct inode *, struct file *, char *, int); |
file | 179 | include/linux/fs.h | int (*write) (struct inode *, struct file *, char *, int); |
file | 180 | include/linux/fs.h | int (*readdir) (struct inode *, struct file *, struct dirent *, int count); |
file | 181 | include/linux/fs.h | int (*select) (struct inode *, struct file *, int, select_table *); |
file | 182 | include/linux/fs.h | int (*ioctl) (struct inode *, struct file *, unsigned int, unsigned int); |
file | 183 | include/linux/fs.h | int (*open) (struct inode *, struct file *); |
file | 184 | include/linux/fs.h | void (*release) (struct inode *, struct file *); |
file | 224 | include/linux/fs.h | extern struct file file_table[NR_FILE]; |
file | 254 | include/linux/fs.h | extern struct file * get_empty_filp(void); |
file | 273 | include/linux/fs.h | extern int char_read(struct inode *, struct file *, char *, int); |
file | 274 | include/linux/fs.h | extern int block_read(struct inode *, struct file *, char *, int); |
file | 276 | include/linux/fs.h | extern int char_write(struct inode *, struct file *, char *, int); |
file | 277 | include/linux/fs.h | extern int block_write(struct inode *, struct file *, char *, int); |
file | 47 | include/linux/minix_fs.h | extern int minix_open(struct inode * inode, struct file * filp); |
file | 48 | include/linux/minix_fs.h | extern void minix_release(struct inode * inode, struct file * filp); |
file | 80 | include/linux/minix_fs.h | extern int minix_lseek(struct inode *, struct file *, off_t, int); |
file | 81 | include/linux/minix_fs.h | extern int minix_read(struct inode *, struct file *, char *, int); |
file | 82 | include/linux/minix_fs.h | extern int minix_write(struct inode *, struct file *, char *, int); |
file | 83 | include/linux/minix_fs.h | extern int minix_file_read(struct inode *, struct file *, char *, int); |
file | 162 | include/linux/sched.h | struct file * filp[NR_OPEN]; |
file | 229 | include/linux/tty.h | extern int tty_ioctl(struct inode *, struct file *, unsigned int, unsigned int); |
file | 244 | include/linux/tty.h | extern int serial_open(unsigned int line, struct file * filp); |
file | 245 | include/linux/tty.h | extern void serial_close(unsigned int line, struct file * filp); |
file | 253 | include/linux/tty.h | extern int pty_open(unsigned int dev, struct file * filp); |
file | 254 | include/linux/tty.h | extern void pty_close(unsigned int dev, struct file * filp); |
file | 40 | init/main.c | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
file | 41 | init/main.c | static inline _syscall3(int,open,const char *,file,int,flag,int,mode) |
file | 1002 | kernel/blk_drv/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
file | 1140 | kernel/blk_drv/floppy.c | static int floppy_open(struct inode * inode, struct file * filp) |
file | 1159 | kernel/blk_drv/floppy.c | static void floppy_release(struct inode * inode, struct file * filp) |
file | 446 | kernel/blk_drv/hd.c | static int hd_ioctl(struct inode * inode, struct file * file, |
file | 479 | kernel/blk_drv/hd.c | static void hd_release(struct inode * inode, struct file * file) |
file | 47 | kernel/blk_drv/scsi/sd.c | extern int sd_ioctl(struct inode *, struct file *, unsigned long, unsigned long); |
file | 49 | kernel/blk_drv/scsi/sd.c | static void sd_release(struct inode * inode, struct file * file) |
file | 11 | kernel/blk_drv/scsi/sd_ioctl.c | int sd_ioctl(struct inode * inode, struct file * file, unsigned long cmd, unsigned long arg) |
file | 10 | kernel/blk_drv/scsi/st_ioctl.c | int st_ioctl(struct inode * inode, struct file * file, unsigned long cmd, unsigned long arg) |
file | 49 | kernel/chr_drv/lp.c | static int lp_write(struct inode * inode, struct file * file, char * buf, int count) |
file | 82 | kernel/chr_drv/lp.c | static int lp_read(struct inode * inode, struct file * file, char * buf, int count) |
file | 87 | kernel/chr_drv/lp.c | static int lp_lseek(struct inode * inode, struct file * file, off_t offset, int origin) |
file | 92 | kernel/chr_drv/lp.c | static int lp_open(struct inode * inode, struct file * file) |
file | 106 | kernel/chr_drv/lp.c | static void lp_release(struct inode * inode, struct file * file) |
file | 17 | kernel/chr_drv/mem.c | static int read_ram(struct inode * inode, struct file * file,char * buf, int count) |
file | 22 | kernel/chr_drv/mem.c | static int write_ram(struct inode * inode, struct file * file,char * buf, int count) |
file | 27 | kernel/chr_drv/mem.c | static int read_mem(struct inode * inode, struct file * file,char * buf, int count) |
file | 36 | kernel/chr_drv/mem.c | addr = file->f_pos; |
file | 60 | kernel/chr_drv/mem.c | file->f_pos = addr; |
file | 64 | kernel/chr_drv/mem.c | static int write_mem(struct inode * inode, struct file * file,char * buf, int count) |
file | 73 | kernel/chr_drv/mem.c | addr = file->f_pos; |
file | 101 | kernel/chr_drv/mem.c | file->f_pos = addr; |
file | 109 | kernel/chr_drv/mem.c | static int read_kmem(struct inode * inode, struct file * file,char * buf, int count) |
file | 111 | kernel/chr_drv/mem.c | unsigned long p = file->f_pos; |
file | 120 | kernel/chr_drv/mem.c | file->f_pos += count; |
file | 124 | kernel/chr_drv/mem.c | static int write_kmem(struct inode * inode, struct file * file,char * buf, int count) |
file | 126 | kernel/chr_drv/mem.c | unsigned long p = file->f_pos; |
file | 135 | kernel/chr_drv/mem.c | file->f_pos += count; |
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_zero(struct inode *node,struct file *file,char *buf,int count) |
file | 186 | kernel/chr_drv/mem.c | static int mem_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 190 | kernel/chr_drv/mem.c | file->f_pos = offset; |
file | 191 | kernel/chr_drv/mem.c | return file->f_pos; |
file | 193 | kernel/chr_drv/mem.c | file->f_pos += offset; |
file | 194 | kernel/chr_drv/mem.c | return file->f_pos; |
file | 198 | kernel/chr_drv/mem.c | if (file->f_pos < 0) |
file | 200 | kernel/chr_drv/mem.c | return file->f_pos; |
file | 203 | kernel/chr_drv/mem.c | static int mem_read(struct inode * inode, struct file * file, char * buf, int count) |
file | 207 | kernel/chr_drv/mem.c | return read_ram(inode,file,buf,count); |
file | 209 | kernel/chr_drv/mem.c | return read_mem(inode,file,buf,count); |
file | 211 | kernel/chr_drv/mem.c | return read_kmem(inode,file,buf,count); |
file | 215 | kernel/chr_drv/mem.c | return read_port(inode,file,buf,count); |
file | 217 | kernel/chr_drv/mem.c | return read_zero(inode,file,buf,count); |
file | 223 | kernel/chr_drv/mem.c | static int mem_write(struct inode * inode, struct file * file, char * buf, int count) |
file | 227 | kernel/chr_drv/mem.c | return write_ram(inode,file,buf,count); |
file | 229 | kernel/chr_drv/mem.c | return write_mem(inode,file,buf,count); |
file | 231 | kernel/chr_drv/mem.c | return write_kmem(inode,file,buf,count); |
file | 235 | kernel/chr_drv/mem.c | return write_port(inode,file,buf,count); |
file | 65 | kernel/chr_drv/mouse.c | static void release_mouse(struct inode * inode, struct file * file) |
file | 74 | kernel/chr_drv/mouse.c | static int open_mouse(struct inode * inode, struct file * file) |
file | 97 | kernel/chr_drv/mouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
file | 102 | kernel/chr_drv/mouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
file | 135 | kernel/chr_drv/mouse.c | static int mouse_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 23 | kernel/chr_drv/pty.c | int pty_open(unsigned int dev, struct file * filp) |
file | 40 | kernel/chr_drv/pty.c | void pty_close(unsigned int dev, struct file * filp) |
file | 285 | kernel/chr_drv/serial.c | void serial_close(unsigned line, struct file * filp) |
file | 367 | kernel/chr_drv/serial.c | int serial_open(unsigned line, struct file * filp) |
file | 304 | kernel/chr_drv/tty_io.c | static int read_chan(unsigned int channel, struct file * file, char * buf, int nr) |
file | 339 | kernel/chr_drv/tty_io.c | if (file->f_flags & O_NONBLOCK) |
file | 386 | kernel/chr_drv/tty_io.c | if (file->f_flags & O_NONBLOCK) |
file | 391 | kernel/chr_drv/tty_io.c | static int write_chan(unsigned int channel, struct file * file, char * buf, int nr) |
file | 461 | kernel/chr_drv/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
file | 465 | kernel/chr_drv/tty_io.c | if (MAJOR(file->f_rdev) != 4) { |
file | 469 | kernel/chr_drv/tty_io.c | i = read_chan(MINOR(file->f_rdev),file,buf,count); |
file | 475 | kernel/chr_drv/tty_io.c | static int tty_write(struct inode * inode, struct file * file, char * buf, int count) |
file | 479 | kernel/chr_drv/tty_io.c | if (MAJOR(file->f_rdev) != 4) { |
file | 483 | kernel/chr_drv/tty_io.c | i = write_chan(MINOR(file->f_rdev),file,buf,count); |
file | 489 | kernel/chr_drv/tty_io.c | static int tty_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 502 | kernel/chr_drv/tty_io.c | static int tty_open(struct inode * inode, struct file * filp) |
file | 554 | kernel/chr_drv/tty_io.c | static void tty_release(struct inode * inode, struct file * filp) |
file | 583 | kernel/chr_drv/tty_io.c | static int tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 229 | kernel/chr_drv/tty_ioctl.c | int tty_ioctl(struct inode * inode, struct file * file, |
file | 237 | kernel/chr_drv/tty_ioctl.c | if (MAJOR(file->f_rdev) != 4) { |
file | 241 | kernel/chr_drv/tty_ioctl.c | dev = MINOR(file->f_rdev); |
file | 396 | kernel/chr_drv/tty_ioctl.c | file->f_flags |= O_NONBLOCK; |
file | 398 | kernel/chr_drv/tty_ioctl.c | file->f_flags &= ~O_NONBLOCK; |
file | 401 | kernel/chr_drv/tty_ioctl.c | if (MINOR(file->f_rdev) != current->tty) |
file | 113 | 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 | 40 | net/socket.c | static int sock_lseek(struct inode *inode, struct file *file, off_t offset, |
file | 42 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
file | 44 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, char *buf, |
file | 46 | net/socket.c | static int sock_readdir(struct inode *inode, struct file *file, |
file | 48 | net/socket.c | static void sock_close(struct inode *inode, struct file *file); |
file | 49 | net/socket.c | static int sock_select(struct inode *inode, struct file *file, int which, select_table *seltable); |
file | 50 | net/socket.c | static int sock_ioctl(struct inode *inode, struct file *file, |
file | 77 | net/socket.c | struct file *file; |
file | 88 | net/socket.c | for (file = file_table, i = 0; i < NR_FILE; ++i, ++file) |
file | 89 | net/socket.c | if (!file->f_count) |
file | 93 | net/socket.c | current->filp[fd] = file; |
file | 94 | net/socket.c | file->f_op = &socket_file_ops; |
file | 95 | net/socket.c | file->f_mode = 3; |
file | 96 | net/socket.c | file->f_flags = 0; |
file | 97 | net/socket.c | file->f_count = 1; |
file | 98 | net/socket.c | file->f_inode = inode; |
file | 99 | net/socket.c | file->f_pos = 0; |
file | 127 | net/socket.c | sockfd_lookup(int fd, struct file **pfile) |
file | 129 | net/socket.c | struct file *file; |
file | 131 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->filp[fd])) |
file | 134 | net/socket.c | *pfile = file; |
file | 135 | net/socket.c | return socki_lookup(file->f_inode); |
file | 225 | net/socket.c | sock_lseek(struct inode *inode, struct file *file, off_t offset, int whence) |
file | 232 | net/socket.c | sock_read(struct inode *inode, struct file *file, char *ubuf, int size) |
file | 243 | net/socket.c | return sock->ops->read(sock, ubuf, size, (file->f_flags & O_NONBLOCK)); |
file | 247 | net/socket.c | sock_write(struct inode *inode, struct file *file, char *ubuf, int size) |
file | 258 | net/socket.c | return sock->ops->write(sock, ubuf, size,(file->f_flags & O_NONBLOCK)); |
file | 262 | net/socket.c | sock_readdir(struct inode *inode, struct file *file, struct dirent *dirent, |
file | 270 | net/socket.c | sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
file | 294 | net/socket.c | sock_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 331 | net/socket.c | sock_close(struct inode *inode, struct file *file) |
file | 569 | net/socket.c | struct file *file; |
file | 574 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
file | 590 | net/socket.c | if (file->f_flags & O_NONBLOCK) |