tag | line | file | source code |
file | 40 | arch/i386/ibcs/binfmt_coff.c | struct file *fp); |
file | 126 | arch/i386/ibcs/binfmt_coff.c | struct file *fp = NULL; /* Pointer to the file at "fd" */ |
file | 622 | arch/i386/ibcs/binfmt_coff.c | COFF_SCNHDR * sect, struct file *fp) |
file | 753 | arch/i386/ibcs/binfmt_coff.c | struct file *file; /* Pointer to the file table */ |
file | 759 | arch/i386/ibcs/binfmt_coff.c | file = current->files->fd[fd]; |
file | 760 | arch/i386/ibcs/binfmt_coff.c | bprm->inode = file->f_inode; /* The only item _really_ needed */ |
file | 130 | arch/i386/ibcs/binfmt_elf.c | struct file * file; |
file | 172 | arch/i386/ibcs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
file | 177 | arch/i386/ibcs/binfmt_elf.c | error = do_mmap(file, |
file | 266 | arch/i386/ibcs/binfmt_elf.c | struct file * file; |
file | 329 | arch/i386/ibcs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
file | 477 | arch/i386/ibcs/binfmt_elf.c | error = do_mmap(file, |
file | 566 | arch/i386/ibcs/binfmt_elf.c | struct file * file; |
file | 578 | arch/i386/ibcs/binfmt_elf.c | file = current->files->fd[fd]; |
file | 579 | arch/i386/ibcs/binfmt_elf.c | inode = file->f_inode; |
file | 583 | arch/i386/ibcs/binfmt_elf.c | if (file->f_op->read(inode, file, (char *) &elf_ex, sizeof(elf_ex)) != sizeof(elf_ex)) { |
file | 627 | arch/i386/ibcs/binfmt_elf.c | error = do_mmap(file, |
file | 450 | drivers/block/aztcd.c | static int aztcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
file | 1163 | drivers/block/aztcd.c | int aztcd_open(struct inode *ip, struct file *fp) |
file | 1201 | drivers/block/aztcd.c | static void aztcd_release(struct inode * inode, struct file * file) |
file | 1205 | drivers/block/aztcd.c | printk("inode: %p, inode->i_rdev: %x file: %p\n",inode,inode->i_rdev,file); |
file | 223 | drivers/block/cdu31a.c | static int scd_open(struct inode *inode, struct file *filp); |
file | 2172 | drivers/block/cdu31a.c | struct file *file, |
file | 2541 | drivers/block/cdu31a.c | struct file *filp) |
file | 2659 | drivers/block/cdu31a.c | struct file *filp) |
file | 2667 | drivers/block/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
file | 2892 | drivers/block/floppy.c | static int floppy_read(struct inode * inode, struct file * filp, |
file | 2903 | drivers/block/floppy.c | static int floppy_write(struct inode * inode, struct file * filp, |
file | 2924 | drivers/block/floppy.c | static void floppy_release(struct inode * inode, struct file * filp) |
file | 2953 | drivers/block/floppy.c | static int floppy_open(struct inode * inode, struct file * filp) |
file | 784 | drivers/block/hd.c | static int hd_ioctl(struct inode * inode, struct file * file, |
file | 896 | drivers/block/hd.c | static int hd_open(struct inode * inode, struct file * filp) |
file | 911 | drivers/block/hd.c | static void hd_release(struct inode * inode, struct file * file) |
file | 1315 | drivers/block/ide-cd.c | struct file *file, unsigned int cmd, unsigned long arg) |
file | 1568 | drivers/block/ide-cd.c | cdrom_open (struct inode *ip, struct file *fp, ide_dev_t *dev) |
file | 1589 | drivers/block/ide-cd.c | cdrom_release (struct inode *inode, struct file *file, ide_dev_t *dev) |
file | 1251 | drivers/block/ide.c | static int ide_open(struct inode * inode, struct file * filp) |
file | 1275 | drivers/block/ide.c | static void ide_release(struct inode * inode, struct file * file) |
file | 1284 | drivers/block/ide.c | cdrom_release (inode, file, dev); |
file | 1396 | drivers/block/ide.c | static int ide_ioctl (struct inode *inode, struct file *file, |
file | 1528 | drivers/block/ide.c | return ide_cdrom_ioctl(dev, inode, file, cmd, arg); |
file | 240 | drivers/block/mcd.c | mcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, |
file | 1027 | drivers/block/mcd.c | mcd_open(struct inode *ip, struct file *fp) |
file | 1066 | drivers/block/mcd.c | mcd_release(struct inode * inode, struct file * file) |
file | 208 | drivers/block/ramdisk.c | struct file filp; |
file | 3210 | drivers/block/sbpcd.c | static int sbpcd_ioctl(struct inode *inode, struct file *file, u_int cmd, |
file | 4103 | drivers/block/sbpcd.c | static int sbpcd_open(struct inode *ip, struct file *fp) |
file | 4174 | drivers/block/sbpcd.c | static void sbpcd_release(struct inode * ip, struct file * file) |
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, 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, 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 | 2253 | drivers/char/console.c | int con_open(struct tty_struct *tty, struct file * filp) |
file | 1896 | drivers/char/cyclades.c | cy_ioctl(struct tty_struct *tty, struct file * file, |
file | 2011 | drivers/char/cyclades.c | cy_close(struct tty_struct * tty, struct file * filp) |
file | 2135 | drivers/char/cyclades.c | block_til_ready(struct tty_struct *tty, struct file * filp, |
file | 2285 | drivers/char/cyclades.c | cy_open(struct tty_struct *tty, struct file * filp) |
file | 169 | drivers/char/lp.c | static int lp_write_interrupt(struct inode * inode, struct file * file, char * buf, int count) |
file | 234 | drivers/char/lp.c | static int lp_write_polled(struct inode * inode, struct file * file, |
file | 308 | drivers/char/lp.c | static int lp_write(struct inode * inode, struct file * file, char * buf, int count) |
file | 311 | drivers/char/lp.c | return lp_write_interrupt(inode, file, buf, count); |
file | 313 | drivers/char/lp.c | return lp_write_polled(inode, file, buf, count); |
file | 316 | drivers/char/lp.c | static int lp_lseek(struct inode * inode, struct file * file, |
file | 322 | drivers/char/lp.c | static int lp_open(struct inode * inode, struct file * file) |
file | 342 | drivers/char/lp.c | if ((LP_F(minor) & LP_ABORTOPEN) && !(file->f_flags & O_NONBLOCK)) { |
file | 380 | drivers/char/lp.c | static void lp_release(struct inode * inode, struct file * file) |
file | 396 | drivers/char/lp.c | static int lp_ioctl(struct inode *inode, struct file *file, |
file | 27 | drivers/char/mem.c | static int read_ram(struct inode * inode, struct file * file,char * buf, int count) |
file | 32 | drivers/char/mem.c | static int write_ram(struct inode * inode, struct file * file,char * buf, int count) |
file | 37 | drivers/char/mem.c | static int read_mem(struct inode * inode, struct file * file,char * buf, int count) |
file | 39 | drivers/char/mem.c | unsigned long p = file->f_pos; |
file | 58 | drivers/char/mem.c | file->f_pos += read; |
file | 62 | drivers/char/mem.c | static int write_mem(struct inode * inode, struct file * file,char * buf, int count) |
file | 64 | drivers/char/mem.c | unsigned long p = file->f_pos; |
file | 83 | drivers/char/mem.c | file->f_pos += written; |
file | 87 | drivers/char/mem.c | static int mmap_mem(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 108 | drivers/char/mem.c | static int read_kmem(struct inode *inode, struct file *file, char *buf, int count) |
file | 112 | drivers/char/mem.c | read1 = read_mem(inode, file, buf, count); |
file | 115 | drivers/char/mem.c | read2 = vread(buf + read1, (char *) ((unsigned long) file->f_pos), count - read1); |
file | 118 | drivers/char/mem.c | file->f_pos += read2; |
file | 122 | drivers/char/mem.c | static int read_port(struct inode * inode,struct file * file,char * buf, int count) |
file | 124 | drivers/char/mem.c | unsigned int i = file->f_pos; |
file | 132 | drivers/char/mem.c | file->f_pos = i; |
file | 136 | drivers/char/mem.c | static int write_port(struct inode * inode,struct file * file,char * buf, int count) |
file | 138 | drivers/char/mem.c | unsigned int i = file->f_pos; |
file | 146 | drivers/char/mem.c | file->f_pos = i; |
file | 150 | drivers/char/mem.c | static int read_null(struct inode * node,struct file * file,char * buf,int count) |
file | 155 | drivers/char/mem.c | static int write_null(struct inode * inode,struct file * file,char * buf, int count) |
file | 160 | drivers/char/mem.c | static int read_zero(struct inode * node,struct file * file,char * buf,int count) |
file | 171 | drivers/char/mem.c | static int mmap_zero(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 180 | drivers/char/mem.c | static int read_full(struct inode * node,struct file * file,char * buf,int count) |
file | 185 | drivers/char/mem.c | static int write_full(struct inode * inode,struct file * file,char * buf, int count) |
file | 195 | drivers/char/mem.c | static int null_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 197 | drivers/char/mem.c | return file->f_pos=0; |
file | 207 | drivers/char/mem.c | static int memory_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 211 | drivers/char/mem.c | file->f_pos = offset; |
file | 212 | drivers/char/mem.c | return file->f_pos; |
file | 214 | drivers/char/mem.c | file->f_pos += offset; |
file | 215 | drivers/char/mem.c | return file->f_pos; |
file | 219 | drivers/char/mem.c | if (file->f_pos < 0) |
file | 221 | drivers/char/mem.c | return file->f_pos; |
file | 318 | 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, 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 | 732 | drivers/char/n_tty.c | static int read_chan(struct tty_struct *tty, struct file *file, |
file | 754 | drivers/char/n_tty.c | if (file->f_inode->i_rdev != CONSOLE_DEV && |
file | 814 | drivers/char/n_tty.c | if (tty_hung_up_p(file)) |
file | 818 | drivers/char/n_tty.c | if (file->f_flags & O_NONBLOCK) { |
file | 904 | drivers/char/n_tty.c | static int write_chan(struct tty_struct * tty, struct file * file, |
file | 913 | drivers/char/n_tty.c | if (L_TOSTOP(tty) && file->f_inode->i_rdev != CONSOLE_DEV) { |
file | 926 | drivers/char/n_tty.c | if (tty_hung_up_p(file) || (tty->link && !tty->link->count)) { |
file | 946 | drivers/char/n_tty.c | if (file->f_flags & O_NONBLOCK) { |
file | 958 | drivers/char/n_tty.c | struct file * file, int sel_type, select_table *wait) |
file | 971 | drivers/char/n_tty.c | if (tty_hung_up_p(file)) |
file | 233 | drivers/char/psaux.c | static void release_aux(struct inode * inode, struct file * file) |
file | 245 | drivers/char/psaux.c | static void release_qp(struct inode * inode, struct file * file) |
file | 265 | drivers/char/psaux.c | static int open_aux(struct inode * inode, struct file * file) |
file | 295 | drivers/char/psaux.c | static int open_qp(struct inode * inode, struct file * file) |
file | 335 | drivers/char/psaux.c | static int write_aux(struct inode * inode, struct file * file, char * buffer, int count) |
file | 357 | drivers/char/psaux.c | static int write_qp(struct inode * inode, struct file * file, char * buffer, int count) |
file | 376 | drivers/char/psaux.c | static int read_aux(struct inode * inode, struct file * file, char * buffer, int count) |
file | 383 | drivers/char/psaux.c | if (file->f_flags & O_NONBLOCK) |
file | 411 | 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 | 1679 | drivers/char/serial.c | static int rs_ioctl(struct tty_struct *tty, struct file * file, |
file | 1825 | drivers/char/serial.c | static void rs_close(struct tty_struct *tty, struct file * filp) |
file | 1951 | drivers/char/serial.c | static int block_til_ready(struct tty_struct *tty, struct file * filp, |
file | 2084 | 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, char * buf, int count) |
file | 2245 | drivers/char/tpqic02.c | static int qic02_tape_open(struct inode * inode, struct file * filp) |
file | 2431 | drivers/char/tpqic02.c | static int qic02_tape_readdir(struct inode * inode, struct file * filp, struct dirent * dp, int count) |
file | 2438 | drivers/char/tpqic02.c | static void qic02_tape_release(struct inode * inode, struct file * filp) |
file | 2559 | drivers/char/tpqic02.c | static int qic02_tape_ioctl(struct inode * inode, struct file * filp, |
file | 101 | drivers/char/tty_io.c | static int tty_read(struct inode *, struct file *, char *, int); |
file | 102 | drivers/char/tty_io.c | static int tty_write(struct inode *, struct file *, char *, int); |
file | 103 | drivers/char/tty_io.c | static int tty_select(struct inode *, struct file *, int, select_table *); |
file | 104 | drivers/char/tty_io.c | static int tty_open(struct inode *, struct file *); |
file | 105 | drivers/char/tty_io.c | static void tty_release(struct inode *, struct file *); |
file | 106 | drivers/char/tty_io.c | static int tty_ioctl(struct inode * inode, struct file * file, |
file | 108 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on); |
file | 161 | drivers/char/tty_io.c | struct file *f; |
file | 290 | drivers/char/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
file | 295 | drivers/char/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, char * buf, int count) |
file | 300 | drivers/char/tty_io.c | static int hung_up_tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 305 | drivers/char/tty_io.c | static int hung_up_tty_ioctl(struct inode * inode, struct file * file, |
file | 311 | drivers/char/tty_io.c | static int tty_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 347 | drivers/char/tty_io.c | struct file * filp; |
file | 430 | drivers/char/tty_io.c | int tty_hung_up_p(struct file * filp) |
file | 680 | drivers/char/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
file | 685 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
file | 709 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
file | 717 | drivers/char/tty_io.c | static int tty_write(struct inode * inode, struct file * file, char * buf, int count) |
file | 727 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
file | 745 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(unsigned char *)buf,(unsigned int)count); |
file | 929 | drivers/char/tty_io.c | static void release_dev(struct file * filp) |
file | 1112 | drivers/char/tty_io.c | static int tty_open(struct inode * inode, struct file * filp) |
file | 1186 | drivers/char/tty_io.c | static void tty_release(struct inode * inode, struct file * filp) |
file | 1191 | drivers/char/tty_io.c | static int tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 1204 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on) |
file | 1282 | drivers/char/tty_io.c | static int tty_ioctl(struct inode * inode, struct file * file, |
file | 1293 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
file | 1356 | drivers/char/tty_io.c | file->f_flags |= O_NONBLOCK; |
file | 1358 | drivers/char/tty_io.c | file->f_flags &= ~O_NONBLOCK; |
file | 1503 | drivers/char/tty_io.c | retval = (tty->driver.ioctl)(tty, file, |
file | 1509 | drivers/char/tty_io.c | retval = (tty->ldisc.ioctl)(tty, file, |
file | 1539 | drivers/char/tty_io.c | struct file *filp; |
file | 218 | drivers/char/tty_ioctl.c | int n_tty_ioctl(struct tty_struct * tty, struct file * file, |
file | 369 | drivers/char/tty_ioctl.c | tty->driver.ioctl(tty, file, cmd, arg); |
file | 129 | drivers/char/vt.c | int vt_ioctl(struct tty_struct *tty, struct file * file, |
file | 137 | drivers/net/ppp.c | static int ppp_read(struct tty_struct *, struct file *, unsigned char *, |
file | 139 | drivers/net/ppp.c | static int ppp_write(struct tty_struct *, struct file *, unsigned char *, |
file | 141 | drivers/net/ppp.c | static int ppp_ioctl(struct tty_struct *, struct file *, unsigned int, |
file | 144 | drivers/net/ppp.c | struct file * filp, int sel_type, select_table * wait); |
file | 1214 | drivers/net/ppp.c | ppp_read(struct tty_struct *tty, struct file *file, unsigned char *buf, unsigned int nr) |
file | 1315 | drivers/net/ppp.c | ppp_write(struct tty_struct *tty, struct file *file, unsigned char *buf, unsigned int nr) |
file | 1390 | drivers/net/ppp.c | ppp_ioctl(struct tty_struct *tty, struct file *file, unsigned int i, |
file | 1590 | drivers/net/ppp.c | error = n_tty_ioctl(tty, file, i, l); |
file | 1614 | drivers/net/ppp.c | struct file * filp, int sel_type, select_table * wait) |
file | 957 | drivers/net/slip.c | slip_ioctl(struct tty_struct *tty, void *file, int cmd, void *arg) |
file | 1039 | drivers/net/slip.c | return n_tty_ioctl(tty, (struct file *) file, cmd, (unsigned long) arg); |
file | 1083 | drivers/net/slip.c | sl_ldisc.ioctl = (int (*)(struct tty_struct *, struct file *, |
file | 2073 | drivers/scsi/53c7,8xx.c | static debugger_user_write (struct inode *inode,struct file *filp, |
file | 2125 | drivers/scsi/53c7,8xx.c | static debugger_user_read (struct inode *inode,struct file *filp, |
file | 61 | drivers/scsi/sd.c | extern int sd_ioctl(struct inode *, struct file *, unsigned int, unsigned long); |
file | 81 | drivers/scsi/sd.c | static int sd_open(struct inode * inode, struct file * filp) |
file | 112 | drivers/scsi/sd.c | static void sd_release(struct inode * inode, struct file * file) |
file | 18 | drivers/scsi/sd_ioctl.c | int sd_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg) |
file | 65 | drivers/scsi/sg.c | static int sg_ioctl(struct inode * inode,struct file * file, |
file | 83 | drivers/scsi/sg.c | static int sg_open(struct inode * inode, struct file * filp) |
file | 127 | drivers/scsi/sg.c | static void sg_close(struct inode * inode, struct file * filp) |
file | 170 | drivers/scsi/sg.c | static int sg_read(struct inode *inode,struct file *filp,char *buf,int count) |
file | 228 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,char *buf,int count) |
file | 56 | drivers/scsi/sr.c | static int sr_open(struct inode *, struct file *); |
file | 59 | drivers/scsi/sr.c | extern int sr_ioctl(struct inode *, struct file *, unsigned int, unsigned long); |
file | 64 | drivers/scsi/sr.c | static void sr_release(struct inode * inode, struct file * file) |
file | 453 | drivers/scsi/sr.c | static int sr_open(struct inode * inode, struct file * filp) |
file | 92 | drivers/scsi/sr_ioctl.c | int sr_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg) |
file | 101 | drivers/scsi/st.c | static int st_int_ioctl(struct inode * inode,struct file * file, |
file | 347 | drivers/scsi/st.c | flush_buffer(struct inode * inode, struct file * filp, int seek_next) |
file | 392 | drivers/scsi/st.c | scsi_tape_open(struct inode * inode, struct file * filp) |
file | 607 | drivers/scsi/st.c | scsi_tape_close(struct inode * inode, struct file * filp) |
file | 689 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, char * buf, int count) |
file | 924 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 1209 | drivers/scsi/st.c | st_int_ioctl(struct inode * inode,struct file * file, |
file | 1413 | drivers/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTFSF, 0x3fff); |
file | 1560 | drivers/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTFSF, 1); |
file | 1562 | drivers/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTBSF, 1); |
file | 1642 | drivers/scsi/st.c | st_ioctl(struct inode * inode,struct file * file, |
file | 1674 | drivers/scsi/st.c | i = flush_buffer(inode, file, mtc.mt_op == MTSEEK || |
file | 1688 | drivers/scsi/st.c | return st_int_ioctl(inode, file, mtc.mt_op, mtc.mt_count); |
file | 1753 | drivers/scsi/st.c | i = flush_buffer(inode, file, 0); |
file | 84 | drivers/sound/audio.c | audio_open (int dev, struct fileinfo *file) |
file | 89 | drivers/sound/audio.c | int mode = file->mode & O_ACCMODE; |
file | 105 | drivers/sound/audio.c | audio_release (dev, file); |
file | 123 | drivers/sound/audio.c | audio_release (int dev, struct fileinfo *file) |
file | 128 | drivers/sound/audio.c | mode = file->mode & O_ACCMODE; |
file | 166 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 263 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 321 | drivers/sound/audio.c | audio_ioctl (int dev, struct fileinfo *file, |
file | 382 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 388 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 394 | drivers/sound/audio.c | audio_open (int dev, struct fileinfo *file) |
file | 400 | drivers/sound/audio.c | audio_release (int dev, struct fileinfo *file) |
file | 404 | drivers/sound/audio.c | audio_ioctl (int dev, struct fileinfo *file, |
file | 411 | drivers/sound/audio.c | audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig) |
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 | 402 | drivers/sound/midibuf.c | MIDIbuf_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
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 | 758 | drivers/sound/pss.c | pss_open (int dev, struct fileinfo *file) |
file | 773 | drivers/sound/pss.c | mode = file->mode & O_ACCMODE; |
file | 785 | drivers/sound/pss.c | pss_release (int dev, struct fileinfo *file) |
file | 794 | drivers/sound/pss.c | mode = file->mode & O_ACCMODE; |
file | 810 | drivers/sound/pss.c | pss_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 826 | drivers/sound/pss.c | pss_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 843 | drivers/sound/pss.c | pss_ioctl (int dev, struct fileinfo *file, |
file | 885 | drivers/sound/pss.c | pss_select (int dev, struct fileinfo * file, int sel_type, select_table * wait) |
file | 98 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 111 | drivers/sound/sequencer.c | return pmgr_read (dev - 1, file, buf, count); |
file | 231 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 236 | drivers/sound/sequencer.c | int mode = file->mode & O_ACCMODE; |
file | 248 | drivers/sound/sequencer.c | return pmgr_write (dev - 1, file, buf, count); |
file | 319 | drivers/sound/sequencer.c | mode = file->mode & O_ACCMODE; |
file | 925 | drivers/sound/sequencer.c | sequencer_open (int dev, struct fileinfo *file) |
file | 933 | drivers/sound/sequencer.c | mode = file->mode & O_ACCMODE; |
file | 1115 | drivers/sound/sequencer.c | sequencer_release (int dev, struct fileinfo *file) |
file | 1118 | drivers/sound/sequencer.c | int mode = file->mode & O_ACCMODE; |
file | 1325 | drivers/sound/sequencer.c | sequencer_ioctl (int dev, struct fileinfo *file, |
file | 1329 | drivers/sound/sequencer.c | int mode = file->mode & O_ACCMODE; |
file | 1411 | drivers/sound/sequencer.c | mode = file->mode & O_ACCMODE; |
file | 1663 | drivers/sound/sequencer.c | sequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
file | 1815 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 1821 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 1827 | drivers/sound/sequencer.c | sequencer_open (int dev, struct fileinfo *file) |
file | 1833 | drivers/sound/sequencer.c | sequencer_release (int dev, struct fileinfo *file) |
file | 1837 | drivers/sound/sequencer.c | sequencer_ioctl (int dev, struct fileinfo *file, |
file | 1844 | drivers/sound/sequencer.c | sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig) |
file | 1856 | drivers/sound/sequencer.c | sequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
file | 24 | drivers/sound/sound_calls.h | int audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 25 | drivers/sound/sound_calls.h | int audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 26 | drivers/sound/sound_calls.h | int audio_open (int dev, struct fileinfo *file); |
file | 27 | drivers/sound/sound_calls.h | void audio_release (int dev, struct fileinfo *file); |
file | 28 | drivers/sound/sound_calls.h | int audio_ioctl (int dev, struct fileinfo *file, |
file | 30 | 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 sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 38 | drivers/sound/sound_calls.h | int sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 39 | drivers/sound/sound_calls.h | int sequencer_open (int dev, struct fileinfo *file); |
file | 40 | drivers/sound/sound_calls.h | void sequencer_release (int dev, struct fileinfo *file); |
file | 41 | drivers/sound/sound_calls.h | int sequencer_ioctl (int dev, struct fileinfo *file, |
file | 43 | drivers/sound/sound_calls.h | int sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
file | 52 | drivers/sound/sound_calls.h | int sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
file | 59 | drivers/sound/sound_calls.h | int MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 60 | drivers/sound/sound_calls.h | int MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 61 | drivers/sound/sound_calls.h | int MIDIbuf_open (int dev, struct fileinfo *file); |
file | 62 | drivers/sound/sound_calls.h | void MIDIbuf_release (int dev, struct fileinfo *file); |
file | 63 | drivers/sound/sound_calls.h | int MIDIbuf_ioctl (int dev, struct fileinfo *file, |
file | 65 | drivers/sound/sound_calls.h | int MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
file | 70 | drivers/sound/sound_calls.h | int MIDIbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
file | 79 | drivers/sound/sound_calls.h | int CMIDI_open (int dev, struct fileinfo *file); |
file | 80 | drivers/sound/sound_calls.h | int CMIDI_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 81 | drivers/sound/sound_calls.h | int CMIDI_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 82 | drivers/sound/sound_calls.h | int CMIDI_close (int dev, struct fileinfo *file); |
file | 109 | drivers/sound/sound_calls.h | int sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 110 | drivers/sound/sound_calls.h | int sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 111 | drivers/sound/sound_calls.h | int sound_open_sw (int dev, struct fileinfo *file); |
file | 112 | drivers/sound/sound_calls.h | void sound_release_sw (int dev, struct fileinfo *file); |
file | 113 | 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 | 236 | drivers/sound/sound_calls.h | int pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 237 | drivers/sound/sound_calls.h | int pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 238 | drivers/sound/sound_calls.h | int pss_open (int dev, struct fileinfo *file); |
file | 239 | drivers/sound/sound_calls.h | void pss_release (int dev, struct fileinfo *file); |
file | 240 | drivers/sound/sound_calls.h | int pss_ioctl (int dev, struct fileinfo *file, |
file | 242 | drivers/sound/sound_calls.h | int pss_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
file | 278 | drivers/sound/sound_switch.c | sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 291 | drivers/sound/sound_switch.c | return audio_read (dev, file, buf, count); |
file | 296 | drivers/sound/sound_switch.c | return sequencer_read (dev, file, buf, count); |
file | 301 | drivers/sound/sound_switch.c | return MIDIbuf_read (dev, file, buf, count); |
file | 306 | drivers/sound/sound_switch.c | return pss_read (dev, file, buf, count); |
file | 317 | drivers/sound/sound_switch.c | sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 327 | drivers/sound/sound_switch.c | return sequencer_write (dev, file, buf, count); |
file | 333 | drivers/sound/sound_switch.c | return audio_write (dev, file, buf, count); |
file | 338 | drivers/sound/sound_switch.c | return MIDIbuf_write (dev, file, buf, count); |
file | 343 | drivers/sound/sound_switch.c | return pss_write (dev, file, buf, count); |
file | 354 | drivers/sound/sound_switch.c | sound_open_sw (int dev, struct fileinfo *file) |
file | 384 | drivers/sound/sound_switch.c | if ((retval = sequencer_open (dev, file)) < 0) |
file | 390 | drivers/sound/sound_switch.c | if ((retval = MIDIbuf_open (dev, file)) < 0) |
file | 397 | drivers/sound/sound_switch.c | if ((retval = pss_open (dev, file)) < 0) |
file | 405 | drivers/sound/sound_switch.c | if ((retval = audio_open (dev, file)) < 0) |
file | 421 | drivers/sound/sound_switch.c | sound_release_sw (int dev, struct fileinfo *file) |
file | 440 | drivers/sound/sound_switch.c | sequencer_release (dev, file); |
file | 445 | drivers/sound/sound_switch.c | MIDIbuf_release (dev, file); |
file | 451 | drivers/sound/sound_switch.c | pss_release (dev, file); |
file | 458 | drivers/sound/sound_switch.c | audio_release (dev, file); |
file | 470 | drivers/sound/sound_switch.c | sound_ioctl_sw (int dev, struct fileinfo *file, |
file | 499 | drivers/sound/sound_switch.c | return sequencer_ioctl (dev, file, cmd, arg); |
file | 505 | drivers/sound/sound_switch.c | return audio_ioctl (dev, file, cmd, arg); |
file | 510 | drivers/sound/sound_switch.c | return MIDIbuf_ioctl (dev, file, cmd, arg); |
file | 516 | drivers/sound/sound_switch.c | return pss_ioctl (dev, file, cmd, arg); |
file | 61 | drivers/sound/soundcard.c | sound_read (struct inode *inode, struct file *file, char *buf, int count) |
file | 72 | drivers/sound/soundcard.c | sound_write (struct inode *inode, struct file *file, char *buf, int count) |
file | 83 | drivers/sound/soundcard.c | sound_lseek (struct inode *inode, struct file *file, off_t offset, int orig) |
file | 89 | drivers/sound/soundcard.c | sound_open (struct inode *inode, struct file *file) |
file | 104 | drivers/sound/soundcard.c | if ((file->f_flags & O_ACCMODE) == O_RDWR) |
file | 106 | drivers/sound/soundcard.c | if ((file->f_flags & O_ACCMODE) == O_RDONLY) |
file | 108 | drivers/sound/soundcard.c | if ((file->f_flags & O_ACCMODE) == O_WRONLY) |
file | 115 | drivers/sound/soundcard.c | sound_release (struct inode *inode, struct file *file) |
file | 126 | drivers/sound/soundcard.c | sound_ioctl (struct inode *inode, struct file *file, |
file | 138 | drivers/sound/soundcard.c | sound_select (struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 163 | fs/binfmt_elf.c | struct file * file; |
file | 205 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
file | 210 | fs/binfmt_elf.c | error = do_mmap(file, |
file | 301 | fs/binfmt_elf.c | struct file * file; |
file | 373 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
file | 532 | fs/binfmt_elf.c | error = do_mmap(file, |
file | 636 | fs/binfmt_elf.c | struct file * file; |
file | 649 | fs/binfmt_elf.c | file = current->files->fd[fd]; |
file | 650 | fs/binfmt_elf.c | inode = file->f_inode; |
file | 654 | fs/binfmt_elf.c | if (file->f_op->read(inode, file, (char *) &elf_ex, sizeof(elf_ex)) != sizeof(elf_ex)) { |
file | 704 | fs/binfmt_elf.c | error = do_mmap(file, |
file | 23 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, char * buf, int count) |
file | 160 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 313 | 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 | 107 | fs/exec.c | struct file *f, **fpp; |
file | 149 | fs/exec.c | while (file.f_op->write(inode,&file,(char *)(addr),(nr)) != (nr)) goto close_coredump |
file | 152 | fs/exec.c | if (file.f_op->lseek) { \ |
file | 153 | fs/exec.c | if (file.f_op->lseek(inode,&file,(offset),0) != (offset)) \ |
file | 155 | fs/exec.c | } else file.f_pos = (offset) |
file | 169 | fs/exec.c | struct file file; |
file | 201 | fs/exec.c | file.f_mode = 3; |
file | 202 | fs/exec.c | file.f_flags = 0; |
file | 203 | fs/exec.c | file.f_count = 1; |
file | 204 | fs/exec.c | file.f_inode = inode; |
file | 205 | fs/exec.c | file.f_pos = 0; |
file | 206 | fs/exec.c | file.f_reada = 0; |
file | 207 | fs/exec.c | file.f_op = inode->i_op->default_file_ops; |
file | 208 | fs/exec.c | if (file.f_op->open) |
file | 209 | fs/exec.c | if (file.f_op->open(inode,&file)) |
file | 211 | fs/exec.c | if (!file.f_op->write) |
file | 253 | fs/exec.c | if (file.f_op->release) |
file | 254 | fs/exec.c | file.f_op->release(inode,&file); |
file | 272 | fs/exec.c | struct file * file; |
file | 278 | fs/exec.c | file = current->files->fd[fd]; |
file | 280 | fs/exec.c | if (file && file->f_inode && file->f_op && file->f_op->read) { |
file | 464 | fs/exec.c | struct file file; |
file | 469 | fs/exec.c | file.f_mode = 1; |
file | 470 | fs/exec.c | file.f_flags = 0; |
file | 471 | fs/exec.c | file.f_count = 1; |
file | 472 | fs/exec.c | file.f_inode = inode; |
file | 473 | fs/exec.c | file.f_pos = 0; |
file | 474 | fs/exec.c | file.f_reada = 0; |
file | 475 | fs/exec.c | file.f_op = inode->i_op->default_file_ops; |
file | 476 | fs/exec.c | if (file.f_op->open) |
file | 477 | fs/exec.c | if (file.f_op->open(inode,&file)) |
file | 479 | fs/exec.c | if (!file.f_op || !file.f_op->read) |
file | 481 | fs/exec.c | if (file.f_op->lseek) { |
file | 482 | fs/exec.c | if (file.f_op->lseek(inode,&file,offset,0) != offset) |
file | 485 | fs/exec.c | file.f_pos = offset; |
file | 491 | fs/exec.c | result = file.f_op->read(inode, &file, addr, count); |
file | 493 | fs/exec.c | if (file.f_op->release) |
file | 494 | fs/exec.c | file.f_op->release(inode,&file); |
file | 739 | fs/exec.c | struct file * file; |
file | 790 | fs/exec.c | file = current->files->fd[fd]; |
file | 791 | fs/exec.c | if (!file->f_op || !file->f_op->mmap) { |
file | 801 | fs/exec.c | error = do_mmap(file, N_TXTADDR(ex), ex.a_text, |
file | 812 | fs/exec.c | error = do_mmap(file, N_TXTADDR(ex) + ex.a_text, ex.a_data, |
file | 851 | fs/exec.c | struct file * file; |
file | 859 | fs/exec.c | file = current->files->fd[fd]; |
file | 860 | fs/exec.c | inode = file->f_inode; |
file | 863 | fs/exec.c | if (file->f_op->read(inode, file, (char *) &ex, sizeof(ex)) != sizeof(ex)) { |
file | 888 | fs/exec.c | error = do_mmap(file, start_addr, ex.a_text + ex.a_data, |
file | 26 | fs/ext/dir.c | static int ext_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 31 | fs/ext/dir.c | static int ext_readdir(struct inode *, struct file *, struct dirent *, int); |
file | 67 | fs/ext/dir.c | static int ext_readdir(struct inode * inode, struct file * filp, |
file | 34 | fs/ext/file.c | static int ext_file_read(struct inode *, struct file *, char *, int); |
file | 35 | fs/ext/file.c | static int ext_file_write(struct inode *, struct file *, char *, int); |
file | 72 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 197 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, 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 | 28 | fs/ext2/dir.c | static int ext2_dir_read (struct inode * inode, struct file * filp, |
file | 34 | fs/ext2/dir.c | static int ext2_readdir (struct inode *, struct file *, struct dirent *, int); |
file | 100 | fs/ext2/dir.c | static int ext2_readdir (struct inode * inode, struct file * filp, |
file | 36 | fs/ext2/file.c | static int ext2_file_read (struct inode *, struct file *, char *, int); |
file | 37 | fs/ext2/file.c | static int ext2_file_write (struct inode *, struct file *, char *, int); |
file | 38 | fs/ext2/file.c | static void ext2_release_file (struct inode *, struct file *); |
file | 79 | fs/ext2/file.c | static int ext2_file_read (struct inode * inode, struct file * filp, |
file | 230 | fs/ext2/file.c | static int ext2_file_write (struct inode * inode, struct file * filp, |
file | 350 | fs/ext2/file.c | static void ext2_release_file (struct inode * inode, struct file * filp) |
file | 169 | fs/ext2/fsync.c | int ext2_sync_file (struct inode * inode, struct file * file) |
file | 18 | 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 | 11 | fs/file_table.c | struct file * first_file; |
file | 14 | fs/file_table.c | static void insert_file_free(struct file *file) |
file | 16 | fs/file_table.c | file->f_next = first_file; |
file | 17 | fs/file_table.c | file->f_prev = first_file->f_prev; |
file | 18 | fs/file_table.c | file->f_next->f_prev = file; |
file | 19 | fs/file_table.c | file->f_prev->f_next = file; |
file | 20 | fs/file_table.c | first_file = file; |
file | 23 | fs/file_table.c | static void remove_file_free(struct file *file) |
file | 25 | fs/file_table.c | if (first_file == file) |
file | 27 | fs/file_table.c | if (file->f_next) |
file | 28 | fs/file_table.c | file->f_next->f_prev = file->f_prev; |
file | 29 | fs/file_table.c | if (file->f_prev) |
file | 30 | fs/file_table.c | file->f_prev->f_next = file->f_next; |
file | 31 | fs/file_table.c | file->f_next = file->f_prev = NULL; |
file | 34 | fs/file_table.c | static void put_last_free(struct file *file) |
file | 36 | fs/file_table.c | remove_file_free(file); |
file | 37 | fs/file_table.c | file->f_prev = first_file->f_prev; |
file | 38 | fs/file_table.c | file->f_prev->f_next = file; |
file | 39 | fs/file_table.c | file->f_next = first_file; |
file | 40 | fs/file_table.c | file->f_next->f_prev = file; |
file | 45 | fs/file_table.c | struct file * file; |
file | 48 | fs/file_table.c | file = (struct file *) get_free_page(GFP_KERNEL); |
file | 50 | fs/file_table.c | if (!file) |
file | 53 | fs/file_table.c | nr_files+=i= PAGE_SIZE/sizeof(struct file); |
file | 56 | fs/file_table.c | file->f_next = file->f_prev = first_file = file++, i--; |
file | 59 | fs/file_table.c | insert_file_free(file++); |
file | 68 | fs/file_table.c | struct file * get_empty_filp(void) |
file | 71 | fs/file_table.c | struct file * f; |
file | 147 | fs/hpfs/hpfs_fs.c | static int hpfs_file_read(struct inode *, struct file *, char *, int); |
file | 186 | fs/hpfs/hpfs_fs.c | static int hpfs_dir_read(struct inode *inode, struct file *filp, |
file | 188 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, |
file | 866 | fs/hpfs/hpfs_fs.c | static int hpfs_file_read(struct inode *inode, struct file *filp, |
file | 1332 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, |
file | 1564 | 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 | 32 | fs/isofs/dir.c | static int isofs_readdir(struct inode *, struct file *, struct dirent *, int); |
file | 67 | 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 | 33 | fs/locks.c | static int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l, |
file | 37 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd); |
file | 52 | fs/locks.c | struct file *filp; |
file | 91 | fs/locks.c | struct file *filp; |
file | 199 | fs/locks.c | void fcntl_remove_locks(struct task_struct *task, struct file *filp, |
file | 222 | fs/locks.c | static int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l, |
file | 296 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd) |
file | 23 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 28 | fs/minix/dir.c | static int minix_readdir(struct inode *, struct file *, struct dirent *, int); |
file | 64 | 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 *, 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, char * buf, int count) |
file | 147 | fs/minix/fsync.c | int minix_sync_file(struct inode * inode, struct file * file) |
file | 29 | fs/msdos/dir.c | static int msdos_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
file | 67 | 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 | 28 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *, struct file *filp, char *buf, |
file | 30 | fs/nfs/dir.c | static int nfs_readdir(struct inode *, struct file *, struct dirent *, int); |
file | 79 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
file | 93 | fs/nfs/dir.c | static int nfs_readdir(struct inode *inode, struct file *filp, |
file | 279 | fs/nfs/dir.c | static void nfs_lookup_cache_refresh(struct inode *file, |
file | 283 | fs/nfs/dir.c | int dev = file->i_dev; |
file | 284 | 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 *, 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, 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 | 32 | fs/nfs/inode.c | extern int close_fp(struct file *filp, unsigned int fd); |
file | 58 | fs/nfs/inode.c | close_fp(sb->u.nfs_sb.s_server.file, 0); |
file | 79 | fs/nfs/inode.c | struct file *filp; |
file | 114 | fs/nfs/inode.c | server->file = filp; |
file | 97 | fs/nfs/mmap.c | int nfs_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 57 | fs/nfs/sock.c | struct file *file; |
file | 66 | fs/nfs/sock.c | int (*select) (struct inode *, struct file *, int, select_table *); |
file | 81 | fs/nfs/sock.c | file = server->file; |
file | 82 | fs/nfs/sock.c | inode = file->f_inode; |
file | 83 | 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 fcntl_remove_locks(struct task_struct *, struct file *, unsigned int fd); |
file | 53 | fs/open.c | struct file * file; |
file | 59 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 61 | fs/open.c | if (!(inode = file->f_inode)) |
file | 114 | fs/open.c | struct file * file; |
file | 117 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 119 | fs/open.c | if (!(inode = file->f_inode)) |
file | 121 | fs/open.c | if (S_ISDIR(inode->i_mode) || !(file->f_mode & 2)) |
file | 230 | fs/open.c | struct file * file; |
file | 233 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 235 | fs/open.c | if (!(inode = file->f_inode)) |
file | 271 | fs/open.c | struct file * file; |
file | 274 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 276 | fs/open.c | if (!(inode = file->f_inode)) |
file | 316 | fs/open.c | struct file * file; |
file | 319 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 321 | fs/open.c | if (!(inode = file->f_inode)) |
file | 411 | fs/open.c | struct file * f; |
file | 480 | fs/open.c | int close_fp(struct file *filp, unsigned int fd) |
file | 506 | 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, 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 pipe_readdir(struct inode * inode, struct file * file, struct dirent * de, int count) |
file | 129 | fs/pipe.c | static int bad_pipe_rw(struct inode * inode, struct file * filp, 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; |
file | 98 | 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, char * buf, int count) |
file | 592 | fs/proc/array.c | static int read_maps (int pid, struct file * file, char * buf, int count) |
file | 608 | fs/proc/array.c | lineno = file->f_pos >> MAPS_LINE_SHIFT; |
file | 609 | fs/proc/array.c | column = file->f_pos & (MAPS_LINE_LENGTH-1); |
file | 677 | fs/proc/array.c | file->f_pos = (lineno << MAPS_LINE_SHIFT) + column; |
file | 769 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
file | 788 | fs/proc/array.c | if (file->f_pos >= length) { |
file | 792 | fs/proc/array.c | if (count + file->f_pos > length) |
file | 793 | fs/proc/array.c | count = length - file->f_pos; |
file | 794 | fs/proc/array.c | end = count + file->f_pos; |
file | 795 | fs/proc/array.c | memcpy_tofs(buf, (char *) page + file->f_pos, count); |
file | 797 | fs/proc/array.c | file->f_pos = end; |
file | 832 | fs/proc/array.c | static int arraylong_read (struct inode * inode, struct file * file, char * buf, int count) |
file | 842 | fs/proc/array.c | return read_maps(pid, file, buf, count); |
file | 16 | fs/proc/base.c | static int proc_readbase(struct inode *, struct file *, struct dirent *, int); |
file | 123 | fs/proc/base.c | static int proc_readbase(struct inode * inode, struct file * filp, |
file | 16 | fs/proc/fd.c | static int proc_readfd(struct inode *, struct file *, struct dirent *, int); |
file | 117 | 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 | 25 | fs/proc/mem.c | static int mem_read(struct inode * inode, struct file * file,char * buf, int count) |
file | 47 | fs/proc/mem.c | addr = file->f_pos; |
file | 72 | fs/proc/mem.c | file->f_pos = addr; |
file | 78 | fs/proc/mem.c | static int mem_write(struct inode * inode, struct file * file,char * buf, int count) |
file | 90 | fs/proc/mem.c | addr = file->f_pos; |
file | 127 | fs/proc/mem.c | file->f_pos = addr; |
file | 137 | fs/proc/mem.c | static int mem_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 141 | fs/proc/mem.c | file->f_pos = offset; |
file | 142 | fs/proc/mem.c | return file->f_pos; |
file | 144 | fs/proc/mem.c | file->f_pos += offset; |
file | 145 | fs/proc/mem.c | return file->f_pos; |
file | 154 | fs/proc/mem.c | int mem_mmap(struct inode * inode, struct file * file, |
file | 39 | fs/proc/net.c | static int proc_readnet(struct inode * inode, struct file * file, |
file | 41 | fs/proc/net.c | static int proc_readnetdir(struct inode *, struct file *, |
file | 198 | fs/proc/net.c | static int proc_readnetdir(struct inode * inode, struct file * filp, |
file | 227 | fs/proc/net.c | static int proc_readnet(struct inode * inode, struct file * file, |
file | 253 | fs/proc/net.c | length = unix_get_info(page,&start,file->f_pos,thistime); |
file | 257 | fs/proc/net.c | length = afinet_get_info(page,&start,file->f_pos,thistime); |
file | 260 | fs/proc/net.c | length = arp_get_info(page,&start,file->f_pos,thistime); |
file | 263 | fs/proc/net.c | length = rt_get_info(page,&start,file->f_pos,thistime); |
file | 266 | fs/proc/net.c | length = dev_get_info(page,&start,file->f_pos,thistime); |
file | 269 | fs/proc/net.c | length = raw_get_info(page,&start,file->f_pos,thistime); |
file | 272 | fs/proc/net.c | length = tcp_get_info(page,&start,file->f_pos,thistime); |
file | 275 | fs/proc/net.c | length = udp_get_info(page,&start,file->f_pos,thistime); |
file | 278 | fs/proc/net.c | length = snmp_get_info(page, &start, file->f_pos,thistime); |
file | 282 | fs/proc/net.c | length = ip_mc_procinfo(page, &start, file->f_pos,thistime); |
file | 287 | fs/proc/net.c | length = ip_fw_fwd_procinfo(page, &start, file->f_pos,thistime); |
file | 290 | fs/proc/net.c | length = ip_fw_blk_procinfo(page, &start, file->f_pos,thistime); |
file | 295 | fs/proc/net.c | length = ip_acct_procinfo(page, &start, file->f_pos,thistime); |
file | 300 | fs/proc/net.c | length = ip_msqhst_procinfo(page, &start, file->f_pos,thistime); |
file | 305 | fs/proc/net.c | length = rarp_get_info(page,&start,file->f_pos,thistime); |
file | 311 | fs/proc/net.c | length = ipx_get_interface_info(page, &start, file->f_pos, thistime); |
file | 314 | fs/proc/net.c | length = ipx_rt_get_info(page,&start,file->f_pos,thistime); |
file | 317 | fs/proc/net.c | length = ipx_get_info(page,&start,file->f_pos,thistime); |
file | 322 | fs/proc/net.c | length = atalk_get_info(page, &start, file->f_pos, thistime); |
file | 325 | fs/proc/net.c | length = atalk_rt_get_info(page, &start, file->f_pos, thistime); |
file | 328 | fs/proc/net.c | length = atalk_if_get_info(page, &start, file->f_pos, thistime); |
file | 333 | fs/proc/net.c | length = ax25_rt_get_info(page,&start,file->f_pos,thistime); |
file | 336 | fs/proc/net.c | length = ax25_get_info(page,&start,file->f_pos,thistime); |
file | 340 | fs/proc/net.c | length = nr_nodes_get_info(page,&start,file->f_pos,thistime); |
file | 343 | fs/proc/net.c | length = nr_neigh_get_info(page,&start,file->f_pos,thistime); |
file | 346 | fs/proc/net.c | length = nr_get_info(page,&start,file->f_pos,thistime); |
file | 368 | fs/proc/net.c | file->f_pos+=length; /* Move down the file */ |
file | 17 | fs/proc/root.c | static int proc_readroot(struct inode *, struct file *, struct dirent *, int); |
file | 144 | fs/proc/root.c | static int proc_readroot(struct inode * inode, struct file * filp, |
file | 29 | fs/read_write.c | struct file * file; |
file | 32 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || |
file | 33 | fs/read_write.c | !(inode = file->f_inode)) |
file | 36 | fs/read_write.c | if (file->f_op && file->f_op->readdir) { |
file | 42 | fs/read_write.c | error = file->f_op->readdir(inode,file,dirent,count); |
file | 49 | fs/read_write.c | struct file * file; |
file | 52 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
file | 56 | fs/read_write.c | if (file->f_op && file->f_op->lseek) |
file | 57 | fs/read_write.c | return file->f_op->lseek(file->f_inode,file,offset,origin); |
file | 65 | fs/read_write.c | tmp = file->f_pos + offset; |
file | 68 | fs/read_write.c | if (!file->f_inode) |
file | 70 | fs/read_write.c | tmp = file->f_inode->i_size + offset; |
file | 75 | fs/read_write.c | if (tmp != file->f_pos) { |
file | 76 | fs/read_write.c | file->f_pos = tmp; |
file | 77 | fs/read_write.c | file->f_reada = 0; |
file | 78 | fs/read_write.c | file->f_version = ++event; |
file | 80 | fs/read_write.c | return file->f_pos; |
file | 87 | fs/read_write.c | struct file * file; |
file | 92 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
file | 105 | fs/read_write.c | tmp = file->f_pos + offset; |
file | 108 | fs/read_write.c | if (!file->f_inode) |
file | 110 | fs/read_write.c | tmp = file->f_inode->i_size + offset; |
file | 115 | fs/read_write.c | file->f_pos = tmp; |
file | 116 | fs/read_write.c | file->f_reada = 0; |
file | 117 | fs/read_write.c | file->f_version = ++event; |
file | 118 | fs/read_write.c | memcpy_tofs(result, &file->f_pos, sizeof(loff_t)); |
file | 125 | 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 & 1)) |
file | 132 | fs/read_write.c | if (!file->f_op || !file->f_op->read) |
file | 139 | fs/read_write.c | return file->f_op->read(inode,file,buf,count); |
file | 145 | fs/read_write.c | struct file * file; |
file | 149 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
file | 151 | fs/read_write.c | if (!(file->f_mode & 2)) |
file | 153 | fs/read_write.c | if (!file->f_op || !file->f_op->write) |
file | 160 | fs/read_write.c | written = file->f_op->write(inode,file,buf,count); |
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 | 163 | fs/stat.c | struct file * f; |
file | 178 | fs/stat.c | struct file * f; |
file | 606 | fs/super.c | struct file dummy; /* allows read-write or read-only flag */ |
file | 644 | fs/super.c | struct file filp; |
file | 30 | fs/sysv/dir.c | static int sysv_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 35 | fs/sysv/dir.c | static int sysv_readdir(struct inode *, struct file *, struct dirent *, int); |
file | 71 | fs/sysv/dir.c | static int sysv_readdir1 (struct inode * inode, struct file * filp, |
file | 127 | 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 *, 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, 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 | 54 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
file | 234 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
file | 360 | fs/umsdos/dir.c | struct file filp; |
file | 381 | fs/umsdos/dir.c | struct file filp; |
file | 635 | fs/umsdos/dir.c | struct file filp; |
file | 27 | fs/umsdos/emd.c | struct file *filp, |
file | 43 | fs/umsdos/emd.c | struct file *filp, |
file | 59 | fs/umsdos/emd.c | struct file *filp, |
file | 80 | fs/umsdos/emd.c | struct file *filp, |
file | 96 | fs/umsdos/emd.c | struct file *filp, |
file | 157 | fs/umsdos/emd.c | struct file *filp, |
file | 183 | fs/umsdos/emd.c | struct file filp; |
file | 223 | fs/umsdos/emd.c | struct file filp; |
file | 463 | 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 | 28 | fs/umsdos/ioctl.c | struct file *filp, |
file | 450 | fs/umsdos/namei.c | struct file filp; |
file | 33 | 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 | 29 | fs/xiafs/dir.c | static int xiafs_dir_read(struct inode *, struct file *, char *, int); |
file | 30 | fs/xiafs/dir.c | static int xiafs_readdir(struct inode *, struct file *, struct dirent *, int); |
file | 67 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
file | 73 | fs/xiafs/dir.c | struct file * filp, struct dirent * dirent, int count) |
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 *, 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, char * buf, int count) |
file | 148 | fs/xiafs/fsync.c | int xiafs_sync_file(struct inode * inode, struct file * file) |
file | 427 | include/linux/ext2_fs.h | extern int ext2_read (struct inode *, struct file *, char *, int); |
file | 428 | include/linux/ext2_fs.h | extern int ext2_write (struct inode *, struct file *, char *, int); |
file | 431 | include/linux/ext2_fs.h | extern int ext2_sync_file (struct inode *, struct file *); |
file | 453 | include/linux/ext2_fs.h | extern int ext2_ioctl (struct inode *, struct file *, unsigned int, |
file | 457 | 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 | 58 | include/linux/fs.h | #define NIL_FILP ((struct file *)0) |
file | 260 | include/linux/fs.h | struct file *f_next, *f_prev; |
file | 283 | include/linux/fs.h | struct file *fa_file; |
file | 328 | include/linux/fs.h | int (*lseek) (struct inode *, struct file *, off_t, int); |
file | 329 | include/linux/fs.h | int (*read) (struct inode *, struct file *, char *, int); |
file | 330 | include/linux/fs.h | int (*write) (struct inode *, struct file *, char *, int); |
file | 331 | include/linux/fs.h | int (*readdir) (struct inode *, struct file *, struct dirent *, int); |
file | 332 | include/linux/fs.h | int (*select) (struct inode *, struct file *, int, select_table *); |
file | 333 | include/linux/fs.h | int (*ioctl) (struct inode *, struct file *, unsigned int, unsigned long); |
file | 334 | include/linux/fs.h | int (*mmap) (struct inode *, struct file *, struct vm_area_struct *); |
file | 335 | include/linux/fs.h | int (*open) (struct inode *, struct file *); |
file | 336 | include/linux/fs.h | void (*release) (struct inode *, struct file *); |
file | 337 | include/linux/fs.h | int (*fsync) (struct inode *, struct file *); |
file | 338 | include/linux/fs.h | int (*fasync) (struct inode *, struct file *, int); |
file | 393 | include/linux/fs.h | extern int blkdev_open(struct inode * inode, struct file * filp); |
file | 399 | include/linux/fs.h | extern int chrdev_open(struct inode * inode, struct file * filp); |
file | 419 | include/linux/fs.h | extern struct file *first_file; |
file | 483 | include/linux/fs.h | extern struct file * get_empty_filp(void); |
file | 503 | include/linux/fs.h | extern int char_read(struct inode *, struct file *, char *, int); |
file | 504 | include/linux/fs.h | extern int block_read(struct inode *, struct file *, char *, int); |
file | 507 | include/linux/fs.h | extern int char_write(struct inode *, struct file *, char *, int); |
file | 508 | include/linux/fs.h | extern int block_write(struct inode *, struct file *, char *, int); |
file | 510 | include/linux/fs.h | extern int generic_mmap(struct inode *, struct file *, struct vm_area_struct *); |
file | 512 | include/linux/fs.h | extern int block_fsync(struct inode *, struct file *); |
file | 513 | 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 | 209 | include/linux/mm.h | extern int do_mmap(struct file * file, unsigned long addr, unsigned long len, |
file | 172 | include/linux/msdos_fs.h | extern int msdos_readdir (struct inode *inode, struct file *filp, |
file | 178 | include/linux/msdos_fs.h | extern int msdos_file_read(struct inode *, struct file *, char *, int); |
file | 179 | include/linux/msdos_fs.h | extern int msdos_file_write(struct inode *, struct file *, char *, int); |
file | 185 | include/linux/msdos_fs.h | extern int msdos_mmap(struct inode *, struct file *, struct vm_area_struct *); |
file | 116 | 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 | 89 | include/linux/sched.h | struct file * fd[NR_OPEN]; |
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 | 301 | include/linux/tty.h | extern void tty_unhangup(struct file *filp); |
file | 302 | include/linux/tty.h | extern int tty_hung_up_p(struct file * filp); |
file | 310 | include/linux/tty.h | extern int n_tty_ioctl(struct tty_struct * tty, struct file * file, |
file | 315 | include/linux/tty.h | extern int rs_open(struct tty_struct * tty, struct file * filp); |
file | 319 | include/linux/tty.h | extern int pty_open(struct tty_struct * tty, struct file * filp); |
file | 323 | include/linux/tty.h | extern int con_open(struct tty_struct * tty, struct file * filp); |
file | 328 | 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 | 113 | include/linux/xd.h | static int xd_open (struct inode *inode,struct file *file); |
file | 115 | include/linux/xd.h | static int xd_ioctl (struct inode *inode,struct file *file,unsigned int cmd,unsigned long arg); |
file | 116 | 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 | 57 | init/main.c | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
file | 58 | init/main.c | static inline _syscall3(int,open,const char *,file,int,flag,int,mode) |
file | 61 | kernel/fork.c | static struct file * copy_fd(struct file * old_file) |
file | 63 | kernel/fork.c | struct file * new_file = get_empty_filp(); |
file | 67 | kernel/fork.c | memcpy(new_file,old_file,sizeof(struct file)); |
file | 120 | kernel/fork.c | struct file * f; |
file | 10 | lib/execve.c | _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
file | 208 | mm/filemap.c | int generic_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 19 | mm/mmap.c | static int anon_map(struct inode *, struct file *, struct vm_area_struct *); |
file | 43 | mm/mmap.c | int do_mmap(struct file * file, unsigned long addr, unsigned long len, |
file | 65 | mm/mmap.c | if (file != NULL) { |
file | 68 | mm/mmap.c | if ((prot & PROT_WRITE) && !(file->f_mode & 2)) |
file | 72 | mm/mmap.c | if (!(file->f_mode & 1)) |
file | 79 | mm/mmap.c | if ((flags & MAP_DENYWRITE) && (file->f_inode->i_wcount > 0)) |
file | 105 | mm/mmap.c | if (file && (!file->f_op || !file->f_op->mmap)) |
file | 119 | mm/mmap.c | if (file) { |
file | 120 | mm/mmap.c | if (file->f_mode & 1) |
file | 134 | mm/mmap.c | if (!(file->f_mode & 2)) |
file | 147 | mm/mmap.c | if (file) |
file | 148 | mm/mmap.c | error = file->f_op->mmap(file->f_inode, file, vma); |
file | 190 | mm/mmap.c | struct file * file = NULL; |
file | 198 | mm/mmap.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 201 | mm/mmap.c | return do_mmap(file, get_fs_long(buffer), get_fs_long(buffer+1), |
file | 969 | mm/mmap.c | static int anon_map(struct inode *ino, struct file * file, struct vm_area_struct * vma) |
file | 829 | mm/swap.c | struct file filp; |
file | 901 | mm/swap.c | struct file filp; |
file | 71 | net/inet/skbuff.c | int skb_check(struct sk_buff *skb, int head, int line, char *file) |
file | 76 | net/inet/skbuff.c | file,line); |
file | 86 | net/inet/skbuff.c | file,line); |
file | 92 | net/inet/skbuff.c | file,line); |
file | 100 | net/inet/skbuff.c | if (skb_check(skb2, 0, line, file) < 0) { |
file | 114 | net/inet/skbuff.c | file,line); |
file | 120 | net/inet/skbuff.c | file,line); |
file | 128 | net/inet/skbuff.c | file,line); |
file | 135 | net/inet/skbuff.c | printk("File: %s Line %d, passed a non skb!\n", file,line); |
file | 142 | net/inet/skbuff.c | printk("File: %s Line %d, Dubious size setting!\n",file,line); |
file | 65 | net/socket.c | static int sock_lseek(struct inode *inode, struct file *file, off_t offset, |
file | 67 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
file | 69 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, char *buf, |
file | 71 | net/socket.c | static int sock_readdir(struct inode *inode, struct file *file, |
file | 73 | net/socket.c | static void sock_close(struct inode *inode, struct file *file); |
file | 74 | net/socket.c | static int sock_select(struct inode *inode, struct file *file, int which, select_table *seltable); |
file | 75 | net/socket.c | static int sock_ioctl(struct inode *inode, struct file *file, |
file | 77 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on); |
file | 159 | net/socket.c | struct file *file; |
file | 165 | net/socket.c | file = get_empty_filp(); |
file | 166 | net/socket.c | if (!file) |
file | 174 | net/socket.c | file->f_count = 0; |
file | 179 | net/socket.c | current->files->fd[fd] = file; |
file | 180 | net/socket.c | file->f_op = &socket_file_ops; |
file | 181 | net/socket.c | file->f_mode = 3; |
file | 182 | net/socket.c | file->f_flags = O_RDWR; |
file | 183 | net/socket.c | file->f_count = 1; |
file | 184 | net/socket.c | file->f_inode = inode; |
file | 187 | net/socket.c | file->f_pos = 0; |
file | 207 | net/socket.c | static inline struct socket *sockfd_lookup(int fd, struct file **pfile) |
file | 209 | net/socket.c | struct file *file; |
file | 212 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 215 | net/socket.c | inode = file->f_inode; |
file | 220 | net/socket.c | *pfile = file; |
file | 305 | net/socket.c | static int sock_lseek(struct inode *inode, struct file *file, off_t offset, int whence) |
file | 315 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *ubuf, int size) |
file | 334 | net/socket.c | return(sock->ops->read(sock, ubuf, size, (file->f_flags & O_NONBLOCK))); |
file | 342 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, char *ubuf, int size) |
file | 363 | net/socket.c | return(sock->ops->write(sock, ubuf, size,(file->f_flags & O_NONBLOCK))); |
file | 370 | net/socket.c | static int sock_readdir(struct inode *inode, struct file *file, struct dirent *dirent, |
file | 381 | net/socket.c | int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
file | 395 | net/socket.c | static int sock_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 415 | net/socket.c | void sock_close(struct inode *inode, struct file *filp) |
file | 439 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on) |
file | 787 | net/socket.c | struct file *file; |
file | 793 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 795 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
file | 820 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
file | 850 | net/socket.c | struct file *file; |
file | 855 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
file | 857 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
file | 885 | net/socket.c | i = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags); |
file | 951 | net/socket.c | struct file *file; |
file | 954 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 964 | net/socket.c | return(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags)); |
file | 977 | net/socket.c | struct file *file; |
file | 981 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 995 | net/socket.c | return(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK), |
file | 1011 | net/socket.c | struct file *file; |
file | 1014 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1028 | net/socket.c | return(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags)); |
file | 1041 | net/socket.c | struct file *file; |
file | 1045 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1058 | net/socket.c | len=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK), |
file | 1077 | net/socket.c | struct file *file; |
file | 1079 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1095 | net/socket.c | struct file *file; |
file | 1097 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1115 | net/socket.c | struct file *file; |
file | 1117 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1130 | net/socket.c | int sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |