| tag | line | file | source code |
| file | 100 | arch/alpha/kernel/osf_sys.c | struct file * file; |
| file | 103 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
| file | 105 | arch/alpha/kernel/osf_sys.c | if (!file->f_op || !file->f_op->readdir) |
| file | 119 | arch/alpha/kernel/osf_sys.c | error = file->f_op->readdir(file->f_inode, file, &buf, osf_filldir); |
| file | 160 | arch/alpha/kernel/osf_sys.c | struct file * file = NULL; |
| file | 165 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
| file | 168 | arch/alpha/kernel/osf_sys.c | return do_mmap(file, addr, len, prot, flags, off); |
| file | 195 | arch/alpha/kernel/osf_sys.c | struct file * file; |
| file | 204 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
| file | 206 | arch/alpha/kernel/osf_sys.c | if (!(inode = file->f_inode)) |
| file | 270 | arch/alpha/kernel/osf_sys.c | struct file dummy; |
| file | 51 | arch/i386/kernel/sys_i386.c | struct file * file = NULL; |
| file | 59 | arch/i386/kernel/sys_i386.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
| file | 63 | arch/i386/kernel/sys_i386.c | return do_mmap(file, get_user(buffer), get_user(buffer+1), |
| file | 617 | drivers/block/aztcd.c | static int aztcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
| file | 1444 | drivers/block/aztcd.c | int aztcd_open(struct inode *ip, struct file *fp) |
| file | 1488 | drivers/block/aztcd.c | static void aztcd_release(struct inode * inode, struct file * file) |
| file | 1492 | drivers/block/aztcd.c | printk("inode: %p, inode->i_rdev: %x file: %p\n",inode,inode->i_rdev,file); |
| file | 234 | drivers/block/cdu31a.c | static int scd_open(struct inode *inode, struct file *filp); |
| file | 2325 | drivers/block/cdu31a.c | struct file *file, |
| file | 2667 | drivers/block/cdu31a.c | struct file *filp) |
| file | 2785 | drivers/block/cdu31a.c | struct file *filp) |
| file | 541 | drivers/block/cm206.c | static int cm206_open(struct inode *ip, struct file *fp) |
| file | 578 | drivers/block/cm206.c | static void cm206_release(struct inode *ip, struct file *fp) |
| file | 893 | drivers/block/cm206.c | static int cm206_ioctl(struct inode * inode, struct file * file, |
| file | 2916 | drivers/block/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
| file | 3142 | drivers/block/floppy.c | static int floppy_read(struct inode * inode, struct file * filp, |
| file | 3153 | drivers/block/floppy.c | static int floppy_write(struct inode * inode, struct file * filp, |
| file | 3174 | drivers/block/floppy.c | static void floppy_release(struct inode * inode, struct file * filp) |
| file | 3203 | drivers/block/floppy.c | static int floppy_open(struct inode * inode, struct file * filp) |
| file | 95 | drivers/block/gscd.c | static int gscd_ioctl (struct inode *, struct file *, unsigned int, unsigned long); |
| file | 96 | drivers/block/gscd.c | static int gscd_open (struct inode *, struct file *); |
| file | 97 | drivers/block/gscd.c | static void gscd_release (struct inode *, struct file *); |
| file | 210 | drivers/block/gscd.c | static int gscd_ioctl (struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
| file | 370 | drivers/block/gscd.c | static int gscd_open (struct inode *ip, struct file *fp) |
| file | 405 | drivers/block/gscd.c | static void gscd_release (struct inode * inode, struct file * file) |
| file | 777 | drivers/block/hd.c | static int hd_ioctl(struct inode * inode, struct file * file, |
| file | 889 | drivers/block/hd.c | static int hd_open(struct inode * inode, struct file * filp) |
| file | 906 | drivers/block/hd.c | static void hd_release(struct inode * inode, struct file * file) |
| file | 2024 | drivers/block/ide-cd.c | struct file *file, unsigned int cmd, unsigned long arg) |
| file | 2483 | drivers/block/ide-cd.c | int ide_cdrom_open (struct inode *ip, struct file *fp, ide_drive_t *drive) |
| file | 2531 | drivers/block/ide-cd.c | void ide_cdrom_release (struct inode *inode, struct file *file, ide_drive_t *drive) |
| file | 1645 | drivers/block/ide.c | static int ide_open(struct inode * inode, struct file * filp) |
| file | 1674 | drivers/block/ide.c | static void ide_release(struct inode * inode, struct file * file) |
| file | 1683 | drivers/block/ide.c | ide_cdrom_release (inode, file, drive); |
| file | 1751 | drivers/block/ide.c | static int ide_ioctl (struct inode *inode, struct file *file, |
| file | 1913 | drivers/block/ide.c | return ide_cdrom_ioctl(drive, inode, file, cmd, arg); |
| file | 443 | drivers/block/ide.h | int ide_cdrom_ioctl (ide_drive_t *, struct inode *, struct file *, unsigned int, unsigned long); |
| file | 445 | drivers/block/ide.h | int ide_cdrom_open (struct inode *, struct file *, ide_drive_t *); |
| file | 446 | drivers/block/ide.h | void ide_cdrom_release (struct inode *, struct file *, ide_drive_t *); |
| file | 293 | drivers/block/mcd.c | mcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, |
| file | 1102 | drivers/block/mcd.c | mcd_open(struct inode *ip, struct file *fp) |
| file | 1141 | drivers/block/mcd.c | mcd_release(struct inode * inode, struct file * file) |
| file | 210 | drivers/block/mcdx.c | static int mcdx_open(struct inode*, struct file*); |
| file | 211 | drivers/block/mcdx.c | static void mcdx_close(struct inode*, struct file*); |
| file | 212 | drivers/block/mcdx.c | static int mcdx_ioctl(struct inode*, struct file*, unsigned int, unsigned long); |
| file | 286 | drivers/block/mcdx.c | struct inode* ip, struct file* fp, |
| file | 614 | drivers/block/mcdx.c | mcdx_open(struct inode *ip, struct file *fp) |
| file | 748 | drivers/block/mcdx.c | mcdx_close(struct inode *ip, struct file *fp) |
| file | 1045 | drivers/block/optcd.c | static int opt_ioctl(struct inode *ip, struct file *fp, |
| file | 1302 | drivers/block/optcd.c | static int opt_open(struct inode *ip, struct file *fp) { |
| file | 1335 | drivers/block/optcd.c | static void opt_release(struct inode *ip, struct file *fp) { |
| file | 206 | drivers/block/ramdisk.c | struct file filp; |
| file | 3793 | drivers/block/sbpcd.c | static int sbpcd_ioctl(struct inode *inode, struct file *file, u_int cmd, |
| file | 4822 | drivers/block/sbpcd.c | static int sbpcd_open(struct inode *ip, struct file *fp) |
| file | 4907 | drivers/block/sbpcd.c | static void sbpcd_release(struct inode * ip, struct file * file) |
| file | 637 | drivers/block/sjcd.c | static int sjcd_ioctl( struct inode *ip, struct file *fp, |
| file | 1271 | drivers/block/sjcd.c | int sjcd_open( struct inode *ip, struct file *fp ){ |
| file | 1313 | drivers/block/sjcd.c | static void sjcd_release( struct inode *inode, struct file *file ){ |
| file | 203 | drivers/block/sonycd535.c | static int cdu_open(struct inode *inode, struct file *filp); |
| file | 1109 | drivers/block/sonycd535.c | struct file *file, |
| file | 1427 | drivers/block/sonycd535.c | struct file *filp) |
| file | 1475 | drivers/block/sonycd535.c | struct file *filp) |
| file | 193 | drivers/block/xd.c | static int xd_open (struct inode *inode,struct file *file) |
| file | 238 | drivers/block/xd.c | static int xd_ioctl (struct inode *inode,struct file *file,u_int cmd,u_long arg) |
| file | 287 | drivers/block/xd.c | static void xd_release (struct inode *inode, struct file *file) |
| file | 87 | drivers/char/atixlmouse.c | static void release_mouse(struct inode * inode, struct file * file) |
| file | 96 | drivers/char/atixlmouse.c | static int open_mouse(struct inode * inode, struct file * file) |
| file | 116 | drivers/char/atixlmouse.c | static int write_mouse(struct inode * inode, struct file * file, const char * buffer, int count) |
| file | 121 | drivers/char/atixlmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
| file | 152 | drivers/char/atixlmouse.c | static int mouse_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
| file | 93 | drivers/char/busmouse.c | static void close_mouse(struct inode * inode, struct file * file) |
| file | 106 | drivers/char/busmouse.c | static int open_mouse(struct inode * inode, struct file * file) |
| file | 127 | drivers/char/busmouse.c | static int write_mouse(struct inode * inode, struct file * file, const char * buffer, int count) |
| file | 136 | drivers/char/busmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
| file | 189 | drivers/char/busmouse.c | static int mouse_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
| file | 2347 | drivers/char/console.c | int con_open(struct tty_struct *tty, struct file * filp) |
| file | 2113 | drivers/char/cyclades.c | cy_ioctl(struct tty_struct *tty, struct file * file, |
| file | 2286 | drivers/char/cyclades.c | cy_close(struct tty_struct * tty, struct file * filp) |
| file | 2408 | drivers/char/cyclades.c | block_til_ready(struct tty_struct *tty, struct file * filp, |
| file | 2559 | drivers/char/cyclades.c | cy_open(struct tty_struct *tty, struct file * filp) |
| file | 303 | drivers/char/lp.c | static int lp_write(struct inode * inode, struct file * file, const char * buf, int count) |
| file | 317 | drivers/char/lp.c | static int lp_lseek(struct inode * inode, struct file * file, |
| file | 323 | drivers/char/lp.c | static int lp_open(struct inode * inode, struct file * file) |
| file | 343 | drivers/char/lp.c | if ((LP_F(minor) & LP_ABORTOPEN) && !(file->f_flags & O_NONBLOCK)) { |
| file | 381 | drivers/char/lp.c | static void lp_release(struct inode * inode, struct file * file) |
| file | 397 | drivers/char/lp.c | static int lp_ioctl(struct inode *inode, struct file *file, |
| file | 28 | drivers/char/mem.c | static int read_ram(struct inode * inode, struct file * file,char * buf, int count) |
| file | 33 | drivers/char/mem.c | static int write_ram(struct inode * inode, struct file * file, const char * buf, int count) |
| file | 38 | drivers/char/mem.c | static int read_mem(struct inode * inode, struct file * file,char * buf, int count) |
| file | 40 | drivers/char/mem.c | unsigned long p = file->f_pos; |
| file | 59 | drivers/char/mem.c | file->f_pos += read; |
| file | 63 | drivers/char/mem.c | static int write_mem(struct inode * inode, struct file * file,const char * buf, int count) |
| file | 65 | drivers/char/mem.c | unsigned long p = file->f_pos; |
| file | 84 | drivers/char/mem.c | file->f_pos += written; |
| file | 88 | drivers/char/mem.c | static int mmap_mem(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
| file | 109 | drivers/char/mem.c | static int read_kmem(struct inode *inode, struct file *file, char *buf, int count) |
| file | 113 | drivers/char/mem.c | read1 = read_mem(inode, file, buf, count); |
| file | 116 | drivers/char/mem.c | read2 = vread(buf + read1, (char *) ((unsigned long) file->f_pos), count - read1); |
| file | 119 | drivers/char/mem.c | file->f_pos += read2; |
| file | 123 | drivers/char/mem.c | static int read_port(struct inode * inode,struct file * file,char * buf, int count) |
| file | 125 | drivers/char/mem.c | unsigned int i = file->f_pos; |
| file | 133 | drivers/char/mem.c | file->f_pos = i; |
| file | 137 | drivers/char/mem.c | static int write_port(struct inode * inode,struct file * file,const char * buf, int count) |
| file | 139 | drivers/char/mem.c | unsigned int i = file->f_pos; |
| file | 147 | drivers/char/mem.c | file->f_pos = i; |
| file | 151 | drivers/char/mem.c | static int read_null(struct inode * node,struct file * file,char * buf,int count) |
| file | 156 | drivers/char/mem.c | static int write_null(struct inode * inode,struct file * file, const char * buf, int count) |
| file | 161 | drivers/char/mem.c | static int read_zero(struct inode * node,struct file * file,char * buf,int count) |
| file | 172 | drivers/char/mem.c | static int mmap_zero(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
| file | 181 | drivers/char/mem.c | static int read_full(struct inode * node,struct file * file,char * buf,int count) |
| file | 186 | drivers/char/mem.c | static int write_full(struct inode * inode,struct file * file, const char * buf, int count) |
| file | 196 | drivers/char/mem.c | static int null_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
| file | 198 | drivers/char/mem.c | return file->f_pos=0; |
| file | 208 | drivers/char/mem.c | static int memory_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
| file | 212 | drivers/char/mem.c | file->f_pos = offset; |
| file | 213 | drivers/char/mem.c | return file->f_pos; |
| file | 215 | drivers/char/mem.c | file->f_pos += offset; |
| file | 216 | drivers/char/mem.c | return file->f_pos; |
| file | 220 | drivers/char/mem.c | if (file->f_pos < 0) |
| file | 222 | drivers/char/mem.c | return file->f_pos; |
| file | 319 | drivers/char/mem.c | static int memory_open(struct inode * inode, struct file * filp) |
| file | 38 | drivers/char/mouse.c | static int mouse_open(struct inode * inode, struct file * file) |
| file | 45 | drivers/char/mouse.c | file->f_op = &bus_mouse_fops; |
| file | 50 | drivers/char/mouse.c | file->f_op = &psaux_fops; |
| file | 55 | drivers/char/mouse.c | file->f_op = &ms_bus_mouse_fops; |
| file | 60 | drivers/char/mouse.c | file->f_op = &atixl_busmouse_fops; |
| file | 66 | drivers/char/mouse.c | return file->f_op->open(inode,file); |
| file | 73 | drivers/char/msbusmouse.c | static void release_mouse(struct inode * inode, struct file * file) |
| file | 80 | drivers/char/msbusmouse.c | static int open_mouse(struct inode * inode, struct file * file) |
| file | 99 | drivers/char/msbusmouse.c | static int write_mouse(struct inode * inode, struct file * file, const char * buffer, int count) |
| file | 104 | drivers/char/msbusmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
| file | 125 | drivers/char/msbusmouse.c | static int mouse_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
| file | 742 | drivers/char/n_tty.c | static int read_chan(struct tty_struct *tty, struct file *file, |
| file | 764 | drivers/char/n_tty.c | if (file->f_inode->i_rdev != CONSOLE_DEV && |
| file | 824 | drivers/char/n_tty.c | if (tty_hung_up_p(file)) |
| file | 828 | drivers/char/n_tty.c | if (file->f_flags & O_NONBLOCK) { |
| file | 914 | drivers/char/n_tty.c | static int write_chan(struct tty_struct * tty, struct file * file, |
| file | 923 | drivers/char/n_tty.c | if (L_TOSTOP(tty) && file->f_inode->i_rdev != CONSOLE_DEV) { |
| file | 936 | drivers/char/n_tty.c | if (tty_hung_up_p(file) || (tty->link && !tty->link->count)) { |
| file | 956 | drivers/char/n_tty.c | if (file->f_flags & O_NONBLOCK) { |
| file | 968 | drivers/char/n_tty.c | struct file * file, int sel_type, select_table *wait) |
| file | 981 | drivers/char/n_tty.c | if (tty_hung_up_p(file)) |
| file | 115 | drivers/char/psaux.c | static int fasync_aux(struct inode *inode, struct file *filp, int on); |
| file | 246 | drivers/char/psaux.c | static void release_aux(struct inode * inode, struct file * file) |
| file | 253 | drivers/char/psaux.c | fasync_aux(inode, file, 0); |
| file | 258 | drivers/char/psaux.c | static void release_qp(struct inode * inode, struct file * file) |
| file | 269 | drivers/char/psaux.c | fasync_aux(inode, file, 0); |
| file | 274 | drivers/char/psaux.c | static int fasync_aux(struct inode *inode, struct file *filp, int on) |
| file | 318 | drivers/char/psaux.c | static int open_aux(struct inode * inode, struct file * file) |
| file | 348 | drivers/char/psaux.c | static int open_qp(struct inode * inode, struct file * file) |
| file | 388 | drivers/char/psaux.c | static int write_aux(struct inode * inode, struct file * file, const char * buffer, int count) |
| file | 410 | drivers/char/psaux.c | static int write_qp(struct inode * inode, struct file * file, const char * buffer, int count) |
| file | 429 | drivers/char/psaux.c | static int read_aux(struct inode * inode, struct file * file, char * buffer, int count) |
| file | 436 | drivers/char/psaux.c | if (file->f_flags & O_NONBLOCK) |
| file | 464 | drivers/char/psaux.c | static int aux_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
| file | 63 | drivers/char/pty.c | static void pty_close(struct tty_struct * tty, struct file * filp) |
| file | 182 | drivers/char/pty.c | int pty_open(struct tty_struct *tty, struct file * filp) |
| file | 163 | drivers/char/scc.c | int scc_open(struct tty_struct *tty, struct file *filp); |
| file | 164 | drivers/char/scc.c | static void scc_close(struct tty_struct *tty, struct file *filp); |
| file | 171 | drivers/char/scc.c | static int scc_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg); |
| file | 1713 | drivers/char/scc.c | int scc_open(struct tty_struct *tty, struct file * filp) |
| file | 1763 | drivers/char/scc.c | scc_close(struct tty_struct *tty, struct file * filp) |
| file | 1830 | drivers/char/scc.c | scc_ioctl(struct tty_struct *tty, struct file * file, unsigned int cmd, unsigned long arg) |
| file | 1840 | drivers/char/serial.c | static int rs_ioctl(struct tty_struct *tty, struct file * file, |
| file | 1996 | drivers/char/serial.c | static void rs_close(struct tty_struct *tty, struct file * filp) |
| file | 2130 | drivers/char/serial.c | static int block_til_ready(struct tty_struct *tty, struct file * filp, |
| file | 2263 | drivers/char/serial.c | int rs_open(struct tty_struct *tty, struct file * filp) |
| file | 1880 | drivers/char/tpqic02.c | static int qic02_tape_lseek(struct inode * inode, struct file * file, off_t offset, int origin) |
| file | 1918 | drivers/char/tpqic02.c | static int qic02_tape_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 2093 | drivers/char/tpqic02.c | static int qic02_tape_write(struct inode * inode, struct file * filp, const char * buf, int count) |
| file | 2245 | drivers/char/tpqic02.c | static int qic02_tape_open(struct inode * inode, struct file * filp) |
| file | 2430 | drivers/char/tpqic02.c | static void qic02_tape_release(struct inode * inode, struct file * filp) |
| file | 2551 | drivers/char/tpqic02.c | static int qic02_tape_ioctl(struct inode * inode, struct file * filp, |
| file | 95 | drivers/char/tty_io.c | static int tty_read(struct inode *, struct file *, char *, int); |
| file | 96 | drivers/char/tty_io.c | static int tty_write(struct inode *, struct file *, const char *, int); |
| file | 97 | drivers/char/tty_io.c | static int tty_select(struct inode *, struct file *, int, select_table *); |
| file | 98 | drivers/char/tty_io.c | static int tty_open(struct inode *, struct file *); |
| file | 99 | drivers/char/tty_io.c | static void tty_release(struct inode *, struct file *); |
| file | 100 | drivers/char/tty_io.c | static int tty_ioctl(struct inode * inode, struct file * file, |
| file | 102 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on); |
| file | 158 | drivers/char/tty_io.c | struct file *f; |
| file | 289 | drivers/char/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
| file | 294 | drivers/char/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, const char * buf, int count) |
| file | 299 | drivers/char/tty_io.c | static int hung_up_tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
| file | 304 | drivers/char/tty_io.c | static int hung_up_tty_ioctl(struct inode * inode, struct file * file, |
| file | 310 | drivers/char/tty_io.c | static int tty_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
| file | 346 | drivers/char/tty_io.c | struct file * filp; |
| file | 429 | drivers/char/tty_io.c | int tty_hung_up_p(struct file * filp) |
| file | 685 | drivers/char/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
| file | 690 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
| file | 714 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
| file | 722 | drivers/char/tty_io.c | static int tty_write(struct inode * inode, struct file * file, const char * buf, int count) |
| file | 732 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
| file | 750 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(const unsigned char *)buf,(unsigned int)count); |
| file | 941 | drivers/char/tty_io.c | static void release_dev(struct file * filp) |
| file | 1127 | drivers/char/tty_io.c | static int tty_open(struct inode * inode, struct file * filp) |
| file | 1202 | drivers/char/tty_io.c | static void tty_release(struct inode * inode, struct file * filp) |
| file | 1207 | drivers/char/tty_io.c | static int tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
| file | 1220 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on) |
| file | 1300 | drivers/char/tty_io.c | static int tty_ioctl(struct inode * inode, struct file * file, |
| file | 1311 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
| file | 1374 | drivers/char/tty_io.c | file->f_flags |= O_NONBLOCK; |
| file | 1376 | drivers/char/tty_io.c | file->f_flags &= ~O_NONBLOCK; |
| file | 1522 | drivers/char/tty_io.c | retval = (tty->driver.ioctl)(tty, file, |
| file | 1528 | drivers/char/tty_io.c | retval = (tty->ldisc.ioctl)(tty, file, |
| file | 1558 | drivers/char/tty_io.c | struct file *filp; |
| file | 374 | drivers/char/tty_ioctl.c | int n_tty_ioctl(struct tty_struct * tty, struct file * file, |
| file | 544 | drivers/char/tty_ioctl.c | tty->driver.ioctl(tty, file, cmd, arg); |
| file | 40 | drivers/char/vc_screen.c | vcs_lseek(struct inode *inode, struct file *file, off_t offset, int orig) |
| file | 46 | drivers/char/vc_screen.c | file->f_pos = offset; |
| file | 49 | drivers/char/vc_screen.c | file->f_pos += offset; |
| file | 52 | drivers/char/vc_screen.c | file->f_pos = size + offset; |
| file | 57 | drivers/char/vc_screen.c | if (file->f_pos < 0 || file->f_pos > size) |
| file | 59 | drivers/char/vc_screen.c | return file->f_pos; |
| file | 63 | drivers/char/vc_screen.c | vcs_read(struct inode *inode, struct file *file, char *buf, int count) |
| file | 65 | drivers/char/vc_screen.c | unsigned long p = file->f_pos; |
| file | 116 | drivers/char/vc_screen.c | file->f_pos += read; |
| file | 121 | drivers/char/vc_screen.c | vcs_write(struct inode *inode, struct file *file, const char *buf, int count) |
| file | 123 | drivers/char/vc_screen.c | unsigned long p = file->f_pos; |
| file | 181 | drivers/char/vc_screen.c | file->f_pos += written; |
| file | 186 | drivers/char/vc_screen.c | vcs_open(struct inode *inode, struct file *filp) |
| file | 183 | drivers/char/vt.c | int vt_ioctl(struct tty_struct *tty, struct file * file, |
| file | 141 | drivers/net/ppp.c | static int ppp_read(struct tty_struct *, struct file *, unsigned char *, |
| file | 143 | drivers/net/ppp.c | static int ppp_write(struct tty_struct *, struct file *, const unsigned char *, |
| file | 145 | drivers/net/ppp.c | static int ppp_ioctl(struct tty_struct *, struct file *, unsigned int, |
| file | 148 | drivers/net/ppp.c | struct file * filp, int sel_type, select_table * wait); |
| file | 1241 | drivers/net/ppp.c | ppp_read(struct tty_struct *tty, struct file *file, unsigned char *buf, unsigned int nr) |
| file | 1353 | drivers/net/ppp.c | ppp_write(struct tty_struct *tty, struct file *file, const unsigned char *buf, unsigned int nr) |
| file | 1438 | drivers/net/ppp.c | ppp_ioctl(struct tty_struct *tty, struct file *file, unsigned int i, |
| file | 1637 | drivers/net/ppp.c | error = n_tty_ioctl(tty, file, i, l); |
| file | 1661 | drivers/net/ppp.c | struct file * filp, int sel_type, select_table * wait) |
| file | 1016 | drivers/net/slip.c | slip_ioctl(struct tty_struct *tty, void *file, int cmd, void *arg) |
| file | 1098 | drivers/net/slip.c | return n_tty_ioctl(tty, (struct file *) file, cmd, (unsigned long) arg); |
| file | 1155 | drivers/net/slip.c | sl_ldisc.ioctl = (int (*)(struct tty_struct *, struct file *, |
| file | 2149 | drivers/scsi/53c7,8xx.c | static debugger_user_write (struct inode *inode,struct file *filp, |
| file | 2201 | drivers/scsi/53c7,8xx.c | static debugger_user_read (struct inode *inode,struct file *filp, |
| file | 75 | drivers/scsi/sd.c | extern int sd_ioctl(struct inode *, struct file *, unsigned int, unsigned long); |
| file | 97 | drivers/scsi/sd.c | static int sd_open(struct inode * inode, struct file * filp) |
| file | 134 | drivers/scsi/sd.c | static void sd_release(struct inode * inode, struct file * file) |
| file | 24 | drivers/scsi/sd_ioctl.c | int sd_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg) |
| file | 70 | drivers/scsi/sg.c | static int sg_ioctl(struct inode * inode,struct file * file, |
| file | 92 | drivers/scsi/sg.c | static int sg_open(struct inode * inode, struct file * filp) |
| file | 154 | drivers/scsi/sg.c | static void sg_close(struct inode * inode, struct file * filp) |
| file | 203 | drivers/scsi/sg.c | static int sg_read(struct inode *inode,struct file *filp,char *buf,int count) |
| file | 292 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,const char *buf,int count) |
| file | 64 | drivers/scsi/sr.c | static int sr_open(struct inode *, struct file *); |
| file | 67 | drivers/scsi/sr.c | extern int sr_ioctl(struct inode *, struct file *, unsigned int, unsigned long); |
| file | 72 | drivers/scsi/sr.c | static void sr_release(struct inode * inode, struct file * file) |
| file | 515 | drivers/scsi/sr.c | static int sr_open(struct inode * inode, struct file * filp) |
| file | 97 | drivers/scsi/sr_ioctl.c | int sr_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg) |
| file | 91 | drivers/scsi/st.c | static int st_int_ioctl(struct inode * inode,struct file * file, |
| file | 368 | drivers/scsi/st.c | flush_buffer(struct inode * inode, struct file * filp, int seek_next) |
| file | 413 | drivers/scsi/st.c | scsi_tape_open(struct inode * inode, struct file * filp) |
| file | 658 | drivers/scsi/st.c | scsi_tape_close(struct inode * inode, struct file * filp) |
| file | 752 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, const char * buf, int count) |
| file | 995 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 1288 | drivers/scsi/st.c | st_int_ioctl(struct inode * inode,struct file * file, |
| file | 1493 | drivers/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTFSF, 0x3fff); |
| file | 1676 | drivers/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTFSF, 1); |
| file | 1678 | drivers/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTBSF, 1); |
| file | 1772 | drivers/scsi/st.c | st_ioctl(struct inode * inode,struct file * file, |
| file | 1805 | drivers/scsi/st.c | i = flush_buffer(inode, file, mtc.mt_op == MTSEEK || |
| file | 1817 | drivers/scsi/st.c | st_int_ioctl(inode, file, MTUNLOCK, 0); /* Ignore result! */ |
| file | 1823 | drivers/scsi/st.c | return st_int_ioctl(inode, file, mtc.mt_op, mtc.mt_count); |
| file | 1888 | drivers/scsi/st.c | i = flush_buffer(inode, file, 0); |
| file | 87 | drivers/sound/audio.c | audio_open (int dev, struct fileinfo *file) |
| file | 92 | drivers/sound/audio.c | int mode = file->mode & O_ACCMODE; |
| file | 108 | drivers/sound/audio.c | audio_release (dev, file); |
| file | 118 | drivers/sound/audio.c | audio_release (dev, file); |
| file | 138 | drivers/sound/audio.c | audio_release (int dev, struct fileinfo *file) |
| file | 143 | drivers/sound/audio.c | mode = file->mode & O_ACCMODE; |
| file | 183 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
| file | 285 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
| file | 351 | drivers/sound/audio.c | audio_ioctl (int dev, struct fileinfo *file, |
| file | 457 | drivers/sound/audio.c | audio_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
| file | 474 | drivers/sound/audio.c | return DMAbuf_select (dev, file, sel_type, wait); |
| file | 484 | drivers/sound/audio.c | return DMAbuf_select (dev, file, sel_type, wait); |
| file | 502 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
| file | 508 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
| file | 514 | drivers/sound/audio.c | audio_open (int dev, struct fileinfo *file) |
| file | 520 | drivers/sound/audio.c | audio_release (int dev, struct fileinfo *file) |
| file | 524 | drivers/sound/audio.c | audio_ioctl (int dev, struct fileinfo *file, |
| file | 531 | drivers/sound/audio.c | audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig) |
| file | 956 | drivers/sound/dmabuf.c | DMAbuf_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
| file | 166 | drivers/sound/midibuf.c | MIDIbuf_open (int dev, struct fileinfo *file) |
| file | 172 | drivers/sound/midibuf.c | mode = file->mode & O_ACCMODE; |
| file | 237 | drivers/sound/midibuf.c | MIDIbuf_release (int dev, struct fileinfo *file) |
| file | 243 | drivers/sound/midibuf.c | mode = file->mode & O_ACCMODE; |
| file | 279 | drivers/sound/midibuf.c | MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
| file | 330 | drivers/sound/midibuf.c | MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
| file | 375 | drivers/sound/midibuf.c | MIDIbuf_ioctl (int dev, struct fileinfo *file, |
| file | 412 | drivers/sound/midibuf.c | MIDIbuf_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
| file | 181 | drivers/sound/os.h | #define DECLARE_FILE() struct file *filp |
| file | 86 | drivers/sound/patmgr.c | pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
| file | 124 | drivers/sound/patmgr.c | pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
| file | 99 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
| file | 112 | drivers/sound/sequencer.c | return pmgr_read (dev - 1, file, buf, count); |
| file | 117 | drivers/sound/sequencer.c | if (ISSET_FILE_FLAG (file, O_NONBLOCK)) |
| file | 238 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
| file | 243 | drivers/sound/sequencer.c | int mode = file->mode & O_ACCMODE; |
| file | 255 | drivers/sound/sequencer.c | return pmgr_write (dev - 1, file, buf, count); |
| file | 326 | drivers/sound/sequencer.c | mode = file->mode & O_ACCMODE; |
| file | 341 | drivers/sound/sequencer.c | if (!seq_queue (event, ISSET_FILE_FLAG (file, O_NONBLOCK))) |
| file | 348 | drivers/sound/sequencer.c | if (!processed && ISSET_FILE_FLAG (file, O_NONBLOCK)) |
| file | 992 | drivers/sound/sequencer.c | sequencer_open (int dev, struct fileinfo *file) |
| file | 1000 | drivers/sound/sequencer.c | mode = file->mode & O_ACCMODE; |
| file | 1181 | drivers/sound/sequencer.c | sequencer_release (int dev, struct fileinfo *file) |
| file | 1184 | drivers/sound/sequencer.c | int mode = file->mode & O_ACCMODE; |
| file | 1204 | drivers/sound/sequencer.c | if (mode != OPEN_READ && !ISSET_FILE_FLAG (file, O_NONBLOCK)) |
| file | 1394 | drivers/sound/sequencer.c | sequencer_ioctl (int dev, struct fileinfo *file, |
| file | 1398 | drivers/sound/sequencer.c | int mode = file->mode & O_ACCMODE; |
| file | 1480 | drivers/sound/sequencer.c | mode = file->mode & O_ACCMODE; |
| file | 1755 | drivers/sound/sequencer.c | sequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
| file | 1911 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
| file | 1917 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
| file | 1923 | drivers/sound/sequencer.c | sequencer_open (int dev, struct fileinfo *file) |
| file | 1929 | drivers/sound/sequencer.c | sequencer_release (int dev, struct fileinfo *file) |
| file | 1933 | drivers/sound/sequencer.c | sequencer_ioctl (int dev, struct fileinfo *file, |
| file | 1940 | drivers/sound/sequencer.c | sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig) |
| file | 1953 | drivers/sound/sequencer.c | sequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
| file | 20 | drivers/sound/sound_calls.h | int DMAbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
| file | 27 | drivers/sound/sound_calls.h | int audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
| file | 28 | drivers/sound/sound_calls.h | int audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
| file | 29 | drivers/sound/sound_calls.h | int audio_open (int dev, struct fileinfo *file); |
| file | 30 | drivers/sound/sound_calls.h | void audio_release (int dev, struct fileinfo *file); |
| file | 31 | drivers/sound/sound_calls.h | int audio_ioctl (int dev, struct fileinfo *file, |
| file | 33 | drivers/sound/sound_calls.h | int audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
| file | 37 | drivers/sound/sound_calls.h | int audio_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
| file | 44 | drivers/sound/sound_calls.h | int sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
| file | 45 | drivers/sound/sound_calls.h | int sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
| file | 46 | drivers/sound/sound_calls.h | int sequencer_open (int dev, struct fileinfo *file); |
| file | 47 | drivers/sound/sound_calls.h | void sequencer_release (int dev, struct fileinfo *file); |
| file | 48 | drivers/sound/sound_calls.h | int sequencer_ioctl (int dev, struct fileinfo *file, |
| file | 50 | drivers/sound/sound_calls.h | int sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
| file | 59 | drivers/sound/sound_calls.h | int sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
| file | 66 | drivers/sound/sound_calls.h | int MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
| file | 67 | drivers/sound/sound_calls.h | int MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
| file | 68 | drivers/sound/sound_calls.h | int MIDIbuf_open (int dev, struct fileinfo *file); |
| file | 69 | drivers/sound/sound_calls.h | void MIDIbuf_release (int dev, struct fileinfo *file); |
| file | 70 | drivers/sound/sound_calls.h | int MIDIbuf_ioctl (int dev, struct fileinfo *file, |
| file | 72 | drivers/sound/sound_calls.h | int MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
| file | 77 | drivers/sound/sound_calls.h | int MIDIbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
| file | 86 | drivers/sound/sound_calls.h | int CMIDI_open (int dev, struct fileinfo *file); |
| file | 87 | drivers/sound/sound_calls.h | int CMIDI_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
| file | 88 | drivers/sound/sound_calls.h | int CMIDI_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
| file | 89 | drivers/sound/sound_calls.h | int CMIDI_close (int dev, struct fileinfo *file); |
| file | 108 | drivers/sound/sound_calls.h | int sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
| file | 109 | drivers/sound/sound_calls.h | int sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
| file | 110 | drivers/sound/sound_calls.h | int sound_open_sw (int dev, struct fileinfo *file); |
| file | 111 | drivers/sound/sound_calls.h | void sound_release_sw (int dev, struct fileinfo *file); |
| file | 112 | drivers/sound/sound_calls.h | int sound_ioctl_sw (int dev, struct fileinfo *file, |
| file | 212 | drivers/sound/sound_calls.h | int pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
| file | 213 | drivers/sound/sound_calls.h | int pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
| file | 246 | drivers/sound/sound_calls.h | int pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
| file | 247 | drivers/sound/sound_calls.h | int pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
| file | 248 | drivers/sound/sound_calls.h | int pss_open (int dev, struct fileinfo *file); |
| file | 249 | drivers/sound/sound_calls.h | void pss_release (int dev, struct fileinfo *file); |
| file | 250 | drivers/sound/sound_calls.h | int pss_ioctl (int dev, struct fileinfo *file, |
| file | 252 | drivers/sound/sound_calls.h | int pss_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
| file | 308 | drivers/sound/sound_switch.c | sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
| file | 321 | drivers/sound/sound_switch.c | return audio_read (dev, file, buf, count); |
| file | 326 | drivers/sound/sound_switch.c | return sequencer_read (dev, file, buf, count); |
| file | 331 | drivers/sound/sound_switch.c | return MIDIbuf_read (dev, file, buf, count); |
| file | 342 | drivers/sound/sound_switch.c | sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
| file | 352 | drivers/sound/sound_switch.c | return sequencer_write (dev, file, buf, count); |
| file | 358 | drivers/sound/sound_switch.c | return audio_write (dev, file, buf, count); |
| file | 363 | drivers/sound/sound_switch.c | return MIDIbuf_write (dev, file, buf, count); |
| file | 374 | drivers/sound/sound_switch.c | sound_open_sw (int dev, struct fileinfo *file) |
| file | 404 | drivers/sound/sound_switch.c | if ((retval = sequencer_open (dev, file)) < 0) |
| file | 410 | drivers/sound/sound_switch.c | if ((retval = MIDIbuf_open (dev, file)) < 0) |
| file | 418 | drivers/sound/sound_switch.c | if ((retval = audio_open (dev, file)) < 0) |
| file | 434 | drivers/sound/sound_switch.c | sound_release_sw (int dev, struct fileinfo *file) |
| file | 453 | drivers/sound/sound_switch.c | sequencer_release (dev, file); |
| file | 458 | drivers/sound/sound_switch.c | MIDIbuf_release (dev, file); |
| file | 465 | drivers/sound/sound_switch.c | audio_release (dev, file); |
| file | 477 | drivers/sound/sound_switch.c | sound_ioctl_sw (int dev, struct fileinfo *file, |
| file | 522 | drivers/sound/sound_switch.c | return sequencer_ioctl (dev, file, cmd, arg); |
| file | 528 | drivers/sound/sound_switch.c | return audio_ioctl (dev, file, cmd, arg); |
| file | 533 | drivers/sound/sound_switch.c | return MIDIbuf_ioctl (dev, file, cmd, arg); |
| file | 57 | drivers/sound/soundcard.c | sound_read (struct inode *inode, struct file *file, char *buf, int count) |
| file | 68 | drivers/sound/soundcard.c | sound_write (struct inode *inode, struct file *file, char *buf, int count) |
| file | 84 | drivers/sound/soundcard.c | sound_lseek (struct inode *inode, struct file *file, off_t offset, int orig) |
| file | 90 | drivers/sound/soundcard.c | sound_open (struct inode *inode, struct file *file) |
| file | 105 | drivers/sound/soundcard.c | tmp_file.filp = file; |
| file | 107 | drivers/sound/soundcard.c | if ((file->f_flags & O_ACCMODE) == O_RDWR) |
| file | 109 | drivers/sound/soundcard.c | if ((file->f_flags & O_ACCMODE) == O_RDONLY) |
| file | 111 | drivers/sound/soundcard.c | if ((file->f_flags & O_ACCMODE) == O_WRONLY) |
| file | 126 | drivers/sound/soundcard.c | sound_release (struct inode *inode, struct file *file) |
| file | 140 | drivers/sound/soundcard.c | sound_ioctl (struct inode *inode, struct file *file, |
| file | 175 | drivers/sound/soundcard.c | sound_select (struct inode *inode, struct file *file, int sel_type, select_table * wait) |
| file | 181 | fs/binfmt_elf.c | struct file * file; |
| file | 220 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
| file | 236 | fs/binfmt_elf.c | error = do_mmap(file, |
| file | 344 | fs/binfmt_elf.c | struct file * file; |
| file | 418 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
| file | 585 | fs/binfmt_elf.c | error = do_mmap(file, |
| file | 702 | fs/binfmt_elf.c | struct file * file; |
| file | 715 | fs/binfmt_elf.c | file = current->files->fd[fd]; |
| file | 716 | fs/binfmt_elf.c | inode = file->f_inode; |
| file | 720 | fs/binfmt_elf.c | if (file->f_op->read(inode, file, (char *) &elf_ex, sizeof(elf_ex)) != sizeof(elf_ex)) { |
| file | 771 | fs/binfmt_elf.c | error = do_mmap(file, |
| file | 811 | fs/binfmt_elf.c | static int dump_write(struct file *file, const void *addr, int nr) |
| file | 813 | fs/binfmt_elf.c | return file->f_op->write(file->f_inode, file, addr, nr) == nr; |
| file | 816 | fs/binfmt_elf.c | static int dump_seek(struct file *file, off_t off) |
| file | 818 | fs/binfmt_elf.c | if (file->f_op->lseek) { |
| file | 819 | fs/binfmt_elf.c | if (file->f_op->lseek(file->f_inode, file, off, 0) != off) |
| file | 822 | fs/binfmt_elf.c | file->f_pos = off; |
| file | 887 | fs/binfmt_elf.c | do { if (!dump_write(file, (addr), (nr))) return 0; } while(0) |
| file | 889 | fs/binfmt_elf.c | do { if (!dump_seek(file, (off))) return 0; } while(0) |
| file | 891 | fs/binfmt_elf.c | static int writenote(struct memelfnote *men, struct file *file) |
| file | 902 | fs/binfmt_elf.c | DUMP_SEEK(roundup((unsigned long)file->f_pos, 4)); /* XXX */ |
| file | 904 | fs/binfmt_elf.c | DUMP_SEEK(roundup((unsigned long)file->f_pos, 4)); /* XXX */ |
| file | 912 | fs/binfmt_elf.c | if (!dump_write(&file, (addr), (nr))) \ |
| file | 915 | fs/binfmt_elf.c | if (!dump_seek(&file, (off))) \ |
| file | 927 | fs/binfmt_elf.c | struct file file; |
| file | 1008 | fs/binfmt_elf.c | file.f_mode = 3; |
| file | 1009 | fs/binfmt_elf.c | file.f_flags = 0; |
| file | 1010 | fs/binfmt_elf.c | file.f_count = 1; |
| file | 1011 | fs/binfmt_elf.c | file.f_inode = inode; |
| file | 1012 | fs/binfmt_elf.c | file.f_pos = 0; |
| file | 1013 | fs/binfmt_elf.c | file.f_reada = 0; |
| file | 1014 | fs/binfmt_elf.c | file.f_op = inode->i_op->default_file_ops; |
| file | 1015 | fs/binfmt_elf.c | if (file.f_op->open) |
| file | 1016 | fs/binfmt_elf.c | if (file.f_op->open(inode,&file)) |
| file | 1018 | fs/binfmt_elf.c | if (!file.f_op->write) |
| file | 1165 | fs/binfmt_elf.c | if (!writenote(¬es[i], &file)) |
| file | 1187 | fs/binfmt_elf.c | if ((off_t) file.f_pos != offset) { |
| file | 1190 | fs/binfmt_elf.c | (off_t) file.f_pos, offset); |
| file | 1194 | fs/binfmt_elf.c | if (file.f_op->release) |
| file | 1195 | fs/binfmt_elf.c | file.f_op->release(inode,&file); |
| file | 23 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, const char * buf, int count) |
| file | 160 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 316 | fs/block_dev.c | int block_fsync(struct inode *inode, struct file *filp) |
| file | 235 | fs/buffer.c | int file_fsync (struct inode *inode, struct file *filp) |
| file | 242 | fs/buffer.c | struct file * file; |
| file | 245 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
| file | 247 | fs/buffer.c | if (!file->f_op || !file->f_op->fsync) |
| file | 249 | fs/buffer.c | if (file->f_op->fsync(inode,file)) |
| file | 171 | fs/devices.c | int blkdev_open(struct inode * inode, struct file * filp) |
| file | 222 | fs/devices.c | int chrdev_open(struct inode * inode, struct file * filp) |
| file | 106 | fs/exec.c | struct file *f, **fpp; |
| file | 148 | fs/exec.c | while (file.f_op->write(inode,&file,(char *)(addr),(nr)) != (nr)) goto close_coredump |
| file | 151 | fs/exec.c | if (file.f_op->lseek) { \ |
| file | 152 | fs/exec.c | if (file.f_op->lseek(inode,&file,(offset),0) != (offset)) \ |
| file | 154 | fs/exec.c | } else file.f_pos = (offset) |
| file | 168 | fs/exec.c | struct file file; |
| file | 200 | fs/exec.c | file.f_mode = 3; |
| file | 201 | fs/exec.c | file.f_flags = 0; |
| file | 202 | fs/exec.c | file.f_count = 1; |
| file | 203 | fs/exec.c | file.f_inode = inode; |
| file | 204 | fs/exec.c | file.f_pos = 0; |
| file | 205 | fs/exec.c | file.f_reada = 0; |
| file | 206 | fs/exec.c | file.f_op = inode->i_op->default_file_ops; |
| file | 207 | fs/exec.c | if (file.f_op->open) |
| file | 208 | fs/exec.c | if (file.f_op->open(inode,&file)) |
| file | 210 | fs/exec.c | if (!file.f_op->write) |
| file | 259 | fs/exec.c | if (file.f_op->release) |
| file | 260 | fs/exec.c | file.f_op->release(inode,&file); |
| file | 278 | fs/exec.c | struct file * file; |
| file | 284 | fs/exec.c | file = current->files->fd[fd]; |
| file | 286 | fs/exec.c | if (file && file->f_inode && file->f_op && file->f_op->read) { |
| file | 487 | fs/exec.c | struct file file; |
| file | 492 | fs/exec.c | file.f_mode = 1; |
| file | 493 | fs/exec.c | file.f_flags = 0; |
| file | 494 | fs/exec.c | file.f_count = 1; |
| file | 495 | fs/exec.c | file.f_inode = inode; |
| file | 496 | fs/exec.c | file.f_pos = 0; |
| file | 497 | fs/exec.c | file.f_reada = 0; |
| file | 498 | fs/exec.c | file.f_op = inode->i_op->default_file_ops; |
| file | 499 | fs/exec.c | if (file.f_op->open) |
| file | 500 | fs/exec.c | if (file.f_op->open(inode,&file)) |
| file | 502 | fs/exec.c | if (!file.f_op || !file.f_op->read) |
| file | 504 | fs/exec.c | if (file.f_op->lseek) { |
| file | 505 | fs/exec.c | if (file.f_op->lseek(inode,&file,offset,0) != offset) |
| file | 508 | fs/exec.c | file.f_pos = offset; |
| file | 512 | fs/exec.c | result = file.f_op->read(inode, &file, addr, count); |
| file | 518 | fs/exec.c | result = file.f_op->read(inode, &file, addr, count); |
| file | 521 | fs/exec.c | if (file.f_op->release) |
| file | 522 | fs/exec.c | file.f_op->release(inode,&file); |
| file | 783 | fs/exec.c | struct file * file; |
| file | 840 | fs/exec.c | file = current->files->fd[fd]; |
| file | 841 | fs/exec.c | if (!file->f_op || !file->f_op->mmap) { |
| file | 851 | fs/exec.c | error = do_mmap(file, N_TXTADDR(ex), ex.a_text, |
| file | 862 | fs/exec.c | error = do_mmap(file, N_DATADDR(ex), ex.a_data, |
| file | 907 | fs/exec.c | struct file * file; |
| file | 915 | fs/exec.c | file = current->files->fd[fd]; |
| file | 916 | fs/exec.c | inode = file->f_inode; |
| file | 919 | fs/exec.c | if (file->f_op->read(inode, file, (char *) &ex, sizeof(ex)) != sizeof(ex)) { |
| file | 944 | fs/exec.c | error = do_mmap(file, start_addr, ex.a_text + ex.a_data, |
| 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 *, void *, filldir_t); |
| 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 *, const char *, int); |
| file | 72 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 197 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
| file | 169 | fs/ext/fsync.c | int ext_sync_file(struct inode * inode, struct file *file) |
| file | 249 | fs/ext/truncate.c | void ext_release(struct inode * inode, struct file * filp) |
| file | 26 | fs/ext2/dir.c | static int ext2_dir_read (struct inode * inode, struct file * filp, |
| file | 32 | fs/ext2/dir.c | static int ext2_readdir (struct inode *, struct file *, void *, filldir_t); |
| file | 98 | fs/ext2/dir.c | static int ext2_readdir (struct inode * inode, struct file * filp, |
| file | 37 | fs/ext2/file.c | static int ext2_file_read (struct inode *, struct file *, char *, int); |
| file | 38 | fs/ext2/file.c | static int ext2_file_write (struct inode *, struct file *, const char *, int); |
| file | 39 | fs/ext2/file.c | static void ext2_release_file (struct inode *, struct file *); |
| file | 80 | fs/ext2/file.c | static int ext2_file_read (struct inode * inode, struct file * filp, |
| file | 231 | fs/ext2/file.c | static int ext2_file_write (struct inode * inode, struct file * filp, |
| file | 357 | fs/ext2/file.c | static void ext2_release_file (struct inode * inode, struct file * filp) |
| file | 166 | fs/ext2/fsync.c | int ext2_sync_file (struct inode * inode, struct file * file) |
| file | 19 | fs/ext2/ioctl.c | int ext2_ioctl (struct inode * inode, struct file * filp, unsigned int cmd, |
| file | 18 | fs/fcntl.c | extern int sock_fcntl (struct file *, unsigned int cmd, unsigned long arg); |
| file | 68 | fs/fcntl.c | struct file * filp; |
| file | 13 | fs/fifo.c | static int fifo_open(struct inode * inode,struct file * filp) |
| file | 16 | fs/file_table.c | struct file * first_file = NULL; |
| file | 22 | fs/file_table.c | static void insert_file_free(struct file *file) |
| file | 24 | fs/file_table.c | file->f_count = 0; |
| file | 25 | fs/file_table.c | file->f_next = first_file; |
| file | 26 | fs/file_table.c | file->f_prev = first_file->f_prev; |
| file | 27 | fs/file_table.c | file->f_next->f_prev = file; |
| file | 28 | fs/file_table.c | file->f_prev->f_next = file; |
| file | 29 | fs/file_table.c | first_file = file; |
| file | 35 | fs/file_table.c | static void remove_file_free(struct file *file) |
| file | 37 | fs/file_table.c | if (first_file == file) |
| file | 39 | fs/file_table.c | file->f_next->f_prev = file->f_prev; |
| file | 40 | fs/file_table.c | file->f_prev->f_next = file->f_next; |
| file | 41 | fs/file_table.c | file->f_next = file->f_prev = NULL; |
| file | 47 | fs/file_table.c | static void put_last_free(struct file *file) |
| file | 49 | fs/file_table.c | file->f_prev = first_file->f_prev; |
| file | 50 | fs/file_table.c | file->f_prev->f_next = file; |
| file | 51 | fs/file_table.c | file->f_next = first_file; |
| file | 52 | fs/file_table.c | file->f_next->f_prev = file; |
| file | 62 | fs/file_table.c | struct file * file; |
| file | 71 | fs/file_table.c | file = (struct file *) __get_free_page(GFP_KERNEL); |
| file | 73 | fs/file_table.c | if (!file) |
| file | 76 | fs/file_table.c | nr_files += i = PAGE_SIZE/sizeof(struct file); |
| file | 79 | fs/file_table.c | file->f_count = 0, |
| file | 80 | fs/file_table.c | file->f_next = file->f_prev = first_file = file++, |
| file | 84 | fs/file_table.c | insert_file_free(file++); |
| file | 99 | fs/file_table.c | struct file * get_empty_filp(void) |
| file | 102 | fs/file_table.c | struct file * f; |
| file | 153 | fs/hpfs/hpfs_fs.c | static int hpfs_file_read(struct inode *, struct file *, char *, int); |
| file | 192 | fs/hpfs/hpfs_fs.c | static int hpfs_dir_read(struct inode *inode, struct file *filp, |
| file | 194 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, |
| file | 878 | fs/hpfs/hpfs_fs.c | static int hpfs_file_read(struct inode *inode, struct file *filp, |
| file | 1364 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, void * dirent, |
| file | 1579 | fs/hpfs/hpfs_fs.c | static int hpfs_dir_read(struct inode *inode, struct file *filp, |
| file | 198 | fs/inode.c | struct file * file; |
| file | 202 | fs/inode.c | for (file = first_file, i=0; i<nr_files; i++, file=file->f_next) { |
| file | 203 | fs/inode.c | if (!file->f_count || !file->f_inode || |
| file | 204 | fs/inode.c | file->f_inode->i_dev != dev) |
| file | 206 | fs/inode.c | if (S_ISREG(file->f_inode->i_mode) && (file->f_mode & 2)) |
| file | 17 | fs/ioctl.c | static int file_ioctl(struct file *filp,unsigned int cmd,unsigned long arg) |
| file | 60 | fs/ioctl.c | struct file * filp; |
| file | 29 | fs/isofs/dir.c | static int isofs_readdir(struct inode *, struct file *, void *, filldir_t); |
| file | 111 | fs/isofs/dir.c | static int do_isofs_readdir(struct inode *inode, struct file *filp, |
| file | 268 | fs/isofs/dir.c | static int isofs_readdir(struct inode *inode, struct file *filp, |
| file | 36 | fs/isofs/file.c | static int isofs_file_read(struct inode *, struct file *, char *, int); |
| file | 123 | fs/isofs/file.c | static int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 71 | fs/locks.c | static int flock_make_lock(struct file *filp, struct file_lock *fl, |
| file | 73 | fs/locks.c | static int posix_make_lock(struct file *filp, struct file_lock *fl, |
| file | 80 | fs/locks.c | static int flock_lock_file(struct file *filp, struct file_lock *caller, |
| file | 82 | fs/locks.c | static int posix_lock_file(struct file *filp, struct file_lock *caller, |
| file | 101 | fs/locks.c | struct file *filp; |
| file | 122 | fs/locks.c | struct file *filp; |
| file | 164 | fs/locks.c | struct file *filp; |
| file | 206 | fs/locks.c | void locks_remove_locks(struct task_struct *task, struct file *filp) |
| file | 231 | fs/locks.c | static int posix_make_lock(struct file *filp, struct file_lock *fl, |
| file | 286 | fs/locks.c | static int flock_make_lock(struct file *filp, struct file_lock *fl, |
| file | 413 | fs/locks.c | static int flock_lock_file(struct file *filp, struct file_lock *caller, |
| file | 481 | fs/locks.c | static int posix_lock_file(struct file *filp, struct file_lock *caller, |
| file | 21 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 26 | fs/minix/dir.c | static int minix_readdir(struct inode *, struct file *, void *, filldir_t); |
| file | 62 | fs/minix/dir.c | static int minix_readdir(struct inode * inode, struct file * filp, |
| file | 32 | fs/minix/file.c | static int minix_file_read(struct inode *, struct file *, char *, int); |
| file | 33 | fs/minix/file.c | static int minix_file_write(struct inode *, struct file *, const char *, int); |
| file | 70 | fs/minix/file.c | static int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 193 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
| file | 147 | fs/minix/fsync.c | int minix_sync_file(struct inode * inode, struct file * file) |
| file | 26 | fs/msdos/dir.c | static int msdos_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
| file | 64 | fs/msdos/dir.c | struct file *filp, |
| file | 155 | fs/msdos/file.c | struct file *filp, |
| file | 269 | fs/msdos/file.c | struct file *filp, |
| file | 51 | fs/msdos/mmap.c | struct file filp; |
| file | 93 | fs/msdos/mmap.c | int msdos_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
| file | 25 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *, struct file *filp, char *buf, |
| file | 27 | fs/nfs/dir.c | static int nfs_readdir(struct inode *, struct file *, void *, filldir_t); |
| file | 76 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
| file | 92 | fs/nfs/dir.c | static int nfs_readdir(struct inode *inode, struct file *filp, |
| file | 315 | fs/nfs/dir.c | static void nfs_lookup_cache_refresh(struct inode *file, |
| file | 319 | fs/nfs/dir.c | int dev = file->i_dev; |
| file | 320 | fs/nfs/dir.c | int fileid = file->i_ino; |
| file | 33 | fs/nfs/file.c | static int nfs_file_read(struct inode *, struct file *, char *, int); |
| file | 34 | fs/nfs/file.c | static int nfs_file_write(struct inode *, struct file *, const char *, int); |
| file | 35 | fs/nfs/file.c | static int nfs_fsync(struct inode *, struct file *); |
| file | 93 | fs/nfs/file.c | static int nfs_fsync(struct inode *inode, struct file *file) |
| file | 98 | fs/nfs/file.c | static int nfs_file_read(struct inode *inode, struct file *file, char *buf, |
| file | 115 | fs/nfs/file.c | pos = file->f_pos; |
| file | 134 | fs/nfs/file.c | file->f_pos += count; |
| file | 147 | fs/nfs/file.c | file->f_pos = pos; |
| file | 168 | fs/nfs/file.c | file->f_pos = pos + hunk; |
| file | 173 | fs/nfs/file.c | file->f_pos = pos + hunk; |
| file | 193 | fs/nfs/file.c | static int nfs_file_write(struct inode *inode, struct file *file, const char *buf, |
| file | 218 | fs/nfs/file.c | pos = file->f_pos; |
| file | 219 | fs/nfs/file.c | if (file->f_flags & O_APPEND) |
| file | 237 | fs/nfs/file.c | file->f_pos = pos; |
| file | 36 | fs/nfs/inode.c | extern int close_fp(struct file *filp); |
| file | 61 | fs/nfs/inode.c | close_fp(sb->u.nfs_sb.s_server.file); |
| file | 82 | fs/nfs/inode.c | struct file *filp; |
| file | 119 | fs/nfs/inode.c | server->file = filp; |
| file | 98 | fs/nfs/mmap.c | int nfs_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
| file | 54 | fs/nfs/sock.c | struct file *file; |
| file | 63 | fs/nfs/sock.c | int (*select) (struct inode *, struct file *, int, select_table *); |
| file | 78 | fs/nfs/sock.c | file = server->file; |
| file | 79 | fs/nfs/sock.c | inode = file->f_inode; |
| file | 80 | fs/nfs/sock.c | select = file->f_op->select; |
| file | 117 | fs/nfs/sock.c | if (!select(inode, file, SEL_IN, &wait_table) |
| file | 118 | fs/nfs/sock.c | && !select(inode, file, SEL_IN, NULL)) { |
| file | 23 | fs/open.c | extern void locks_remove_locks(struct task_struct *, struct file *); |
| file | 48 | fs/open.c | struct file * file; |
| file | 54 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
| file | 56 | fs/open.c | if (!(inode = file->f_inode)) |
| file | 109 | fs/open.c | struct file * file; |
| file | 112 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
| file | 114 | fs/open.c | if (!(inode = file->f_inode)) |
| file | 116 | fs/open.c | if (S_ISDIR(inode->i_mode) || !(file->f_mode & 2)) |
| file | 273 | fs/open.c | struct file * file; |
| file | 276 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
| file | 278 | fs/open.c | if (!(inode = file->f_inode)) |
| file | 314 | fs/open.c | struct file * file; |
| file | 317 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
| file | 319 | fs/open.c | if (!(inode = file->f_inode)) |
| file | 365 | fs/open.c | struct file * file; |
| file | 368 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
| file | 370 | fs/open.c | if (!(inode = file->f_inode)) |
| file | 466 | fs/open.c | struct file * f; |
| file | 543 | fs/open.c | int close_fp(struct file *filp) |
| file | 569 | fs/open.c | struct file * filp; |
| file | 25 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 72 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, const char * buf, int count) |
| file | 119 | fs/pipe.c | static int pipe_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
| file | 124 | fs/pipe.c | static int bad_pipe_r(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 129 | fs/pipe.c | static int bad_pipe_w(struct inode * inode, struct file * filp, const char * buf, int count) |
| file | 134 | fs/pipe.c | static int pipe_ioctl(struct inode *pino, struct file * filp, |
| file | 150 | fs/pipe.c | static int pipe_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
| file | 176 | fs/pipe.c | static int fifo_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
| file | 203 | fs/pipe.c | static int connect_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 219 | fs/pipe.c | static int connect_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
| file | 247 | fs/pipe.c | static void pipe_read_release(struct inode * inode, struct file * filp) |
| file | 253 | fs/pipe.c | static void pipe_write_release(struct inode * inode, struct file * filp) |
| file | 259 | fs/pipe.c | static void pipe_rdwr_release(struct inode * inode, struct file * filp) |
| file | 382 | fs/pipe.c | struct file *f[2]; |
| file | 57 | fs/proc/array.c | static int read_core(struct inode * inode, struct file * file,char * buf, int count) |
| file | 59 | fs/proc/array.c | unsigned long p = file->f_pos, memsize; |
| file | 99 | fs/proc/array.c | file->f_pos += read; |
| file | 122 | fs/proc/array.c | static int read_profile(struct inode *inode, struct file *file, char *buf, int count) |
| file | 124 | fs/proc/array.c | unsigned long p = file->f_pos; |
| file | 144 | fs/proc/array.c | file->f_pos += read; |
| file | 149 | fs/proc/array.c | static int write_profile(struct inode * inode, struct file * file, const char * buf, int count) |
| file | 604 | fs/proc/array.c | static int read_maps (int pid, struct file * file, char * buf, int count) |
| file | 620 | fs/proc/array.c | lineno = file->f_pos >> MAPS_LINE_SHIFT; |
| file | 621 | fs/proc/array.c | column = file->f_pos & (MAPS_LINE_LENGTH-1); |
| file | 689 | fs/proc/array.c | file->f_pos = (lineno << MAPS_LINE_SHIFT) + column; |
| file | 783 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
| file | 802 | fs/proc/array.c | &start, file->f_pos, count); |
| file | 810 | fs/proc/array.c | file->f_pos += length; |
| file | 814 | fs/proc/array.c | if (file->f_pos >= length) { |
| file | 818 | fs/proc/array.c | if (count + file->f_pos > length) |
| file | 819 | fs/proc/array.c | count = length - file->f_pos; |
| file | 820 | fs/proc/array.c | end = count + file->f_pos; |
| file | 821 | fs/proc/array.c | memcpy_tofs(buf, (char *) page + file->f_pos, count); |
| file | 822 | fs/proc/array.c | file->f_pos = end; |
| file | 859 | fs/proc/array.c | static int arraylong_read (struct inode * inode, struct file * file, char * buf, int count) |
| file | 869 | fs/proc/array.c | return read_maps(pid, file, buf, count); |
| file | 16 | fs/proc/fd.c | static int proc_readfd(struct inode *, struct file *, void *, filldir_t); |
| file | 119 | fs/proc/fd.c | static int proc_readfd(struct inode * inode, struct file * filp, |
| file | 21 | fs/proc/kmsg.c | static int kmsg_open(struct inode * inode, struct file * file) |
| file | 26 | fs/proc/kmsg.c | static void kmsg_release(struct inode * inode, struct file * file) |
| file | 31 | fs/proc/kmsg.c | static int kmsg_read(struct inode * inode, struct file * file,char * buf, int count) |
| file | 36 | fs/proc/kmsg.c | static int kmsg_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
| file | 21 | fs/proc/link.c | static int proc_fd_dupf(struct inode * inode, struct file * f); |
| file | 66 | fs/proc/link.c | static int proc_fd_dupf(struct inode * inode, struct file * f) |
| file | 71 | fs/proc/link.c | struct file *new_f; |
| file | 53 | fs/proc/mem.c | static int mem_read(struct inode * inode, struct file * file,char * buf, int count) |
| file | 76 | fs/proc/mem.c | addr = file->f_pos; |
| file | 112 | fs/proc/mem.c | file->f_pos = addr; |
| file | 118 | fs/proc/mem.c | static int mem_write(struct inode * inode, struct file * file,char * buf, int count) |
| file | 131 | fs/proc/mem.c | addr = file->f_pos; |
| file | 176 | fs/proc/mem.c | file->f_pos = addr; |
| file | 186 | fs/proc/mem.c | static int mem_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
| file | 190 | fs/proc/mem.c | file->f_pos = offset; |
| file | 191 | fs/proc/mem.c | return file->f_pos; |
| file | 193 | fs/proc/mem.c | file->f_pos += offset; |
| file | 194 | fs/proc/mem.c | return file->f_pos; |
| file | 203 | fs/proc/mem.c | int mem_mmap(struct inode * inode, struct file * file, |
| file | 41 | fs/proc/net.c | static int proc_readnet(struct inode * inode, struct file * file, |
| file | 63 | fs/proc/net.c | file->f_pos, |
| file | 65 | fs/proc/net.c | (file->f_flags & O_ACCMODE) == O_RDWR); |
| file | 79 | fs/proc/net.c | file->f_pos += length; /* Move down the file */ |
| file | 22 | fs/proc/root.c | static int proc_root_readdir(struct inode *, struct file *, void *, filldir_t); |
| file | 419 | fs/proc/root.c | int proc_readdir(struct inode * inode, struct file * filp, |
| file | 471 | fs/proc/root.c | static int proc_root_readdir(struct inode * inode, struct file * filp, |
| file | 33 | fs/proc/scsi.c | static int proc_readscsi(struct inode * inode, struct file * file, |
| file | 35 | fs/proc/scsi.c | static int proc_writescsi(struct inode * inode, struct file * file, |
| file | 38 | fs/proc/scsi.c | static int proc_scsilseek(struct inode *, struct file *, off_t, int); |
| file | 193 | fs/proc/scsi.c | static int proc_readscsi(struct inode * inode, struct file * file, |
| file | 217 | fs/proc/scsi.c | file->f_pos, thistime, 0); |
| file | 219 | fs/proc/scsi.c | length = get_not_present_info(page, &start, file->f_pos, thistime); |
| file | 238 | fs/proc/scsi.c | file->f_pos += length; /* Move down the file */ |
| file | 252 | fs/proc/scsi.c | static int proc_writescsi(struct inode * inode, struct file * file, |
| file | 278 | fs/proc/scsi.c | static int proc_scsilseek(struct inode * inode, struct file * file, |
| file | 283 | fs/proc/scsi.c | file->f_pos = offset; |
| file | 284 | fs/proc/scsi.c | return(file->f_pos); |
| file | 286 | fs/proc/scsi.c | file->f_pos += offset; |
| file | 287 | fs/proc/scsi.c | return(file->f_pos); |
| file | 291 | fs/proc/scsi.c | proc_readscsi(inode, file, 0, -1); /* seek in it */ |
| file | 292 | fs/proc/scsi.c | return(file->f_pos); |
| file | 18 | fs/read_write.c | struct file * file; |
| file | 21 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
| file | 25 | fs/read_write.c | if (file->f_op && file->f_op->lseek) |
| file | 26 | fs/read_write.c | return file->f_op->lseek(file->f_inode,file,offset,origin); |
| file | 34 | fs/read_write.c | tmp = file->f_pos + offset; |
| file | 37 | fs/read_write.c | if (!file->f_inode) |
| file | 39 | fs/read_write.c | tmp = file->f_inode->i_size + offset; |
| file | 44 | fs/read_write.c | if (tmp != file->f_pos) { |
| file | 45 | fs/read_write.c | file->f_pos = tmp; |
| file | 46 | fs/read_write.c | file->f_reada = 0; |
| file | 47 | fs/read_write.c | file->f_version = ++event; |
| file | 49 | fs/read_write.c | return file->f_pos; |
| file | 56 | fs/read_write.c | struct file * file; |
| file | 61 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
| file | 71 | fs/read_write.c | if (file->f_op && file->f_op->lseek) { |
| file | 74 | fs/read_write.c | return file->f_op->lseek(file->f_inode,file,offset,origin); |
| file | 82 | fs/read_write.c | tmp = file->f_pos + offset; |
| file | 85 | fs/read_write.c | if (!file->f_inode) |
| file | 87 | fs/read_write.c | tmp = file->f_inode->i_size + offset; |
| file | 92 | fs/read_write.c | if (tmp != file->f_pos) { |
| file | 93 | fs/read_write.c | file->f_pos = tmp; |
| file | 94 | fs/read_write.c | file->f_reada = 0; |
| file | 95 | fs/read_write.c | file->f_version = ++event; |
| file | 97 | fs/read_write.c | memcpy_tofs(result, &file->f_pos, sizeof(loff_t)); |
| file | 104 | fs/read_write.c | struct file * file; |
| file | 107 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
| file | 109 | fs/read_write.c | if (!(file->f_mode & 1)) |
| file | 111 | fs/read_write.c | if (!file->f_op || !file->f_op->read) |
| file | 118 | fs/read_write.c | return file->f_op->read(inode,file,buf,count); |
| file | 124 | fs/read_write.c | struct file * file; |
| file | 128 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
| file | 130 | fs/read_write.c | if (!(file->f_mode & 2)) |
| file | 132 | fs/read_write.c | if (!file->f_op || !file->f_op->write) |
| file | 139 | fs/read_write.c | written = file->f_op->write(inode,file,buf,count); |
| file | 59 | fs/readdir.c | struct file * file; |
| file | 62 | fs/readdir.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
| file | 64 | fs/readdir.c | if (!file->f_op || !file->f_op->readdir) |
| file | 71 | fs/readdir.c | error = file->f_op->readdir(file->f_inode, file, &buf, fillonedir); |
| file | 121 | fs/readdir.c | struct file * file; |
| file | 126 | fs/readdir.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
| file | 128 | fs/readdir.c | if (!file->f_op || !file->f_op->readdir) |
| file | 137 | fs/readdir.c | error = file->f_op->readdir(file->f_inode, file, &buf, filldir); |
| file | 143 | fs/readdir.c | put_user(file->f_pos, &lastdirent->d_off); |
| file | 70 | fs/select.c | static int check(int flag, select_table * wait, struct file * file) |
| file | 74 | fs/select.c | int (*select) (struct inode *, struct file *, int, select_table *); |
| file | 76 | fs/select.c | inode = file->f_inode; |
| file | 77 | fs/select.c | if ((fops = file->f_op) && (select = fops->select)) |
| file | 78 | fs/select.c | return select(inode, file, flag, wait) |
| file | 79 | fs/select.c | || (wait && select(inode, file, flag, NULL)); |
| file | 28 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count); |
| file | 31 | fs/smbfs/dir.c | smb_readdir(struct inode *inode, struct file *filp, |
| file | 125 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count) |
| file | 162 | fs/smbfs/dir.c | smb_readdir(struct inode *inode, struct file *filp, |
| file | 27 | fs/smbfs/file.c | smb_fsync(struct inode *inode, struct file *file) |
| file | 69 | fs/smbfs/file.c | smb_file_read(struct inode *inode, struct file *file, char *buf, int count) |
| file | 91 | fs/smbfs/file.c | pos = file->f_pos; |
| file | 135 | fs/smbfs/file.c | file->f_pos = pos; |
| file | 146 | fs/smbfs/file.c | smb_file_write(struct inode *inode, struct file *file, const char *buf, int count) |
| file | 171 | fs/smbfs/file.c | pos = file->f_pos; |
| file | 173 | fs/smbfs/file.c | if (file->f_flags & O_APPEND) |
| file | 220 | fs/smbfs/file.c | file->f_pos = pos; |
| file | 32 | fs/smbfs/inode.c | extern int close_fp(struct file *filp); |
| file | 186 | fs/smbfs/inode.c | struct file *filp; |
| file | 25 | fs/smbfs/ioctl.c | smb_ioctl (struct inode * inode, struct file * filp, |
| file | 106 | fs/smbfs/mmap.c | smb_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
| file | 79 | fs/smbfs/sock.c | struct file *file; |
| file | 85 | fs/smbfs/sock.c | || ((file = server->sock_file) == NULL) |
| file | 86 | fs/smbfs/sock.c | || ((inode = file->f_inode) == NULL) |
| file | 127 | fs/smbfs/sock.c | struct file *file; |
| file | 133 | fs/smbfs/sock.c | || ((file = server->sock_file) == NULL) |
| file | 134 | fs/smbfs/sock.c | || ((inode = file->f_inode) == NULL) |
| file | 407 | fs/smbfs/sock.c | struct file *file; |
| file | 412 | fs/smbfs/sock.c | if ((file = server->sock_file) == NULL) |
| file | 414 | fs/smbfs/sock.c | if ((inode = file->f_inode) == NULL) |
| file | 163 | fs/stat.c | struct file * f; |
| file | 178 | fs/stat.c | struct file * f; |
| file | 638 | fs/super.c | struct file dummy; /* allows read-write or read-only flag */ |
| file | 676 | fs/super.c | struct file filp; |
| file | 28 | fs/sysv/dir.c | static int sysv_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 33 | fs/sysv/dir.c | static int sysv_readdir(struct inode *, struct file *, void *, filldir_t); |
| file | 69 | fs/sysv/dir.c | static int sysv_readdir(struct inode * inode, struct file * filp, |
| file | 39 | fs/sysv/file.c | static int sysv_file_write(struct inode *, struct file *, const char *, int); |
| file | 76 | fs/sysv/file.c | int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 203 | fs/sysv/file.c | static int sysv_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
| file | 185 | fs/sysv/fsync.c | int sysv_sync_file(struct inode * inode, struct file * file) |
| file | 34 | fs/umsdos/dir.c | int UMSDOS_dir_read(struct inode *inode,struct file *filp,char *buf, |
| file | 85 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
| file | 267 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
| file | 486 | fs/umsdos/dir.c | struct file filp; |
| file | 500 | fs/umsdos/dir.c | struct file filp; |
| file | 753 | fs/umsdos/dir.c | struct file filp; |
| file | 30 | fs/umsdos/emd.c | struct file *filp, |
| file | 46 | fs/umsdos/emd.c | struct file *filp, |
| file | 67 | fs/umsdos/emd.c | struct file *filp, |
| file | 83 | fs/umsdos/emd.c | struct file *filp, |
| file | 145 | fs/umsdos/emd.c | struct file *filp, |
| file | 171 | fs/umsdos/emd.c | struct file filp; |
| file | 211 | fs/umsdos/emd.c | struct file filp; |
| file | 451 | fs/umsdos/emd.c | struct file filp; |
| file | 34 | fs/umsdos/file.c | struct file *filp, |
| file | 51 | fs/umsdos/file.c | struct file *filp, |
| file | 320 | fs/umsdos/inode.c | struct file filp; |
| file | 60 | fs/umsdos/ioctl.c | struct file *filp, |
| file | 449 | fs/umsdos/namei.c | struct file filp; |
| file | 69 | fs/umsdos/rdir.c | struct file *filp, |
| file | 34 | fs/umsdos/symlink.c | int (*msdos_read)(struct inode *, struct file *, char *, int), |
| file | 38 | fs/umsdos/symlink.c | struct file filp; |
| file | 26 | fs/xiafs/dir.c | static int xiafs_dir_read(struct inode *, struct file *, char *, int); |
| file | 27 | fs/xiafs/dir.c | static int xiafs_readdir(struct inode *, struct file *, void *, filldir_t); |
| file | 64 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
| file | 69 | fs/xiafs/dir.c | static int xiafs_readdir(struct inode * inode, struct file * filp, |
| file | 35 | fs/xiafs/file.c | static int xiafs_file_read(struct inode *, struct file *, char *, int); |
| file | 36 | fs/xiafs/file.c | static int xiafs_file_write(struct inode *, struct file *, const char *, int); |
| file | 74 | fs/xiafs/file.c | xiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
| file | 194 | fs/xiafs/file.c | xiafs_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
| file | 148 | fs/xiafs/fsync.c | int xiafs_sync_file(struct inode * inode, struct file * file) |
| file | 233 | include/asm-alpha/unistd.h | static inline int execve(char * file, char ** argvp, char ** envp) |
| file | 239 | include/asm-alpha/unistd.h | i = do_execve(file, argvp, envp, ®s); |
| file | 260 | include/asm-i386/unistd.h | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
| file | 261 | include/asm-i386/unistd.h | static inline _syscall3(int,open,const char *,file,int,flag,int,mode) |
| file | 162 | include/asm-sparc/unistd.h | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
| file | 163 | include/asm-sparc/unistd.h | static inline _syscall3(int,open,const char *,file,int,flag,int,mode) |
| file | 423 | include/linux/ext2_fs.h | extern int ext2_read (struct inode *, struct file *, char *, int); |
| file | 424 | include/linux/ext2_fs.h | extern int ext2_write (struct inode *, struct file *, char *, int); |
| file | 427 | include/linux/ext2_fs.h | extern int ext2_sync_file (struct inode *, struct file *); |
| file | 449 | include/linux/ext2_fs.h | extern int ext2_ioctl (struct inode *, struct file *, unsigned int, |
| file | 453 | include/linux/ext2_fs.h | extern void ext2_release (struct inode *, struct file *); |
| file | 63 | include/linux/ext_fs.h | extern int ext_open(struct inode * inode, struct file * filp); |
| file | 64 | include/linux/ext_fs.h | extern void ext_release(struct inode * inode, struct file * filp); |
| file | 99 | include/linux/ext_fs.h | extern int ext_sync_file(struct inode *, struct file *); |
| file | 101 | include/linux/ext_fs.h | extern int ext_lseek(struct inode *, struct file *, off_t, int); |
| file | 102 | include/linux/ext_fs.h | extern int ext_read(struct inode *, struct file *, char *, int); |
| file | 103 | include/linux/ext_fs.h | extern int ext_write(struct inode *, struct file *, char *, int); |
| file | 57 | include/linux/fs.h | #define NIL_FILP ((struct file *)0) |
| file | 258 | include/linux/fs.h | struct file *f_next, *f_prev; |
| file | 273 | include/linux/fs.h | struct file *fl_file; |
| file | 283 | include/linux/fs.h | struct file *fa_file; |
| file | 336 | include/linux/fs.h | int (*lseek) (struct inode *, struct file *, off_t, int); |
| file | 337 | include/linux/fs.h | int (*read) (struct inode *, struct file *, char *, int); |
| file | 338 | include/linux/fs.h | int (*write) (struct inode *, struct file *, const char *, int); |
| file | 339 | include/linux/fs.h | int (*readdir) (struct inode *, struct file *, void *, filldir_t); |
| file | 340 | include/linux/fs.h | int (*select) (struct inode *, struct file *, int, select_table *); |
| file | 341 | include/linux/fs.h | int (*ioctl) (struct inode *, struct file *, unsigned int, unsigned long); |
| file | 342 | include/linux/fs.h | int (*mmap) (struct inode *, struct file *, struct vm_area_struct *); |
| file | 343 | include/linux/fs.h | int (*open) (struct inode *, struct file *); |
| file | 344 | include/linux/fs.h | void (*release) (struct inode *, struct file *); |
| file | 345 | include/linux/fs.h | int (*fsync) (struct inode *, struct file *); |
| file | 346 | include/linux/fs.h | int (*fasync) (struct inode *, struct file *, int); |
| file | 401 | include/linux/fs.h | extern int blkdev_open(struct inode * inode, struct file * filp); |
| file | 407 | include/linux/fs.h | extern int chrdev_open(struct inode * inode, struct file * filp); |
| file | 427 | include/linux/fs.h | extern struct file *first_file; |
| file | 492 | include/linux/fs.h | extern struct file * get_empty_filp(void); |
| file | 513 | include/linux/fs.h | extern int char_read(struct inode *, struct file *, char *, int); |
| file | 514 | include/linux/fs.h | extern int block_read(struct inode *, struct file *, char *, int); |
| file | 517 | include/linux/fs.h | extern int char_write(struct inode *, struct file *, const char *, int); |
| file | 518 | include/linux/fs.h | extern int block_write(struct inode *, struct file *, const char *, int); |
| file | 520 | include/linux/fs.h | extern int generic_mmap(struct inode *, struct file *, struct vm_area_struct *); |
| file | 522 | include/linux/fs.h | extern int block_fsync(struct inode *, struct file *); |
| file | 523 | include/linux/fs.h | extern int file_fsync(struct inode *, struct file *); |
| file | 167 | include/linux/iso_fs.h | extern int isofs_open(struct inode * inode, struct file * filp); |
| file | 168 | include/linux/iso_fs.h | extern void isofs_release(struct inode * inode, struct file * filp); |
| file | 182 | include/linux/iso_fs.h | extern int isofs_lseek(struct inode *, struct file *, off_t, int); |
| file | 183 | include/linux/iso_fs.h | extern int isofs_read(struct inode *, struct file *, char *, int); |
| file | 119 | include/linux/minix_fs.h | extern int minix_sync_file(struct inode *, struct file *); |
| file | 210 | include/linux/mm.h | extern unsigned long do_mmap(struct file * file, unsigned long addr, unsigned long len, |
| file | 171 | include/linux/msdos_fs.h | extern int msdos_readdir (struct inode *inode, struct file *filp, |
| file | 177 | include/linux/msdos_fs.h | extern int msdos_file_read(struct inode *, struct file *, char *, int); |
| file | 178 | include/linux/msdos_fs.h | extern int msdos_file_write(struct inode *, struct file *, const char *, int); |
| file | 184 | include/linux/msdos_fs.h | extern int msdos_mmap(struct inode *, struct file *, struct vm_area_struct *); |
| file | 117 | include/linux/nfs_fs.h | extern int nfs_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma); |
| file | 7 | include/linux/nfs_fs_sb.h | struct file *file; |
| file | 186 | include/linux/proc_fs.h | extern int proc_readdir(struct inode *, struct file *, void *, filldir_t); |
| file | 95 | include/linux/sched.h | struct file * fd[NR_OPEN]; |
| file | 115 | include/linux/smb_fs.h | int smb_ioctl (struct inode * inode, struct file * filp, |
| file | 180 | include/linux/smb_fs.h | int smb_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma); |
| file | 22 | include/linux/smb_fs_sb.h | struct file * sock_file; /* The socket we transfer |
| file | 388 | include/linux/sysv_fs.h | extern int sysv_file_read(struct inode *, struct file *, char *, int); |
| file | 400 | include/linux/sysv_fs.h | extern int sysv_sync_file(struct inode *, struct file *); |
| file | 401 | include/linux/sysv_fs.h | extern int sysv_mmap(struct inode *, struct file *, struct vm_area_struct *); |
| file | 304 | include/linux/tty.h | extern void tty_unhangup(struct file *filp); |
| file | 305 | include/linux/tty.h | extern int tty_hung_up_p(struct file * filp); |
| file | 313 | include/linux/tty.h | extern int n_tty_ioctl(struct tty_struct * tty, struct file * file, |
| file | 318 | include/linux/tty.h | extern int rs_open(struct tty_struct * tty, struct file * filp); |
| file | 322 | include/linux/tty.h | extern int pty_open(struct tty_struct * tty, struct file * filp); |
| file | 326 | include/linux/tty.h | extern int con_open(struct tty_struct * tty, struct file * filp); |
| file | 331 | include/linux/tty.h | extern int vt_ioctl(struct tty_struct *tty, struct file * file, |
| file | 124 | include/linux/tty_driver.h | int (*open)(struct tty_struct * tty, struct file * filp); |
| file | 125 | include/linux/tty_driver.h | void (*close)(struct tty_struct * tty, struct file * filp); |
| file | 132 | include/linux/tty_driver.h | int (*ioctl)(struct tty_struct *tty, struct file * file, |
| file | 22 | include/linux/tty_ldisc.h | int (*read)(struct tty_struct * tty, struct file * file, |
| file | 24 | include/linux/tty_ldisc.h | int (*write)(struct tty_struct * tty, struct file * file, |
| file | 26 | include/linux/tty_ldisc.h | int (*ioctl)(struct tty_struct * tty, struct file * file, |
| file | 30 | include/linux/tty_ldisc.h | struct file * file, int sel_type, |
| file | 112 | include/linux/xd.h | static int xd_open (struct inode *inode,struct file *file); |
| file | 114 | include/linux/xd.h | static int xd_ioctl (struct inode *inode,struct file *file,unsigned int cmd,unsigned long arg); |
| file | 115 | include/linux/xd.h | static void xd_release (struct inode *inode,struct file *file); |
| file | 103 | include/linux/xia_fs.h | extern int xiafs_sync_file(struct inode *, struct file *); |
| file | 165 | kernel/fork.c | struct file * f = u->files.fd[i]; |
| file | 99 | kernel/ksyms.c | extern int close_fp(struct file *filp); |
| file | 10 | lib/execve.c | _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
| file | 73 | mm/filemap.c | struct file file; |
| file | 89 | mm/filemap.c | file.f_op = inode->i_op->default_file_ops; |
| file | 90 | mm/filemap.c | if (!file.f_op->write) |
| file | 102 | mm/filemap.c | file.f_mode = 3; |
| file | 103 | mm/filemap.c | file.f_flags = 0; |
| file | 104 | mm/filemap.c | file.f_count = 1; |
| file | 105 | mm/filemap.c | file.f_inode = inode; |
| file | 106 | mm/filemap.c | file.f_pos = offset; |
| file | 107 | mm/filemap.c | file.f_reada = 0; |
| file | 110 | mm/filemap.c | result = file.f_op->write(inode, &file, (const char *) page, size); |
| file | 328 | mm/filemap.c | int generic_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
| file | 20 | mm/mmap.c | static int anon_map(struct inode *, struct file *, struct vm_area_struct *); |
| file | 44 | mm/mmap.c | unsigned long do_mmap(struct file * file, unsigned long addr, unsigned long len, |
| file | 66 | mm/mmap.c | if (file != NULL) { |
| file | 69 | mm/mmap.c | if ((prot & PROT_WRITE) && !(file->f_mode & 2)) |
| file | 73 | mm/mmap.c | if (!(file->f_mode & 1)) |
| file | 81 | mm/mmap.c | if (file->f_inode->i_wcount > 0) |
| file | 108 | mm/mmap.c | if (file && (!file->f_op || !file->f_op->mmap)) |
| file | 122 | mm/mmap.c | if (file) { |
| file | 123 | mm/mmap.c | if (file->f_mode & 1) |
| file | 137 | mm/mmap.c | if (!(file->f_mode & 2)) |
| file | 150 | mm/mmap.c | if (file) |
| file | 151 | mm/mmap.c | error = file->f_op->mmap(file->f_inode, file, vma); |
| file | 957 | mm/mmap.c | static int anon_map(struct inode *ino, struct file * file, struct vm_area_struct * vma) |
| file | 1000 | mm/swap.c | struct file filp; |
| file | 1081 | mm/swap.c | struct file filp; |
| file | 71 | net/core/skbuff.c | int skb_check(struct sk_buff *skb, int head, int line, char *file) |
| file | 76 | net/core/skbuff.c | file,line); |
| file | 86 | net/core/skbuff.c | file,line); |
| file | 92 | net/core/skbuff.c | file,line); |
| file | 100 | net/core/skbuff.c | if (skb_check(skb2, 0, line, file) < 0) { |
| file | 114 | net/core/skbuff.c | file,line); |
| file | 120 | net/core/skbuff.c | file,line); |
| file | 128 | net/core/skbuff.c | file,line); |
| file | 135 | net/core/skbuff.c | printk("File: %s Line %d, passed a non skb!\n", file,line); |
| file | 142 | net/core/skbuff.c | printk("File: %s Line %d, head > data !\n", file,line); |
| file | 149 | net/core/skbuff.c | printk("File: %s Line %d, tail > end!\n", file,line); |
| file | 156 | net/core/skbuff.c | printk("File: %s Line %d, data > tail!\n", file,line); |
| file | 163 | net/core/skbuff.c | printk("File: %s Line %d, wrong length\n", file,line); |
| file | 170 | net/core/skbuff.c | printk("File: %s Line %d, control overrun\n", file,line); |
| file | 70 | net/socket.c | static int sock_lseek(struct inode *inode, struct file *file, off_t offset, |
| file | 72 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
| file | 74 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, const char *buf, |
| file | 77 | net/socket.c | static void sock_close(struct inode *inode, struct file *file); |
| file | 78 | net/socket.c | static int sock_select(struct inode *inode, struct file *file, int which, select_table *seltable); |
| file | 79 | net/socket.c | static int sock_ioctl(struct inode *inode, struct file *file, |
| file | 81 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on); |
| file | 162 | net/socket.c | struct file *file; |
| file | 168 | net/socket.c | file = get_empty_filp(); |
| file | 169 | net/socket.c | if (!file) |
| file | 177 | net/socket.c | file->f_count = 0; |
| file | 182 | net/socket.c | current->files->fd[fd] = file; |
| file | 183 | net/socket.c | file->f_op = &socket_file_ops; |
| file | 184 | net/socket.c | file->f_mode = 3; |
| file | 185 | net/socket.c | file->f_flags = O_RDWR; |
| file | 186 | net/socket.c | file->f_count = 1; |
| file | 187 | net/socket.c | file->f_inode = inode; |
| file | 190 | net/socket.c | file->f_pos = 0; |
| file | 210 | net/socket.c | static inline struct socket *sockfd_lookup(int fd, struct file **pfile) |
| file | 212 | net/socket.c | struct file *file; |
| file | 215 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
| file | 218 | net/socket.c | inode = file->f_inode; |
| file | 223 | net/socket.c | *pfile = file; |
| file | 308 | net/socket.c | static int sock_lseek(struct inode *inode, struct file *file, off_t offset, int whence) |
| file | 318 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *ubuf, int size) |
| file | 333 | net/socket.c | return(sock->ops->read(sock, ubuf, size, (file->f_flags & O_NONBLOCK))); |
| file | 341 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, const char *ubuf, int size) |
| file | 358 | net/socket.c | return(sock->ops->write(sock, ubuf, size,(file->f_flags & O_NONBLOCK))); |
| file | 366 | net/socket.c | int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
| file | 375 | net/socket.c | static int sock_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
| file | 391 | net/socket.c | void sock_close(struct inode *inode, struct file *filp) |
| file | 407 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on) |
| file | 755 | net/socket.c | struct file *file; |
| file | 761 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
| file | 763 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
| file | 788 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
| file | 818 | net/socket.c | struct file *file; |
| file | 823 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
| file | 825 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
| file | 853 | net/socket.c | i = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags); |
| file | 919 | net/socket.c | struct file *file; |
| file | 922 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
| file | 932 | net/socket.c | return(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags)); |
| file | 945 | net/socket.c | struct file *file; |
| file | 949 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
| file | 963 | net/socket.c | return(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK), |
| file | 979 | net/socket.c | struct file *file; |
| file | 982 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
| file | 996 | net/socket.c | return(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags)); |
| file | 1009 | net/socket.c | struct file *file; |
| file | 1013 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
| file | 1026 | net/socket.c | len=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK), |
| file | 1045 | net/socket.c | struct file *file; |
| file | 1047 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
| file | 1063 | net/socket.c | struct file *file; |
| file | 1065 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
| file | 1083 | net/socket.c | struct file *file; |
| file | 1085 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
| file | 1100 | net/socket.c | struct file *file; |
| file | 1107 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
| file | 1125 | net/socket.c | return sock->ops->sendmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags); |
| file | 1135 | net/socket.c | struct file *file; |
| file | 1144 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
| file | 1162 | net/socket.c | len=sock->ops->recvmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags, &addr_len); |
| file | 1178 | net/socket.c | int sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |