tag | line | file | source code |
file | 101 | arch/alpha/kernel/osf_sys.c | struct file * file; |
file | 104 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 106 | arch/alpha/kernel/osf_sys.c | if (!file->f_op || !file->f_op->readdir) |
file | 120 | arch/alpha/kernel/osf_sys.c | error = file->f_op->readdir(file->f_inode, file, &buf, osf_filldir); |
file | 172 | arch/alpha/kernel/osf_sys.c | struct file * file = NULL; |
file | 177 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 180 | arch/alpha/kernel/osf_sys.c | return do_mmap(file, addr, len, prot, flags, off); |
file | 207 | arch/alpha/kernel/osf_sys.c | struct file * file; |
file | 216 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 218 | arch/alpha/kernel/osf_sys.c | if (!(inode = file->f_inode)) |
file | 282 | arch/alpha/kernel/osf_sys.c | struct file dummy; |
file | 50 | arch/i386/kernel/sys_i386.c | struct file * file = NULL; |
file | 58 | arch/i386/kernel/sys_i386.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 62 | arch/i386/kernel/sys_i386.c | return do_mmap(file, get_user(buffer), get_user(buffer+1), |
file | 42 | arch/mips/kernel/syscall.c | struct file * file = NULL; |
file | 45 | arch/mips/kernel/syscall.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 50 | arch/mips/kernel/syscall.c | return do_mmap(file, addr, len, prot, flags, offset); |
file | 33 | arch/sparc/kernel/sunos_ioctl.c | struct file *filp; |
file | 49 | arch/sparc/kernel/sys_sparc.c | struct file *file = current->files->fd[fd]; |
file | 50 | arch/sparc/kernel/sys_sparc.c | struct inode *inode = file->f_inode; |
file | 71 | arch/sparc/kernel/sys_sparc.c | error = file->f_op->write(inode,file,buf,count); |
file | 65 | arch/sparc/kernel/sys_sunos.c | struct file * file = NULL; |
file | 74 | arch/sparc/kernel/sys_sunos.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 85 | arch/sparc/kernel/sys_sunos.c | if(MAJOR(file->f_inode->i_rdev) == MEM_MAJOR && |
file | 86 | arch/sparc/kernel/sys_sunos.c | MINOR(file->f_inode->i_rdev) == 5) { |
file | 88 | arch/sparc/kernel/sys_sunos.c | file = 0; |
file | 92 | arch/sparc/kernel/sys_sunos.c | retval = do_mmap(file, addr, len, prot, flags, off); |
file | 375 | arch/sparc/kernel/sys_sunos.c | struct file * file; |
file | 380 | arch/sparc/kernel/sys_sunos.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 382 | arch/sparc/kernel/sys_sunos.c | if (!file->f_op || !file->f_op->readdir) |
file | 393 | arch/sparc/kernel/sys_sunos.c | error = file->f_op->readdir(file->f_inode, file, &buf, sunos_filldir); |
file | 399 | arch/sparc/kernel/sys_sunos.c | put_user(file->f_pos, &lastdirent->d_off); |
file | 444 | arch/sparc/kernel/sys_sunos.c | struct file * file; |
file | 449 | arch/sparc/kernel/sys_sunos.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 451 | arch/sparc/kernel/sys_sunos.c | if (!file->f_op || !file->f_op->readdir) |
file | 463 | arch/sparc/kernel/sys_sunos.c | error = file->f_op->readdir(file->f_inode, file, &buf, sunos_filldirentry); |
file | 469 | arch/sparc/kernel/sys_sunos.c | put_user(file->f_pos, basep); |
file | 635 | arch/sparc/kernel/sys_sunos.c | struct file *file; |
file | 637 | arch/sparc/kernel/sys_sunos.c | file = current->files->fd [fd]; |
file | 638 | arch/sparc/kernel/sys_sunos.c | inode = file->f_inode; |
file | 663 | arch/sparc/kernel/sys_sunos.c | sizeof (server), file->f_flags); |
file | 3158 | drivers/block/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
file | 3355 | drivers/block/floppy.c | static int floppy_read(struct inode * inode, struct file * filp, |
file | 3366 | drivers/block/floppy.c | static int floppy_write(struct inode * inode, struct file * filp, |
file | 3386 | drivers/block/floppy.c | static void floppy_release(struct inode * inode, struct file * filp) |
file | 3413 | drivers/block/floppy.c | static int floppy_open(struct inode * inode, struct file * filp) |
file | 778 | drivers/block/hd.c | static int hd_ioctl(struct inode * inode, struct file * file, |
file | 890 | drivers/block/hd.c | static int hd_open(struct inode * inode, struct file * filp) |
file | 907 | drivers/block/hd.c | static void hd_release(struct inode * inode, struct file * file) |
file | 2085 | drivers/block/ide-cd.c | struct file *file, unsigned int cmd, unsigned long arg) |
file | 2557 | drivers/block/ide-cd.c | int ide_cdrom_open (struct inode *ip, struct file *fp, ide_drive_t *drive) |
file | 2605 | drivers/block/ide-cd.c | void ide_cdrom_release (struct inode *inode, struct file *file, ide_drive_t *drive) |
file | 878 | drivers/block/ide-tape.c | int idetape_chrdev_read (struct inode *inode, struct file *file, char *buf, int count); |
file | 879 | drivers/block/ide-tape.c | int idetape_chrdev_write (struct inode *inode, struct file *file, const char *buf, int count); |
file | 880 | drivers/block/ide-tape.c | int idetape_chrdev_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg); |
file | 881 | drivers/block/ide-tape.c | int idetape_chrdev_open (struct inode *inode, struct file *file); |
file | 882 | drivers/block/ide-tape.c | void idetape_chrdev_release (struct inode *inode,struct file *file); |
file | 2800 | drivers/block/ide-tape.c | int idetape_blkdev_ioctl (ide_drive_t *drive, struct inode *inode, struct file *file, |
file | 3581 | drivers/block/ide-tape.c | int idetape_blkdev_open (struct inode *inode, struct file *filp, ide_drive_t *drive) |
file | 3604 | drivers/block/ide-tape.c | void idetape_blkdev_release (struct inode *inode, struct file *filp, ide_drive_t *drive) |
file | 3645 | drivers/block/ide-tape.c | int idetape_chrdev_read (struct inode *inode, struct file *file, char *buf, int count) |
file | 3713 | drivers/block/ide-tape.c | int idetape_chrdev_write (struct inode *inode, struct file *file, const char *buf, int count) |
file | 3813 | drivers/block/ide-tape.c | int idetape_chrdev_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) |
file | 3862 | drivers/block/ide-tape.c | return (idetape_blkdev_ioctl (drive,inode,file,cmd,arg)); |
file | 4086 | drivers/block/ide-tape.c | int idetape_chrdev_open (struct inode *inode, struct file *filp) |
file | 4148 | drivers/block/ide-tape.c | void idetape_chrdev_release (struct inode *inode, struct file *filp) |
file | 1761 | drivers/block/ide.c | static int ide_open(struct inode * inode, struct file * filp) |
file | 1802 | drivers/block/ide.c | static void ide_release(struct inode * inode, struct file * file) |
file | 1811 | drivers/block/ide.c | ide_cdrom_release (inode, file, drive); |
file | 1817 | drivers/block/ide.c | idetape_blkdev_release (inode, file, drive); |
file | 1892 | drivers/block/ide.c | static int ide_ioctl (struct inode *inode, struct file *file, |
file | 2086 | drivers/block/ide.c | return ide_cdrom_ioctl(drive, inode, file, cmd, arg); |
file | 2090 | drivers/block/ide.c | return idetape_blkdev_ioctl(drive, inode, file, cmd, arg); |
file | 614 | drivers/block/ide.h | int ide_cdrom_ioctl (ide_drive_t *, struct inode *, struct file *, unsigned int, unsigned long); |
file | 616 | drivers/block/ide.h | int ide_cdrom_open (struct inode *, struct file *, ide_drive_t *); |
file | 617 | drivers/block/ide.h | void ide_cdrom_release (struct inode *, struct file *, ide_drive_t *); |
file | 665 | drivers/block/ide.h | int idetape_blkdev_ioctl (ide_drive_t *drive, struct inode *inode, struct file *file, |
file | 667 | drivers/block/ide.h | int idetape_blkdev_open (struct inode *inode, struct file *filp, ide_drive_t *drive); |
file | 668 | drivers/block/ide.h | void idetape_blkdev_release (struct inode *inode, struct file *filp, ide_drive_t *drive); |
file | 243 | drivers/block/loop.c | struct file *file; |
file | 246 | drivers/block/loop.c | if (arg >= NR_OPEN || !(file = current->files->fd[arg])) |
file | 250 | drivers/block/loop.c | inode = file->f_inode; |
file | 256 | drivers/block/loop.c | int error = blkdev_open(inode, file); |
file | 373 | drivers/block/loop.c | static int lo_ioctl(struct inode * inode, struct file * file, |
file | 413 | drivers/block/loop.c | static int lo_open(struct inode *inode, struct file *file) |
file | 433 | drivers/block/loop.c | static void lo_release(struct inode *inode, struct file *file) |
file | 133 | drivers/block/md.c | static int md_ioctl (struct inode *inode, struct file *file, |
file | 148 | drivers/block/md.c | return (pers[minor & 0x7f]->ioctl (inode, file, cmd, arg)); |
file | 345 | drivers/block/md.c | static int md_open (struct inode *inode, struct file *file) |
file | 354 | drivers/block/md.c | static void md_release (struct inode *inode, struct file *file) |
file | 73 | drivers/block/rd.c | static int crd_load(struct file *fp, struct file *outfp); |
file | 146 | drivers/block/rd.c | static int rd_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) |
file | 178 | drivers/block/rd.c | static int initrd_read(struct inode *inode,struct file *file,char *buf, |
file | 183 | drivers/block/rd.c | left = initrd_end-initrd_start-file->f_pos; |
file | 186 | drivers/block/rd.c | memcpy_tofs(buf,(char *) initrd_start+file->f_pos,count); |
file | 187 | drivers/block/rd.c | file->f_pos += count; |
file | 192 | drivers/block/rd.c | static void initrd_release(struct inode *inode,struct file *file) |
file | 219 | drivers/block/rd.c | static int rd_open(struct inode * inode, struct file * filp) |
file | 239 | drivers/block/rd.c | static void rd_release(struct inode * inode, struct file * filp) |
file | 325 | drivers/block/rd.c | identify_ramdisk_image(kdev_t device, struct file *fp, int start_block) |
file | 420 | drivers/block/rd.c | struct file infile, outfile; |
file | 558 | drivers/block/rd.c | static struct file *crd_infp, *crd_outfp; |
file | 647 | drivers/block/rd.c | crd_load(struct file * fp, struct file *outfp) |
file | 193 | drivers/block/xd.c | static int xd_open (struct inode *inode,struct file *file) |
file | 240 | drivers/block/xd.c | static int xd_ioctl (struct inode *inode,struct file *file,u_int cmd,u_long arg) |
file | 293 | drivers/block/xd.c | static void xd_release (struct inode *inode, struct file *file) |
file | 611 | drivers/cdrom/aztcd.c | static int aztcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
file | 1455 | drivers/cdrom/aztcd.c | int aztcd_open(struct inode *ip, struct file *fp) |
file | 1499 | drivers/cdrom/aztcd.c | static void aztcd_release(struct inode * inode, struct file * file) |
file | 1503 | drivers/cdrom/aztcd.c | printk("inode: %p, inode->i_rdev: %x file: %p\n",inode,inode->i_rdev,file); |
file | 236 | drivers/cdrom/cdu31a.c | static int scd_open(struct inode *inode, struct file *filp); |
file | 2379 | drivers/cdrom/cdu31a.c | struct file *file, |
file | 2727 | drivers/cdrom/cdu31a.c | struct file *filp) |
file | 2850 | drivers/cdrom/cdu31a.c | struct file *filp) |
file | 532 | drivers/cdrom/cm206.c | static int cm206_open(struct inode *ip, struct file *fp) |
file | 569 | drivers/cdrom/cm206.c | static void cm206_release(struct inode *ip, struct file *fp) |
file | 885 | drivers/cdrom/cm206.c | static int cm206_ioctl(struct inode * inode, struct file * file, |
file | 87 | drivers/cdrom/gscd.c | static int gscd_ioctl (struct inode *, struct file *, unsigned int, unsigned long); |
file | 88 | drivers/cdrom/gscd.c | static int gscd_open (struct inode *, struct file *); |
file | 89 | drivers/cdrom/gscd.c | static void gscd_release (struct inode *, struct file *); |
file | 202 | drivers/cdrom/gscd.c | static int gscd_ioctl (struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
file | 362 | drivers/cdrom/gscd.c | static int gscd_open (struct inode *ip, struct file *fp) |
file | 395 | drivers/cdrom/gscd.c | static void gscd_release (struct inode * inode, struct file * file) |
file | 286 | drivers/cdrom/mcd.c | mcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, |
file | 1095 | drivers/cdrom/mcd.c | mcd_open(struct inode *ip, struct file *fp) |
file | 1134 | drivers/cdrom/mcd.c | mcd_release(struct inode * inode, struct file * file) |
file | 206 | drivers/cdrom/mcdx.c | static int mcdx_open(struct inode*, struct file*); |
file | 207 | drivers/cdrom/mcdx.c | static void mcdx_close(struct inode*, struct file*); |
file | 208 | drivers/cdrom/mcdx.c | static int mcdx_ioctl(struct inode*, struct file*, unsigned int, unsigned long); |
file | 278 | drivers/cdrom/mcdx.c | struct inode* ip, struct file* fp, |
file | 622 | drivers/cdrom/mcdx.c | mcdx_open(struct inode *ip, struct file *fp) |
file | 790 | drivers/cdrom/mcdx.c | mcdx_close(struct inode *ip, struct file *fp) |
file | 1734 | drivers/cdrom/optcd.c | static int opt_ioctl(struct inode *ip, struct file *fp, |
file | 1865 | drivers/cdrom/optcd.c | static int opt_open(struct inode *ip, struct file *fp) |
file | 1915 | drivers/cdrom/optcd.c | static void opt_release(struct inode *ip, struct file *fp) |
file | 3831 | drivers/cdrom/sbpcd.c | static int sbpcd_ioctl(struct inode *inode, struct file *file, u_int cmd, |
file | 4881 | drivers/cdrom/sbpcd.c | static int sbpcd_open(struct inode *ip, struct file *fp) |
file | 4966 | drivers/cdrom/sbpcd.c | static void sbpcd_release(struct inode * ip, struct file * file) |
file | 653 | drivers/cdrom/sjcd.c | static int sjcd_ioctl( struct inode *ip, struct file *fp, |
file | 1309 | drivers/cdrom/sjcd.c | int sjcd_open( struct inode *ip, struct file *fp ){ |
file | 1384 | drivers/cdrom/sjcd.c | static void sjcd_release( struct inode *inode, struct file *file ){ |
file | 192 | drivers/cdrom/sonycd535.c | static int cdu_open(struct inode *inode, struct file *filp); |
file | 1072 | drivers/cdrom/sonycd535.c | struct file *file, |
file | 1390 | drivers/cdrom/sonycd535.c | struct file *filp) |
file | 1438 | drivers/cdrom/sonycd535.c | struct file *filp) |
file | 281 | drivers/char/apm_bios.c | static int do_open(struct inode *, struct file *); |
file | 282 | drivers/char/apm_bios.c | static void do_release(struct inode *, struct file *); |
file | 283 | drivers/char/apm_bios.c | static int do_read(struct inode *, struct file *, char *, int); |
file | 284 | drivers/char/apm_bios.c | static int do_select(struct inode *, struct file *, int, |
file | 286 | drivers/char/apm_bios.c | static int do_ioctl(struct inode *, struct file *, u_int, u_long); |
file | 775 | drivers/char/apm_bios.c | static int do_read(struct inode *inode, struct file *fp, char *buf, int count) |
file | 815 | drivers/char/apm_bios.c | static int do_select(struct inode *inode, struct file *fp, int sel_type, |
file | 831 | drivers/char/apm_bios.c | static int do_ioctl(struct inode * inode, struct file *filp, |
file | 862 | drivers/char/apm_bios.c | static void do_release(struct inode * inode, struct file * filp) |
file | 897 | drivers/char/apm_bios.c | static int do_open(struct inode * inode, struct file * filp) |
file | 96 | drivers/char/atixlmouse.c | static int fasync_mouse(struct inode *inode, struct file *filp, int on) |
file | 106 | drivers/char/atixlmouse.c | static void release_mouse(struct inode * inode, struct file * file) |
file | 108 | drivers/char/atixlmouse.c | fasync_mouse(inode, file, 0); |
file | 117 | drivers/char/atixlmouse.c | static int open_mouse(struct inode * inode, struct file * file) |
file | 137 | drivers/char/atixlmouse.c | static int write_mouse(struct inode * inode, struct file * file, const char * buffer, int count) |
file | 142 | drivers/char/atixlmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
file | 173 | drivers/char/atixlmouse.c | static int mouse_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 107 | drivers/char/busmouse.c | static int fasync_mouse(struct inode *inode, struct file *filp, int on) |
file | 121 | drivers/char/busmouse.c | static void close_mouse(struct inode * inode, struct file * file) |
file | 123 | drivers/char/busmouse.c | fasync_mouse(inode, file, 0); |
file | 135 | drivers/char/busmouse.c | static int open_mouse(struct inode * inode, struct file * file) |
file | 158 | drivers/char/busmouse.c | static int write_mouse(struct inode * inode, struct file * file, const char * buffer, int count) |
file | 167 | drivers/char/busmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
file | 219 | drivers/char/busmouse.c | static int mouse_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 2244 | drivers/char/console.c | int con_open(struct tty_struct *tty, struct file * filp) |
file | 2143 | drivers/char/cyclades.c | cy_ioctl(struct tty_struct *tty, struct file * file, |
file | 2316 | drivers/char/cyclades.c | cy_close(struct tty_struct * tty, struct file * filp) |
file | 2443 | drivers/char/cyclades.c | block_til_ready(struct tty_struct *tty, struct file * filp, |
file | 2594 | drivers/char/cyclades.c | cy_open(struct tty_struct *tty, struct file * filp) |
file | 52 | drivers/char/ftape/ftape-eof.h | extern int ftape_file_no(daddr_t * file, daddr_t * block); |
file | 60 | drivers/char/ftape/kernel-interface.c | static int ftape_open(struct inode *ino, struct file *filep); |
file | 61 | drivers/char/ftape/kernel-interface.c | static void ftape_close(struct inode *ino, struct file *filep); |
file | 62 | drivers/char/ftape/kernel-interface.c | static int ftape_ioctl(struct inode *ino, struct file *filep, |
file | 64 | drivers/char/ftape/kernel-interface.c | static int ftape_read(struct inode *ino, struct file *fp, char *buff, |
file | 66 | drivers/char/ftape/kernel-interface.c | static int ftape_write(struct inode *ino, struct file *fp, const char *buff, |
file | 215 | drivers/char/ftape/kernel-interface.c | static int ftape_open(struct inode *ino, struct file *filep) |
file | 264 | drivers/char/ftape/kernel-interface.c | static void ftape_close(struct inode *ino, struct file *filep) |
file | 289 | drivers/char/ftape/kernel-interface.c | static int ftape_ioctl(struct inode *ino, struct file *filep, |
file | 313 | drivers/char/ftape/kernel-interface.c | static int ftape_read(struct inode *ino, struct file *fp, char *buff, int req_len) |
file | 336 | drivers/char/ftape/kernel-interface.c | static int ftape_write(struct inode *ino, struct file *fp, const char *buff, int req_len) |
file | 53 | drivers/char/ftape/tracing.c | int trace_call(int level, char *file, char *name) |
file | 66 | drivers/char/ftape/tracing.c | printk(KERN_INFO "[%03d]%s+%s (%s)\n", (int) trace_id++, indent, file, name); |
file | 71 | drivers/char/ftape/tracing.c | void trace_exit(int level, char *file, char *name) |
file | 84 | drivers/char/ftape/tracing.c | printk(KERN_INFO "[%03d]%s-%s (%s)\n", (int) trace_id++, indent, file, name); |
file | 88 | drivers/char/ftape/tracing.c | void trace_log(char *file, char *name) |
file | 100 | drivers/char/ftape/tracing.c | printk(KERN_INFO "[%03d]%s%s (%s) - ", (int) trace_id++, indent, file, name); |
file | 93 | drivers/char/ftape/tracing.h | extern int trace_call(int level, char *file, char *name); |
file | 94 | drivers/char/ftape/tracing.h | extern void trace_exit(int level, char *file, char *name); |
file | 95 | drivers/char/ftape/tracing.h | extern void trace_log(char *file, char *name); |
file | 629 | drivers/char/istallion.c | static int stli_open(struct tty_struct *tty, struct file *filp); |
file | 630 | drivers/char/istallion.c | static void stli_close(struct tty_struct *tty, struct file *filp); |
file | 636 | drivers/char/istallion.c | static int stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg); |
file | 653 | drivers/char/istallion.c | static int stli_memread(struct inode *ip, struct file *fp, char *buf, int count); |
file | 654 | drivers/char/istallion.c | static int stli_memwrite(struct inode *ip, struct file *fp, const char *buf, int count); |
file | 655 | drivers/char/istallion.c | static int stli_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg); |
file | 661 | drivers/char/istallion.c | static int stli_waitcarrier(stlibrd_t *brdp, stliport_t *portp, struct file *filp); |
file | 867 | drivers/char/istallion.c | static int stli_open(struct tty_struct *tty, struct file *filp) |
file | 994 | drivers/char/istallion.c | static void stli_close(struct tty_struct *tty, struct file *filp) |
file | 1378 | drivers/char/istallion.c | static int stli_waitcarrier(stlibrd_t *brdp, stliport_t *portp, struct file *filp) |
file | 1858 | drivers/char/istallion.c | static int stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) |
file | 1866 | drivers/char/istallion.c | printk("stli_ioctl(tty=%x,file=%x,cmd=%x,arg=%x)\n", (int) tty, (int) file, cmd, (int) arg); |
file | 4177 | drivers/char/istallion.c | static int stli_memread(struct inode *ip, struct file *fp, char *buf, int count) |
file | 4226 | drivers/char/istallion.c | static int stli_memwrite(struct inode *ip, struct file *fp, const char *buf, int count) |
file | 4440 | drivers/char/istallion.c | static int stli_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
file | 298 | drivers/char/lp.c | static int lp_write(struct inode * inode, struct file * file, const char * buf, int count) |
file | 312 | drivers/char/lp.c | static int lp_lseek(struct inode * inode, struct file * file, |
file | 318 | drivers/char/lp.c | static int lp_open(struct inode * inode, struct file * file) |
file | 338 | drivers/char/lp.c | if ((LP_F(minor) & LP_ABORTOPEN) && !(file->f_flags & O_NONBLOCK)) { |
file | 376 | drivers/char/lp.c | static void lp_release(struct inode * inode, struct file * file) |
file | 392 | drivers/char/lp.c | static int lp_ioctl(struct inode *inode, struct file *file, |
file | 33 | drivers/char/mem.c | static int read_ram(struct inode * inode, struct file * file, char * buf, int count) |
file | 38 | drivers/char/mem.c | static int write_ram(struct inode * inode, struct file * file, const char * buf, int count) |
file | 43 | drivers/char/mem.c | static int read_mem(struct inode * inode, struct file * file, char * buf, int count) |
file | 45 | drivers/char/mem.c | unsigned long p = file->f_pos; |
file | 67 | drivers/char/mem.c | file->f_pos += read; |
file | 71 | drivers/char/mem.c | static int write_mem(struct inode * inode, struct file * file, const char * buf, int count) |
file | 73 | drivers/char/mem.c | unsigned long p = file->f_pos; |
file | 95 | drivers/char/mem.c | file->f_pos += written; |
file | 99 | drivers/char/mem.c | static int mmap_mem(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 120 | drivers/char/mem.c | static int read_kmem(struct inode *inode, struct file *file, char *buf, int count) |
file | 124 | drivers/char/mem.c | read1 = read_mem(inode, file, buf, count); |
file | 127 | drivers/char/mem.c | read2 = vread(buf + read1, (char *) ((unsigned long) file->f_pos), count - read1); |
file | 130 | drivers/char/mem.c | file->f_pos += read2; |
file | 134 | drivers/char/mem.c | static int read_port(struct inode * inode, struct file * file,char * buf, int count) |
file | 136 | drivers/char/mem.c | unsigned int i = file->f_pos; |
file | 144 | drivers/char/mem.c | file->f_pos = i; |
file | 148 | drivers/char/mem.c | static int write_port(struct inode * inode, struct file * file, const char * buf, int count) |
file | 150 | drivers/char/mem.c | unsigned int i = file->f_pos; |
file | 158 | drivers/char/mem.c | file->f_pos = i; |
file | 162 | drivers/char/mem.c | static int read_null(struct inode * node, struct file * file, char * buf, int count) |
file | 167 | drivers/char/mem.c | static int write_null(struct inode * inode, struct file * file, const char * buf, int count) |
file | 172 | drivers/char/mem.c | static int read_zero(struct inode * node, struct file * file, char * buf, int count) |
file | 183 | drivers/char/mem.c | static int mmap_zero(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 192 | drivers/char/mem.c | static int read_full(struct inode * node, struct file * file, char * buf,int count) |
file | 197 | drivers/char/mem.c | static int write_full(struct inode * inode, struct file * file, const char * buf, int count) |
file | 207 | drivers/char/mem.c | static int null_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 209 | drivers/char/mem.c | return file->f_pos=0; |
file | 219 | drivers/char/mem.c | static int memory_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 223 | drivers/char/mem.c | file->f_pos = offset; |
file | 224 | drivers/char/mem.c | return file->f_pos; |
file | 226 | drivers/char/mem.c | file->f_pos += offset; |
file | 227 | drivers/char/mem.c | return file->f_pos; |
file | 231 | drivers/char/mem.c | if (file->f_pos < 0) |
file | 233 | drivers/char/mem.c | return file->f_pos; |
file | 330 | drivers/char/mem.c | static int memory_open(struct inode * inode, struct file * filp) |
file | 44 | drivers/char/mouse.c | static int mouse_open(struct inode * inode, struct file * file) |
file | 48 | drivers/char/mouse.c | file->f_op = NULL; |
file | 52 | drivers/char/mouse.c | file->f_op = c->fops; |
file | 58 | drivers/char/mouse.c | if (file->f_op == NULL) |
file | 60 | drivers/char/mouse.c | return file->f_op->open(inode,file); |
file | 83 | drivers/char/msbusmouse.c | static int fasync_mouse(struct inode *inode, struct file *filp, int on) |
file | 93 | drivers/char/msbusmouse.c | static void release_mouse(struct inode * inode, struct file * file) |
file | 95 | drivers/char/msbusmouse.c | fasync_mouse(inode, file, 0); |
file | 104 | drivers/char/msbusmouse.c | static int open_mouse(struct inode * inode, struct file * file) |
file | 123 | drivers/char/msbusmouse.c | static int write_mouse(struct inode * inode, struct file * file, const char * buffer, int count) |
file | 128 | drivers/char/msbusmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
file | 149 | drivers/char/msbusmouse.c | static int mouse_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 751 | drivers/char/n_tty.c | static int read_chan(struct tty_struct *tty, struct file *file, |
file | 773 | drivers/char/n_tty.c | if (file->f_inode->i_rdev != CONSOLE_DEV && |
file | 833 | drivers/char/n_tty.c | if (tty_hung_up_p(file)) |
file | 837 | drivers/char/n_tty.c | if (file->f_flags & O_NONBLOCK) { |
file | 923 | drivers/char/n_tty.c | static int write_chan(struct tty_struct * tty, struct file * file, |
file | 932 | drivers/char/n_tty.c | if (L_TOSTOP(tty) && file->f_inode->i_rdev != CONSOLE_DEV) { |
file | 945 | drivers/char/n_tty.c | if (tty_hung_up_p(file) || (tty->link && !tty->link->count)) { |
file | 965 | drivers/char/n_tty.c | if (file->f_flags & O_NONBLOCK) { |
file | 977 | drivers/char/n_tty.c | struct file * file, int sel_type, select_table *wait) |
file | 990 | drivers/char/n_tty.c | if (tty_hung_up_p(file)) |
file | 125 | drivers/char/psaux.c | static int fasync_aux(struct inode *inode, struct file *filp, int on); |
file | 256 | drivers/char/psaux.c | static void release_aux(struct inode * inode, struct file * file) |
file | 258 | drivers/char/psaux.c | fasync_aux(inode, file, 0); |
file | 270 | drivers/char/psaux.c | static void release_qp(struct inode * inode, struct file * file) |
file | 274 | drivers/char/psaux.c | fasync_aux(inode, file, 0); |
file | 288 | drivers/char/psaux.c | static int fasync_aux(struct inode *inode, struct file *filp, int on) |
file | 303 | drivers/char/psaux.c | static int open_aux(struct inode * inode, struct file * file) |
file | 334 | drivers/char/psaux.c | static int open_qp(struct inode * inode, struct file * file) |
file | 378 | drivers/char/psaux.c | static int write_aux(struct inode * inode, struct file * file, const char * buffer, int count) |
file | 400 | drivers/char/psaux.c | static int write_qp(struct inode * inode, struct file * file, const char * buffer, int count) |
file | 419 | drivers/char/psaux.c | static int read_aux(struct inode * inode, struct file * file, char * buffer, int count) |
file | 426 | drivers/char/psaux.c | if (file->f_flags & O_NONBLOCK) |
file | 454 | drivers/char/psaux.c | static int aux_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 64 | drivers/char/pty.c | static void pty_close(struct tty_struct * tty, struct file * filp) |
file | 184 | drivers/char/pty.c | int pty_open(struct tty_struct *tty, struct file * filp) |
file | 234 | drivers/char/random.c | static int random_read(struct inode * inode, struct file * file, |
file | 236 | drivers/char/random.c | static int random_read_unlimited(struct inode * inode, struct file * file, |
file | 238 | drivers/char/random.c | static int random_select(struct inode *inode, struct file *file, |
file | 240 | drivers/char/random.c | static int random_write(struct inode * inode, struct file * file, |
file | 242 | drivers/char/random.c | static int random_ioctl(struct inode * inode, struct file * file, |
file | 646 | drivers/char/random.c | random_read(struct inode * inode, struct file * file, char * buf, int nbytes) |
file | 664 | drivers/char/random.c | if (file->f_flags & O_NONBLOCK) { |
file | 689 | drivers/char/random.c | random_read_unlimited(struct inode * inode, struct file * file, |
file | 696 | drivers/char/random.c | random_select(struct inode *inode, struct file *file, |
file | 708 | drivers/char/random.c | random_write(struct inode * inode, struct file * file, |
file | 731 | drivers/char/random.c | random_ioctl(struct inode * inode, struct file * file, |
file | 783 | drivers/char/random.c | (void) random_write(0, file, (const char *) p, size); |
file | 214 | drivers/char/scc.c | int scc_open(struct tty_struct *tty, struct file *filp); |
file | 215 | drivers/char/scc.c | static void scc_close(struct tty_struct *tty, struct file *filp); |
file | 222 | drivers/char/scc.c | static int scc_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg); |
file | 1955 | drivers/char/scc.c | int scc_open(struct tty_struct *tty, struct file * filp) |
file | 2010 | drivers/char/scc.c | scc_close(struct tty_struct *tty, struct file * filp) |
file | 2092 | drivers/char/scc.c | scc_ioctl(struct tty_struct *tty, struct file * file, unsigned int cmd, unsigned long arg) |
file | 1870 | drivers/char/serial.c | static int rs_ioctl(struct tty_struct *tty, struct file * file, |
file | 2078 | drivers/char/serial.c | static void rs_close(struct tty_struct *tty, struct file * filp) |
file | 2212 | drivers/char/serial.c | static int block_til_ready(struct tty_struct *tty, struct file * filp, |
file | 2350 | drivers/char/serial.c | int rs_open(struct tty_struct *tty, struct file * filp) |
file | 54 | drivers/char/softdog.c | static int softdog_open(struct inode *inode, struct file *file) |
file | 67 | drivers/char/softdog.c | static void softdog_release(struct inode *inode, struct file *file) |
file | 78 | drivers/char/softdog.c | static int softdog_write(struct inode *inode, struct file *file, const char *data, int len) |
file | 476 | drivers/char/stallion.c | static int stl_open(struct tty_struct *tty, struct file *filp); |
file | 477 | drivers/char/stallion.c | static void stl_close(struct tty_struct *tty, struct file *filp); |
file | 483 | drivers/char/stallion.c | static int stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg); |
file | 491 | drivers/char/stallion.c | static int stl_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg); |
file | 515 | drivers/char/stallion.c | static int stl_waitcarrier(stlport_t *portp, struct file *filp); |
file | 664 | drivers/char/stallion.c | static int stl_open(struct tty_struct *tty, struct file *filp) |
file | 785 | drivers/char/stallion.c | static int stl_waitcarrier(stlport_t *portp, struct file *filp) |
file | 835 | drivers/char/stallion.c | static void stl_close(struct tty_struct *tty, struct file *filp) |
file | 1207 | drivers/char/stallion.c | static int stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) |
file | 1214 | drivers/char/stallion.c | printk("stl_ioctl(tty=%x,file=%x,cmd=%x,arg=%x)\n", (int) tty, (int) file, cmd, (int) arg); |
file | 3091 | drivers/char/stallion.c | static int stl_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
file | 1881 | drivers/char/tpqic02.c | static int qic02_tape_lseek(struct inode * inode, struct file * file, off_t offset, int origin) |
file | 1919 | drivers/char/tpqic02.c | static int qic02_tape_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 2094 | drivers/char/tpqic02.c | static int qic02_tape_write(struct inode * inode, struct file * filp, const char * buf, int count) |
file | 2246 | drivers/char/tpqic02.c | static int qic02_tape_open(struct inode * inode, struct file * filp) |
file | 2432 | drivers/char/tpqic02.c | static void qic02_tape_release(struct inode * inode, struct file * filp) |
file | 2554 | drivers/char/tpqic02.c | static int qic02_tape_ioctl(struct inode * inode, struct file * filp, |
file | 113 | drivers/char/tty_io.c | static int tty_read(struct inode *, struct file *, char *, int); |
file | 114 | drivers/char/tty_io.c | static int tty_write(struct inode *, struct file *, const char *, int); |
file | 115 | drivers/char/tty_io.c | static int tty_select(struct inode *, struct file *, int, select_table *); |
file | 116 | drivers/char/tty_io.c | static int tty_open(struct inode *, struct file *); |
file | 117 | drivers/char/tty_io.c | static void tty_release(struct inode *, struct file *); |
file | 118 | drivers/char/tty_io.c | static int tty_ioctl(struct inode * inode, struct file * file, |
file | 120 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on); |
file | 176 | drivers/char/tty_io.c | struct file *f; |
file | 315 | drivers/char/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
file | 320 | drivers/char/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, const char * buf, int count) |
file | 325 | drivers/char/tty_io.c | static int hung_up_tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 330 | drivers/char/tty_io.c | static int hung_up_tty_ioctl(struct inode * inode, struct file * file, |
file | 336 | drivers/char/tty_io.c | static int tty_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 372 | drivers/char/tty_io.c | struct file * filp; |
file | 456 | drivers/char/tty_io.c | int tty_hung_up_p(struct file * filp) |
file | 718 | drivers/char/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
file | 723 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
file | 747 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
file | 755 | drivers/char/tty_io.c | static int tty_write(struct inode * inode, struct file * file, const char * buf, int count) |
file | 765 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
file | 783 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(const unsigned char *)buf,(unsigned int)count); |
file | 974 | drivers/char/tty_io.c | static void release_dev(struct file * filp) |
file | 1165 | drivers/char/tty_io.c | static int tty_open(struct inode * inode, struct file * filp) |
file | 1240 | drivers/char/tty_io.c | static void tty_release(struct inode * inode, struct file * filp) |
file | 1245 | drivers/char/tty_io.c | static int tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 1263 | drivers/char/tty_io.c | int fasync_helper(struct inode * inode, struct file * filp, int on, struct fasync_struct **fapp) |
file | 1298 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on) |
file | 1361 | drivers/char/tty_io.c | static int tty_ioctl(struct inode * inode, struct file * file, |
file | 1372 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
file | 1435 | drivers/char/tty_io.c | file->f_flags |= O_NONBLOCK; |
file | 1437 | drivers/char/tty_io.c | file->f_flags &= ~O_NONBLOCK; |
file | 1594 | drivers/char/tty_io.c | retval = (tty->driver.ioctl)(tty, file, |
file | 1600 | drivers/char/tty_io.c | retval = (tty->ldisc.ioctl)(tty, file, |
file | 1630 | 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 | 196 | drivers/char/vt.c | int vt_ioctl(struct tty_struct *tty, struct file * file, |
file | 108 | drivers/char/wdt.c | static int wdt_lseek(struct inode *inode, struct file *file, off_t offset, |
file | 114 | drivers/char/wdt.c | static int wdt_write(struct inode *inode, struct file *file, const char *buf, int count) |
file | 128 | drivers/char/wdt.c | static int wdt_read(struct inode *inode, struct file *file, char *buf, int count) |
file | 150 | drivers/char/wdt.c | static int wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
file | 156 | drivers/char/wdt.c | static int wdt_open(struct inode *inode, struct file *file) |
file | 186 | drivers/char/wdt.c | static void wdt_release(struct inode *inode, struct file *file) |
file | 723 | drivers/isdn/isdn_common.c | static int isdn_read(struct inode *inode, struct file *file, char *buf, int count) |
file | 733 | drivers/isdn/isdn_common.c | if (!file->private_data) |
file | 738 | drivers/isdn/isdn_common.c | file->private_data = 0; |
file | 741 | drivers/isdn/isdn_common.c | file->f_pos += len; |
file | 756 | drivers/isdn/isdn_common.c | file->f_pos += len; |
file | 774 | drivers/isdn/isdn_common.c | file->f_pos += len; |
file | 779 | drivers/isdn/isdn_common.c | return (isdn_ppp_read(minor - ISDN_MINOR_PPP, file, buf, count)); |
file | 784 | drivers/isdn/isdn_common.c | static int isdn_lseek(struct inode *inode, struct file *file, off_t offset, int orig) |
file | 789 | drivers/isdn/isdn_common.c | static int isdn_write(struct inode *inode, struct file *file, const char *buf, int count) |
file | 827 | drivers/isdn/isdn_common.c | return (isdn_ppp_write(minor - ISDN_MINOR_PPP, file, buf, count)); |
file | 832 | drivers/isdn/isdn_common.c | static int isdn_select(struct inode *inode, struct file *file, int type, select_table * st) |
file | 837 | drivers/isdn/isdn_common.c | if (file->private_data) |
file | 849 | drivers/isdn/isdn_common.c | return (isdn_ppp_select(minor - ISDN_MINOR_PPP, file, type, st)); |
file | 997 | drivers/isdn/isdn_common.c | static int isdn_ioctl(struct inode *inode, struct file *file, uint cmd, ulong arg) |
file | 1351 | drivers/isdn/isdn_common.c | return (isdn_ppp_ioctl(minor - ISDN_MINOR_PPP, file, cmd, arg)); |
file | 1361 | drivers/isdn/isdn_common.c | static int isdn_open(struct inode *ino, struct file *filep) |
file | 1420 | drivers/isdn/isdn_common.c | static void isdn_close(struct inode *ino, struct file *filep) |
file | 178 | drivers/isdn/isdn_ppp.c | int isdn_ppp_open(int minor, struct file *file) |
file | 218 | drivers/isdn/isdn_ppp.c | void isdn_ppp_release(int minor, struct file *file) |
file | 275 | drivers/isdn/isdn_ppp.c | int isdn_ppp_ioctl(int minor, struct file *file, unsigned int cmd, unsigned long arg) |
file | 362 | drivers/isdn/isdn_ppp.c | int isdn_ppp_select(int minor, struct file *file, int type, select_table * st) |
file | 451 | drivers/isdn/isdn_ppp.c | int isdn_ppp_read(int minor, struct file *file, char *buf, int count) |
file | 487 | drivers/isdn/isdn_ppp.c | int isdn_ppp_write(int minor, struct file *file, const char *buf, int count) |
file | 28 | drivers/isdn/isdn_ppp.h | extern int isdn_ppp_read(int , struct file *, char *, int); |
file | 29 | drivers/isdn/isdn_ppp.h | extern int isdn_ppp_write(int , struct file *, const char *, int); |
file | 30 | drivers/isdn/isdn_ppp.h | extern int isdn_ppp_open(int , struct file *); |
file | 39 | drivers/isdn/isdn_ppp.h | extern int isdn_ppp_select(int, struct file *, int, select_table *); |
file | 40 | drivers/isdn/isdn_ppp.h | extern int isdn_ppp_ioctl(int, struct file *, unsigned int, unsigned long); |
file | 41 | drivers/isdn/isdn_ppp.h | extern void isdn_ppp_release(int, struct file *); |
file | 640 | drivers/isdn/isdn_tty.c | static int isdn_tty_ioctl(struct tty_struct *tty, struct file *file, |
file | 770 | drivers/isdn/isdn_tty.c | static int isdn_tty_block_til_ready(struct tty_struct *tty, struct file *filp, modem_info * info) |
file | 900 | drivers/isdn/isdn_tty.c | static int isdn_tty_open(struct tty_struct *tty, struct file *filp) |
file | 954 | drivers/isdn/isdn_tty.c | static void isdn_tty_close(struct tty_struct *tty, struct file *filp) |
file | 191 | drivers/net/ppp.c | static int ppp_tty_read (struct tty_struct *, struct file *, __u8 *, |
file | 193 | drivers/net/ppp.c | static int ppp_tty_write (struct tty_struct *, struct file *, const __u8 *, |
file | 195 | drivers/net/ppp.c | static int ppp_tty_ioctl (struct tty_struct *, struct file *, unsigned int, |
file | 198 | drivers/net/ppp.c | struct file *filp, int sel_type, select_table * wait); |
file | 1674 | drivers/net/ppp.c | ppp_tty_read (struct tty_struct *tty, struct file *file, __u8 * buf, |
file | 1747 | drivers/net/ppp.c | if (file->f_flags & O_NONBLOCK) { |
file | 2060 | drivers/net/ppp.c | ppp_tty_write (struct tty_struct *tty, struct file *file, const __u8 * data, |
file | 2224 | drivers/net/ppp.c | ppp_tty_ioctl (struct tty_struct *tty, struct file * file, |
file | 2544 | drivers/net/ppp.c | error = n_tty_ioctl (tty, file, param2, param3); |
file | 2583 | drivers/net/ppp.c | struct file *filp, int sel_type, select_table * wait) |
file | 1042 | drivers/net/slip.c | slip_ioctl(struct tty_struct *tty, void *file, int cmd, void *arg) |
file | 1178 | drivers/net/slip.c | return n_tty_ioctl(tty, (struct file *) file, cmd, (unsigned long) arg); |
file | 1238 | drivers/net/slip.c | sl_ldisc.ioctl = (int (*)(struct tty_struct *, struct file *, |
file | 3193 | drivers/scsi/53c7,8xx.c | debugger_user_write (struct inode *inode,struct file *filp, |
file | 3246 | drivers/scsi/53c7,8xx.c | debugger_user_read (struct inode *inode,struct file *filp, |
file | 72 | drivers/scsi/sd.c | extern int sd_ioctl(struct inode *, struct file *, unsigned int, unsigned long); |
file | 94 | drivers/scsi/sd.c | static int sd_open(struct inode * inode, struct file * filp) |
file | 147 | 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 | 66 | drivers/scsi/sg.c | static int sg_ioctl(struct inode * inode,struct file * file, |
file | 88 | drivers/scsi/sg.c | static int sg_open(struct inode * inode, struct file * filp) |
file | 150 | drivers/scsi/sg.c | static void sg_close(struct inode * inode, struct file * filp) |
file | 199 | drivers/scsi/sg.c | static int sg_read(struct inode *inode,struct file *filp,char *buf,int count) |
file | 295 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,const char *buf,int count) |
file | 459 | drivers/scsi/sg.c | static int sg_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 60 | drivers/scsi/sr.c | static int sr_open(struct inode *, struct file *); |
file | 63 | drivers/scsi/sr.c | extern int sr_ioctl(struct inode *, struct file *, unsigned int, unsigned long); |
file | 68 | drivers/scsi/sr.c | static void sr_release(struct inode * inode, struct file * file) |
file | 519 | drivers/scsi/sr.c | static int sr_open(struct inode * inode, struct file * filp) |
file | 87 | 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 | 397 | drivers/scsi/st.c | flush_buffer(struct inode * inode, struct file * filp, int seek_next) |
file | 453 | drivers/scsi/st.c | scsi_tape_open(struct inode * inode, struct file * filp) |
file | 659 | drivers/scsi/st.c | scsi_tape_close(struct inode * inode, struct file * filp) |
file | 744 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, const char * buf, int count) |
file | 998 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 1286 | drivers/scsi/st.c | st_int_ioctl(struct inode * inode,struct file * file, |
file | 1497 | drivers/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTFSF, 0x3fff); |
file | 1658 | drivers/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTFSF, 1); |
file | 1660 | drivers/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTBSF, 1); |
file | 1751 | drivers/scsi/st.c | st_ioctl(struct inode * inode,struct file * file, |
file | 1804 | drivers/scsi/st.c | i = flush_buffer(inode, file, mtc.mt_op == MTSEEK || |
file | 1827 | drivers/scsi/st.c | if (st_int_ioctl(inode, file, MTLOCK, 0)) { |
file | 1841 | drivers/scsi/st.c | st_int_ioctl(inode, file, MTUNLOCK, 0); /* Ignore result! */ |
file | 1847 | drivers/scsi/st.c | return st_int_ioctl(inode, file, mtc.mt_op, mtc.mt_count); |
file | 1857 | drivers/scsi/st.c | i = flush_buffer(inode, file, FALSE); |
file | 1916 | drivers/scsi/st.c | i = flush_buffer(inode, file, 0); |
file | 80 | drivers/sound/audio.c | audio_open (int dev, struct fileinfo *file) |
file | 85 | drivers/sound/audio.c | int mode = file->mode & O_ACCMODE; |
file | 101 | drivers/sound/audio.c | audio_release (dev, file); |
file | 111 | drivers/sound/audio.c | audio_release (dev, file); |
file | 159 | drivers/sound/audio.c | audio_release (int dev, struct fileinfo *file) |
file | 164 | drivers/sound/audio.c | mode = file->mode & O_ACCMODE; |
file | 208 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, const char *buf, int count) |
file | 294 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, char *buf, int count) |
file | 356 | drivers/sound/audio.c | audio_ioctl (int dev, struct fileinfo *file, |
file | 476 | drivers/sound/audio.c | audio_select (int dev, struct fileinfo *file, int sel_type, select_table_handle * wait) |
file | 491 | drivers/sound/audio.c | return DMAbuf_select (dev, file, sel_type, wait); |
file | 505 | drivers/sound/audio.c | return DMAbuf_select (dev, file, sel_type, wait); |
file | 1618 | drivers/sound/dmabuf.c | DMAbuf_select (int dev, struct fileinfo *file, int sel_type, select_table_handle * wait) |
file | 205 | drivers/sound/midibuf.c | MIDIbuf_open (int dev, struct fileinfo *file) |
file | 210 | drivers/sound/midibuf.c | mode = file->mode & O_ACCMODE; |
file | 276 | drivers/sound/midibuf.c | MIDIbuf_release (int dev, struct fileinfo *file) |
file | 282 | drivers/sound/midibuf.c | mode = file->mode & O_ACCMODE; |
file | 342 | drivers/sound/midibuf.c | MIDIbuf_write (int dev, struct fileinfo *file, const char *buf, int count) |
file | 410 | drivers/sound/midibuf.c | MIDIbuf_read (int dev, struct fileinfo *file, char *buf, int count) |
file | 471 | drivers/sound/midibuf.c | MIDIbuf_ioctl (int dev, struct fileinfo *file, |
file | 507 | drivers/sound/midibuf.c | MIDIbuf_select (int dev, struct fileinfo *file, int sel_type, select_table_handle * wait) |
file | 96 | drivers/sound/patmgr.c | pmgr_read (int dev, struct fileinfo *file, char *buf, int count) |
file | 138 | drivers/sound/patmgr.c | pmgr_write (int dev, struct fileinfo *file, const char *buf, int count) |
file | 104 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, char *buf, int count) |
file | 117 | drivers/sound/sequencer.c | return pmgr_read (dev - 1, file, buf, count); |
file | 123 | drivers/sound/sequencer.c | if ((file->flags & (O_NONBLOCK) ? |
file | 265 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, const char *buf, int count) |
file | 270 | drivers/sound/sequencer.c | int mode = file->mode & O_ACCMODE; |
file | 280 | drivers/sound/sequencer.c | return pmgr_write (dev - 1, file, buf, count); |
file | 351 | drivers/sound/sequencer.c | mode = file->mode & O_ACCMODE; |
file | 366 | drivers/sound/sequencer.c | if (!seq_queue (event_rec, (file->flags & (O_NONBLOCK) ? |
file | 374 | drivers/sound/sequencer.c | if (!processed && (file->flags & (O_NONBLOCK) ? |
file | 1079 | drivers/sound/sequencer.c | sequencer_open (int dev, struct fileinfo *file) |
file | 1088 | drivers/sound/sequencer.c | mode = file->mode & O_ACCMODE; |
file | 1276 | drivers/sound/sequencer.c | sequencer_release (int dev, struct fileinfo *file) |
file | 1279 | drivers/sound/sequencer.c | int mode = file->mode & O_ACCMODE; |
file | 1299 | drivers/sound/sequencer.c | if (mode != OPEN_READ && !(file->flags & (O_NONBLOCK) ? |
file | 1528 | drivers/sound/sequencer.c | sequencer_ioctl (int dev, struct fileinfo *file, |
file | 1532 | drivers/sound/sequencer.c | int mode = file->mode & O_ACCMODE; |
file | 1614 | drivers/sound/sequencer.c | mode = file->mode & O_ACCMODE; |
file | 1898 | drivers/sound/sequencer.c | sequencer_select (int dev, struct fileinfo *file, int sel_type, select_table_handle * wait) |
file | 21 | drivers/sound/sound_calls.h | int DMAbuf_select(int dev, struct fileinfo *file, int sel_type, select_table_handle * wait); |
file | 28 | drivers/sound/sound_calls.h | int audio_read (int dev, struct fileinfo *file, char *buf, int count); |
file | 29 | drivers/sound/sound_calls.h | int audio_write (int dev, struct fileinfo *file, const char *buf, int count); |
file | 30 | drivers/sound/sound_calls.h | int audio_open (int dev, struct fileinfo *file); |
file | 31 | drivers/sound/sound_calls.h | void audio_release (int dev, struct fileinfo *file); |
file | 32 | drivers/sound/sound_calls.h | int audio_ioctl (int dev, struct fileinfo *file, |
file | 34 | 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_handle * wait); |
file | 43 | drivers/sound/sound_calls.h | int sequencer_read (int dev, struct fileinfo *file, char *buf, int count); |
file | 44 | drivers/sound/sound_calls.h | int sequencer_write (int dev, struct fileinfo *file, const char *buf, int count); |
file | 45 | drivers/sound/sound_calls.h | int sequencer_open (int dev, struct fileinfo *file); |
file | 46 | drivers/sound/sound_calls.h | void sequencer_release (int dev, struct fileinfo *file); |
file | 47 | drivers/sound/sound_calls.h | int sequencer_ioctl (int dev, struct fileinfo *file, |
file | 49 | drivers/sound/sound_calls.h | int sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
file | 57 | drivers/sound/sound_calls.h | int sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table_handle * wait); |
file | 63 | drivers/sound/sound_calls.h | int MIDIbuf_read (int dev, struct fileinfo *file, char *buf, int count); |
file | 64 | drivers/sound/sound_calls.h | int MIDIbuf_write (int dev, struct fileinfo *file, const char *buf, int count); |
file | 65 | drivers/sound/sound_calls.h | int MIDIbuf_open (int dev, struct fileinfo *file); |
file | 66 | drivers/sound/sound_calls.h | void MIDIbuf_release (int dev, struct fileinfo *file); |
file | 67 | drivers/sound/sound_calls.h | int MIDIbuf_ioctl (int dev, struct fileinfo *file, |
file | 69 | drivers/sound/sound_calls.h | int MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
file | 73 | drivers/sound/sound_calls.h | int MIDIbuf_select(int dev, struct fileinfo *file, int sel_type, select_table_handle * wait); |
file | 94 | drivers/sound/sound_calls.h | int sound_read_sw (int dev, struct fileinfo *file, char *buf, int count); |
file | 95 | drivers/sound/sound_calls.h | int sound_write_sw (int dev, struct fileinfo *file, const char *buf, int count); |
file | 96 | drivers/sound/sound_calls.h | int sound_open_sw (int dev, struct fileinfo *file); |
file | 97 | drivers/sound/sound_calls.h | void sound_release_sw (int dev, struct fileinfo *file); |
file | 98 | drivers/sound/sound_calls.h | int sound_ioctl_sw (int dev, struct fileinfo *file, |
file | 202 | drivers/sound/sound_calls.h | int pmgr_read (int dev, struct fileinfo *file, char * buf, int count); |
file | 203 | drivers/sound/sound_calls.h | int pmgr_write (int dev, struct fileinfo *file, const char * buf, int count); |
file | 244 | drivers/sound/sound_calls.h | int pss_read (int dev, struct fileinfo *file, char *buf, int count); |
file | 245 | drivers/sound/sound_calls.h | int pss_write (int dev, struct fileinfo *file, char *buf, int count); |
file | 246 | drivers/sound/sound_calls.h | int pss_open (int dev, struct fileinfo *file); |
file | 247 | drivers/sound/sound_calls.h | void pss_release (int dev, struct fileinfo *file); |
file | 248 | drivers/sound/sound_calls.h | int pss_ioctl (int dev, struct fileinfo *file, |
file | 250 | drivers/sound/sound_calls.h | int pss_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
file | 336 | drivers/sound/sound_switch.c | sound_read_sw (int dev, struct fileinfo *file, char *buf, int count) |
file | 350 | drivers/sound/sound_switch.c | return audio_read (dev, file, buf, count); |
file | 357 | drivers/sound/sound_switch.c | return sequencer_read (dev, file, buf, count); |
file | 363 | drivers/sound/sound_switch.c | return MIDIbuf_read (dev, file, buf, count); |
file | 374 | drivers/sound/sound_switch.c | sound_write_sw (int dev, struct fileinfo *file, const char *buf, int count) |
file | 385 | drivers/sound/sound_switch.c | return sequencer_write (dev, file, buf, count); |
file | 393 | drivers/sound/sound_switch.c | return audio_write (dev, file, buf, count); |
file | 399 | drivers/sound/sound_switch.c | return MIDIbuf_write (dev, file, buf, count); |
file | 408 | drivers/sound/sound_switch.c | sound_open_sw (int dev, struct fileinfo *file) |
file | 441 | drivers/sound/sound_switch.c | if ((retval = sequencer_open (dev, file)) < 0) |
file | 448 | drivers/sound/sound_switch.c | if ((retval = MIDIbuf_open (dev, file)) < 0) |
file | 457 | drivers/sound/sound_switch.c | if ((retval = audio_open (dev, file)) < 0) |
file | 473 | drivers/sound/sound_switch.c | sound_release_sw (int dev, struct fileinfo *file) |
file | 493 | drivers/sound/sound_switch.c | sequencer_release (dev, file); |
file | 499 | drivers/sound/sound_switch.c | MIDIbuf_release (dev, file); |
file | 507 | drivers/sound/sound_switch.c | audio_release (dev, file); |
file | 518 | drivers/sound/sound_switch.c | sound_ioctl_sw (int dev, struct fileinfo *file, |
file | 563 | drivers/sound/sound_switch.c | return sequencer_ioctl (dev, file, cmd, arg); |
file | 571 | drivers/sound/sound_switch.c | return audio_ioctl (dev, file, cmd, arg); |
file | 577 | drivers/sound/sound_switch.c | return MIDIbuf_ioctl (dev, file, cmd, arg); |
file | 69 | drivers/sound/soundcard.c | sound_read (inode_handle * inode, file_handle * file, char *buf, int count) |
file | 75 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
file | 81 | drivers/sound/soundcard.c | sound_write (inode_handle * inode, file_handle * file, const char *buf, int count) |
file | 87 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
file | 93 | drivers/sound/soundcard.c | sound_lseek (inode_handle * inode, file_handle * file, off_t offset, int orig) |
file | 99 | drivers/sound/soundcard.c | sound_open (inode_handle * inode, file_handle * file) |
file | 119 | drivers/sound/soundcard.c | tmp_file.flags = file_get_flags (file); |
file | 140 | drivers/sound/soundcard.c | sound_release (inode_handle * inode, file_handle * file) |
file | 146 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
file | 155 | drivers/sound/soundcard.c | sound_ioctl (inode_handle * inode, file_handle * file, |
file | 162 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
file | 193 | drivers/sound/soundcard.c | sound_select (inode_handle * inode, file_handle * file, int sel_type, select_table_handle * wait) |
file | 199 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
file | 234 | drivers/sound/soundcard.c | sound_mmap (inode_handle * inode, file_handle * file, vm_area_handle * vma) |
file | 242 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
file | 60 | fs/binfmt_aout.c | while (file.f_op->write(inode,&file,(char *)(addr),(nr)) != (nr)) goto close_coredump |
file | 63 | fs/binfmt_aout.c | if (file.f_op->lseek) { \ |
file | 64 | fs/binfmt_aout.c | if (file.f_op->lseek(inode,&file,(offset),0) != (offset)) \ |
file | 66 | fs/binfmt_aout.c | } else file.f_pos = (offset) |
file | 82 | fs/binfmt_aout.c | struct file file; |
file | 119 | fs/binfmt_aout.c | file.f_mode = 3; |
file | 120 | fs/binfmt_aout.c | file.f_flags = 0; |
file | 121 | fs/binfmt_aout.c | file.f_count = 1; |
file | 122 | fs/binfmt_aout.c | file.f_inode = inode; |
file | 123 | fs/binfmt_aout.c | file.f_pos = 0; |
file | 124 | fs/binfmt_aout.c | file.f_reada = 0; |
file | 125 | fs/binfmt_aout.c | file.f_op = inode->i_op->default_file_ops; |
file | 126 | fs/binfmt_aout.c | if (file.f_op->open) |
file | 127 | fs/binfmt_aout.c | if (file.f_op->open(inode,&file)) |
file | 129 | fs/binfmt_aout.c | if (!file.f_op->write) |
file | 179 | fs/binfmt_aout.c | if (file.f_op->release) |
file | 180 | fs/binfmt_aout.c | file.f_op->release(inode,&file); |
file | 260 | fs/binfmt_aout.c | struct file * file; |
file | 338 | fs/binfmt_aout.c | file = current->files->fd[fd]; |
file | 339 | fs/binfmt_aout.c | if (!file->f_op || !file->f_op->mmap) { |
file | 349 | fs/binfmt_aout.c | error = do_mmap(file, N_TXTADDR(ex), ex.a_text, |
file | 360 | fs/binfmt_aout.c | error = do_mmap(file, N_DATADDR(ex), ex.a_data, |
file | 411 | fs/binfmt_aout.c | struct file * file; |
file | 419 | fs/binfmt_aout.c | file = current->files->fd[fd]; |
file | 420 | fs/binfmt_aout.c | inode = file->f_inode; |
file | 422 | fs/binfmt_aout.c | if (!file || !file->f_op) |
file | 426 | fs/binfmt_aout.c | if (file->f_op->lseek) { |
file | 427 | fs/binfmt_aout.c | if ((error = file->f_op->lseek(inode, file, 0, 0)) != 0) |
file | 430 | fs/binfmt_aout.c | file->f_pos = 0; |
file | 433 | fs/binfmt_aout.c | error = file->f_op->read(inode, file, (char *) &ex, sizeof(ex)); |
file | 458 | fs/binfmt_aout.c | error = do_mmap(file, start_addr, ex.a_text + ex.a_data, |
file | 158 | fs/binfmt_elf.c | struct file * file; |
file | 213 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
file | 229 | fs/binfmt_elf.c | error = do_mmap(file, |
file | 337 | fs/binfmt_elf.c | struct file * file; |
file | 404 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
file | 576 | fs/binfmt_elf.c | error = do_mmap(file, |
file | 706 | fs/binfmt_elf.c | struct file * file; |
file | 718 | fs/binfmt_elf.c | file = current->files->fd[fd]; |
file | 719 | fs/binfmt_elf.c | inode = file->f_inode; |
file | 722 | fs/binfmt_elf.c | if (!file || !file->f_op) |
file | 726 | fs/binfmt_elf.c | if (file->f_op->lseek) { |
file | 727 | fs/binfmt_elf.c | if ((error = file->f_op->lseek(inode, file, 0, 0)) != 0) |
file | 730 | fs/binfmt_elf.c | file->f_pos = 0; |
file | 733 | fs/binfmt_elf.c | error = file->f_op->read(inode, file, (char *) &elf_ex, sizeof(elf_ex)); |
file | 773 | fs/binfmt_elf.c | error = do_mmap(file, |
file | 820 | fs/binfmt_elf.c | static int dump_write(struct file *file, const void *addr, int nr) |
file | 822 | fs/binfmt_elf.c | return file->f_op->write(file->f_inode, file, addr, nr) == nr; |
file | 825 | fs/binfmt_elf.c | static int dump_seek(struct file *file, off_t off) |
file | 827 | fs/binfmt_elf.c | if (file->f_op->lseek) { |
file | 828 | fs/binfmt_elf.c | if (file->f_op->lseek(file->f_inode, file, off, 0) != off) |
file | 831 | fs/binfmt_elf.c | file->f_pos = off; |
file | 898 | fs/binfmt_elf.c | do { if (!dump_write(file, (addr), (nr))) return 0; } while(0) |
file | 900 | fs/binfmt_elf.c | do { if (!dump_seek(file, (off))) return 0; } while(0) |
file | 902 | fs/binfmt_elf.c | static int writenote(struct memelfnote *men, struct file *file) |
file | 913 | fs/binfmt_elf.c | DUMP_SEEK(roundup((unsigned long)file->f_pos, 4)); /* XXX */ |
file | 915 | fs/binfmt_elf.c | DUMP_SEEK(roundup((unsigned long)file->f_pos, 4)); /* XXX */ |
file | 923 | fs/binfmt_elf.c | if (!dump_write(&file, (addr), (nr))) \ |
file | 926 | fs/binfmt_elf.c | if (!dump_seek(&file, (off))) \ |
file | 938 | fs/binfmt_elf.c | struct file file; |
file | 1019 | fs/binfmt_elf.c | file.f_mode = 3; |
file | 1020 | fs/binfmt_elf.c | file.f_flags = 0; |
file | 1021 | fs/binfmt_elf.c | file.f_count = 1; |
file | 1022 | fs/binfmt_elf.c | file.f_inode = inode; |
file | 1023 | fs/binfmt_elf.c | file.f_pos = 0; |
file | 1024 | fs/binfmt_elf.c | file.f_reada = 0; |
file | 1025 | fs/binfmt_elf.c | file.f_op = inode->i_op->default_file_ops; |
file | 1026 | fs/binfmt_elf.c | if (file.f_op->open) |
file | 1027 | fs/binfmt_elf.c | if (file.f_op->open(inode,&file)) |
file | 1029 | fs/binfmt_elf.c | if (!file.f_op->write) |
file | 1177 | fs/binfmt_elf.c | if (!writenote(¬es[i], &file)) |
file | 1199 | fs/binfmt_elf.c | if ((off_t) file.f_pos != offset) { |
file | 1202 | fs/binfmt_elf.c | (off_t) file.f_pos, offset); |
file | 1206 | fs/binfmt_elf.c | if (file.f_op->release) |
file | 1207 | 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 | 254 | fs/buffer.c | int file_fsync (struct inode *inode, struct file *filp) |
file | 261 | fs/buffer.c | struct file * file; |
file | 264 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
file | 266 | fs/buffer.c | if (!file->f_op || !file->f_op->fsync) |
file | 268 | fs/buffer.c | if (file->f_op->fsync(inode,file)) |
file | 275 | fs/buffer.c | struct file * file; |
file | 278 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
file | 280 | fs/buffer.c | if (!file->f_op || !file->f_op->fsync) |
file | 283 | fs/buffer.c | if (file->f_op->fsync(inode,file)) |
file | 211 | fs/devices.c | int blkdev_open(struct inode * inode, struct file * filp) |
file | 271 | fs/devices.c | int chrdev_open(struct inode * inode, struct file * filp) |
file | 77 | fs/dquot.c | (vfsmnt->mnt_quotas[type] != (struct file *)NULL)); |
file | 218 | fs/dquot.c | struct file *filp = dquot->dq_mnt->mnt_quotas[type]; |
file | 221 | fs/dquot.c | if (!(dquot->dq_flags & DQ_MOD) || (filp == (struct file *)NULL)) |
file | 248 | fs/dquot.c | struct file *filp = dquot->dq_mnt->mnt_quotas[type]; |
file | 251 | fs/dquot.c | if (filp == (struct file *)NULL) |
file | 545 | fs/dquot.c | (vfsmnt->mnt_quotas[type] == (struct file *)0)) |
file | 938 | fs/dquot.c | vfsmnt->mnt_quotas[cnt] == (struct file *)NULL) |
file | 944 | fs/dquot.c | vfsmnt->mnt_quotas[cnt] = (struct file *)NULL; |
file | 952 | fs/dquot.c | struct file *filp = (struct file *)NULL; |
file | 961 | fs/dquot.c | if (vfsmnt->mnt_quotas[type] != (struct file *)NULL) |
file | 973 | fs/dquot.c | if ((filp = get_empty_filp()) != (struct file *)NULL) { |
file | 114 | fs/exec.c | struct file *f, **fpp; |
file | 160 | fs/exec.c | struct file * file; |
file | 166 | fs/exec.c | file = current->files->fd[fd]; |
file | 168 | fs/exec.c | if (file && file->f_inode && file->f_op && file->f_op->read) { |
file | 327 | fs/exec.c | struct file file; |
file | 332 | fs/exec.c | file.f_mode = 1; |
file | 333 | fs/exec.c | file.f_flags = 0; |
file | 334 | fs/exec.c | file.f_count = 1; |
file | 335 | fs/exec.c | file.f_inode = inode; |
file | 336 | fs/exec.c | file.f_pos = 0; |
file | 337 | fs/exec.c | file.f_reada = 0; |
file | 338 | fs/exec.c | file.f_op = inode->i_op->default_file_ops; |
file | 339 | fs/exec.c | if (file.f_op->open) |
file | 340 | fs/exec.c | if (file.f_op->open(inode,&file)) |
file | 342 | fs/exec.c | if (!file.f_op || !file.f_op->read) |
file | 344 | fs/exec.c | if (file.f_op->lseek) { |
file | 345 | fs/exec.c | if (file.f_op->lseek(inode,&file,offset,0) != offset) |
file | 348 | fs/exec.c | file.f_pos = offset; |
file | 352 | fs/exec.c | result = file.f_op->read(inode, &file, addr, count); |
file | 358 | fs/exec.c | result = file.f_op->read(inode, &file, addr, count); |
file | 361 | fs/exec.c | if (file.f_op->release) |
file | 362 | fs/exec.c | file.f_op->release(inode,&file); |
file | 23 | fs/ext/dir.c | static int ext_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 28 | fs/ext/dir.c | static int ext_readdir(struct inode *, struct file *, void *, filldir_t); |
file | 66 | fs/ext/dir.c | static int ext_readdir(struct inode * inode, struct file * filp, |
file | 35 | fs/ext/file.c | static int ext_file_read(struct inode *, struct file *, char *, int); |
file | 36 | fs/ext/file.c | static int ext_file_write(struct inode *, struct file *, const char *, int); |
file | 75 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 200 | 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 | 100 | fs/ext2/dir.c | static int ext2_readdir (struct inode * inode, struct file * filp, |
file | 39 | fs/ext2/file.c | static int ext2_file_write (struct inode *, struct file *, const char *, int); |
file | 40 | fs/ext2/file.c | static void ext2_release_file (struct inode *, struct file *); |
file | 83 | fs/ext2/file.c | static int ext2_file_write (struct inode * inode, struct file * filp, |
file | 208 | 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 | 32 | fs/fat/dir.c | static int fat_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
file | 96 | fs/fat/dir.c | struct file *filp, |
file | 321 | fs/fat/dir.c | struct file *filp, |
file | 380 | fs/fat/dir.c | int fat_dir_ioctl(struct inode * inode, struct file * filp, |
file | 156 | fs/fat/file.c | struct file *filp, |
file | 270 | fs/fat/file.c | struct file *filp, |
file | 52 | fs/fat/mmap.c | struct file filp; |
file | 94 | fs/fat/mmap.c | int fat_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 18 | fs/fcntl.c | extern int sock_fcntl (struct file *, unsigned int cmd, unsigned long arg); |
file | 58 | fs/fcntl.c | struct file * filp; |
file | 13 | fs/fifo.c | static int fifo_open(struct inode * inode,struct file * filp) |
file | 17 | fs/file_table.c | struct file * first_file = NULL; |
file | 24 | fs/file_table.c | static inline void insert_file_free(struct file *file) |
file | 26 | fs/file_table.c | file->f_count = 0; |
file | 27 | fs/file_table.c | file->f_next = first_file; |
file | 28 | fs/file_table.c | file->f_prev = first_file->f_prev; |
file | 29 | fs/file_table.c | file->f_next->f_prev = file; |
file | 30 | fs/file_table.c | file->f_prev->f_next = file; |
file | 31 | fs/file_table.c | first_file = file; |
file | 37 | fs/file_table.c | static inline void remove_file_free(struct file *file) |
file | 39 | fs/file_table.c | if (first_file == file) |
file | 41 | fs/file_table.c | file->f_next->f_prev = file->f_prev; |
file | 42 | fs/file_table.c | file->f_prev->f_next = file->f_next; |
file | 43 | fs/file_table.c | file->f_next = file->f_prev = NULL; |
file | 49 | fs/file_table.c | static inline void put_last_free(struct file *file) |
file | 51 | fs/file_table.c | file->f_prev = first_file->f_prev; |
file | 52 | fs/file_table.c | file->f_prev->f_next = file; |
file | 53 | fs/file_table.c | file->f_next = first_file; |
file | 54 | fs/file_table.c | file->f_next->f_prev = file; |
file | 64 | fs/file_table.c | struct file * file; |
file | 73 | fs/file_table.c | file = (struct file *) __get_free_page(GFP_KERNEL); |
file | 75 | fs/file_table.c | if (!file) |
file | 78 | fs/file_table.c | nr_files += i = PAGE_SIZE/sizeof(struct file); |
file | 81 | fs/file_table.c | file->f_count = 0, |
file | 82 | fs/file_table.c | file->f_next = file->f_prev = first_file = file++, |
file | 86 | fs/file_table.c | insert_file_free(file++); |
file | 101 | fs/file_table.c | struct file * get_empty_filp(void) |
file | 104 | fs/file_table.c | struct file * f; |
file | 129 | fs/file_table.c | struct file *filp; |
file | 144 | fs/file_table.c | struct file *filp; |
file | 147 | fs/hpfs/hpfs_fs.c | static int hpfs_file_read(struct inode *, struct file *, char *, int); |
file | 188 | fs/hpfs/hpfs_fs.c | static int hpfs_dir_read(struct inode *inode, struct file *filp, |
file | 190 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, |
file | 881 | fs/hpfs/hpfs_fs.c | static int hpfs_file_read(struct inode *inode, struct file *filp, |
file | 1367 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, void * dirent, |
file | 1582 | fs/hpfs/hpfs_fs.c | static int hpfs_dir_read(struct inode *inode, struct file *filp, |
file | 226 | fs/inode.c | struct file * file; |
file | 230 | fs/inode.c | for (file = first_file, i=0; i<nr_files; i++, file=file->f_next) { |
file | 231 | fs/inode.c | if (!file->f_count || !file->f_inode || |
file | 232 | fs/inode.c | file->f_inode->i_dev != dev) |
file | 234 | 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 | 24 | fs/isofs/dir.c | static int isofs_readdir(struct inode *, struct file *, void *, filldir_t); |
file | 108 | fs/isofs/dir.c | static int do_isofs_readdir(struct inode *inode, struct file *filp, |
file | 265 | fs/isofs/dir.c | static int isofs_readdir(struct inode *inode, struct file *filp, |
file | 76 | fs/locks.c | static int flock_make_lock(struct file *filp, struct file_lock *fl, |
file | 78 | fs/locks.c | static int posix_make_lock(struct file *filp, struct file_lock *fl, |
file | 85 | fs/locks.c | static int flock_lock_file(struct file *filp, struct file_lock *caller, |
file | 87 | fs/locks.c | static int posix_lock_file(struct file *filp, struct file_lock *caller, |
file | 156 | fs/locks.c | struct file *filp; |
file | 177 | fs/locks.c | struct file *filp; |
file | 219 | fs/locks.c | struct file *filp; |
file | 261 | fs/locks.c | void locks_remove_locks(struct task_struct *task, struct file *filp) |
file | 286 | fs/locks.c | static int posix_make_lock(struct file *filp, struct file_lock *fl, |
file | 341 | fs/locks.c | static int flock_make_lock(struct file *filp, struct file_lock *fl, |
file | 473 | fs/locks.c | static int flock_lock_file(struct file *filp, struct file_lock *caller, |
file | 555 | fs/locks.c | static int posix_lock_file(struct file *filp, struct file_lock *caller, |
file | 17 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 22 | fs/minix/dir.c | static int minix_readdir(struct inode *, struct file *, void *, filldir_t); |
file | 60 | fs/minix/dir.c | static int minix_readdir(struct inode * inode, struct file * filp, |
file | 30 | fs/minix/file.c | static int minix_file_write(struct inode *, struct file *, const char *, int); |
file | 69 | 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 V1_minix_sync_file(struct inode * inode, struct file * file) |
file | 308 | fs/minix/fsync.c | int V2_minix_sync_file(struct inode * inode, struct file * file) |
file | 333 | fs/minix/fsync.c | int minix_sync_file(struct inode * inode, struct file * file) |
file | 336 | fs/minix/fsync.c | return V1_minix_sync_file(inode, file); |
file | 338 | fs/minix/fsync.c | return V2_minix_sync_file(inode, file); |
file | 26 | fs/ncpfs/dir.c | ncp_dir_read(struct inode *inode, struct file *filp, char *buf, int count); |
file | 29 | fs/ncpfs/dir.c | ncp_readdir(struct inode *inode, struct file *filp, |
file | 181 | fs/ncpfs/dir.c | ncp_dir_read(struct inode *inode, struct file *filp, char *buf, int count) |
file | 198 | fs/ncpfs/dir.c | ncp_readdir(struct inode *inode, struct file *filp, |
file | 27 | fs/ncpfs/file.c | ncp_fsync(struct inode *inode, struct file *file) |
file | 83 | fs/ncpfs/file.c | ncp_file_read(struct inode *inode, struct file *file, char *buf, int count) |
file | 108 | fs/ncpfs/file.c | pos = file->f_pos; |
file | 152 | fs/ncpfs/file.c | file->f_pos = pos; |
file | 167 | fs/ncpfs/file.c | ncp_file_write(struct inode *inode, struct file *file, const char *buf, |
file | 203 | fs/ncpfs/file.c | pos = file->f_pos; |
file | 205 | fs/ncpfs/file.c | if (file->f_flags & O_APPEND) |
file | 239 | fs/ncpfs/file.c | file->f_pos = pos; |
file | 29 | fs/ncpfs/inode.c | extern int close_fp(struct file *filp); |
file | 162 | fs/ncpfs/inode.c | struct file *ncp_filp; |
file | 163 | fs/ncpfs/inode.c | struct file *wdog_filp; |
file | 164 | fs/ncpfs/inode.c | struct file *msg_filp; |
file | 18 | fs/ncpfs/ioctl.c | ncp_ioctl (struct inode * inode, struct file * filp, |
file | 132 | fs/ncpfs/mmap.c | ncp_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 347 | fs/ncpfs/ncplib_kernel.c | struct nw_info_struct *file, |
file | 361 | fs/ncpfs/ncplib_kernel.c | ncp_add_handle_path(server, file->volNumber, |
file | 362 | fs/ncpfs/ncplib_kernel.c | file->DosDirNum, 1, NULL); |
file | 137 | fs/ncpfs/ncplib_kernel.h | struct nw_info_struct *file, |
file | 124 | fs/ncpfs/sock.c | struct file *file; |
file | 130 | fs/ncpfs/sock.c | || ((file = server->wdog_filp) == NULL) |
file | 131 | fs/ncpfs/sock.c | || ((inode = file->f_inode) == NULL) |
file | 176 | fs/ncpfs/sock.c | struct file *file; |
file | 182 | fs/ncpfs/sock.c | || ((file = server->wdog_filp) == NULL) |
file | 183 | fs/ncpfs/sock.c | || ((inode = file->f_inode) == NULL) |
file | 269 | fs/ncpfs/sock.c | struct file *file; |
file | 275 | fs/ncpfs/sock.c | || ((file = server->msg_filp) == NULL) |
file | 276 | fs/ncpfs/sock.c | || ((inode = file->f_inode) == NULL) |
file | 320 | fs/ncpfs/sock.c | struct file *file; |
file | 328 | fs/ncpfs/sock.c | int (*select) (struct inode *, struct file *, int, select_table *); |
file | 345 | fs/ncpfs/sock.c | file = server->ncp_filp; |
file | 346 | fs/ncpfs/sock.c | inode = file->f_inode; |
file | 347 | fs/ncpfs/sock.c | select = file->f_op->select; |
file | 403 | fs/ncpfs/sock.c | if ( !select(inode, file, SEL_IN, &wait_table) |
file | 404 | fs/ncpfs/sock.c | && !select(inode, file, SEL_IN, NULL)) |
file | 21 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *, struct file *filp, char *buf, |
file | 23 | fs/nfs/dir.c | static int nfs_readdir(struct inode *, struct file *, void *, filldir_t); |
file | 74 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
file | 90 | fs/nfs/dir.c | static int nfs_readdir(struct inode *inode, struct file *filp, |
file | 314 | fs/nfs/dir.c | static void nfs_lookup_cache_refresh(struct inode *file, |
file | 318 | fs/nfs/dir.c | kdev_t dev = file->i_dev; |
file | 319 | fs/nfs/dir.c | int fileid = file->i_ino; |
file | 32 | fs/nfs/file.c | static int nfs_file_mmap(struct inode *, struct file *, struct vm_area_struct *); |
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 | 88 | fs/nfs/file.c | static int nfs_file_read(struct inode * inode, struct file * file, |
file | 92 | fs/nfs/file.c | return generic_file_read(inode, file, buf, count); |
file | 95 | fs/nfs/file.c | static int nfs_file_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 98 | fs/nfs/file.c | return generic_file_mmap(inode, file, vma); |
file | 101 | fs/nfs/file.c | static int nfs_fsync(struct inode *inode, struct file *file) |
file | 153 | fs/nfs/file.c | static int nfs_file_write(struct inode *inode, struct file *file, const char *buf, |
file | 172 | fs/nfs/file.c | pos = file->f_pos; |
file | 173 | fs/nfs/file.c | if (file->f_flags & O_APPEND) |
file | 194 | fs/nfs/file.c | file->f_pos = pos; |
file | 30 | fs/nfs/inode.c | extern int close_fp(struct file *filp); |
file | 71 | fs/nfs/inode.c | close_fp(sb->u.nfs_sb.s_server.file); |
file | 93 | fs/nfs/inode.c | struct file *filp; |
file | 130 | fs/nfs/inode.c | server->file = filp; |
file | 492 | fs/nfs/nfsroot.c | struct file *file; |
file | 497 | fs/nfs/nfsroot.c | file = current->files->fd[*fd]; |
file | 498 | fs/nfs/nfsroot.c | inode = file->f_inode; |
file | 1397 | fs/nfs/nfsroot.c | static struct file *nfs_file; /* File descriptor pointing to inode */ |
file | 1494 | fs/nfs/nfsroot.c | s.file = nfs_file; |
file | 109 | fs/nfs/rpcsock.c | struct file *file = rsock->file; |
file | 116 | fs/nfs/rpcsock.c | if (!file->f_op->select(file->f_inode, file, SEL_IN, &wait_table) |
file | 117 | fs/nfs/rpcsock.c | && !file->f_op->select(file->f_inode, file, SEL_IN, NULL)) { |
file | 358 | fs/nfs/rpcsock.c | rpc_makesock(struct file *file) |
file | 369 | fs/nfs/rpcsock.c | rsock->sock = &file->f_inode->u.socket_i; |
file | 370 | fs/nfs/rpcsock.c | rsock->file = file; |
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 | 121 | fs/open.c | struct file * file; |
file | 123 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 125 | fs/open.c | if (!(inode = file->f_inode)) |
file | 127 | fs/open.c | if (S_ISDIR(inode->i_mode) || !(file->f_mode & FMODE_WRITE)) |
file | 275 | fs/open.c | struct file * file; |
file | 278 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 280 | 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 | 365 | fs/open.c | struct file * file; |
file | 369 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 371 | fs/open.c | if (!(inode = file->f_inode)) |
file | 482 | fs/open.c | struct file * f; |
file | 567 | fs/open.c | int close_fp(struct file *filp) |
file | 594 | 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 | 243 | fs/pipe.c | static void pipe_read_release(struct inode * inode, struct file * filp) |
file | 249 | fs/pipe.c | static void pipe_write_release(struct inode * inode, struct file * filp) |
file | 255 | fs/pipe.c | static void pipe_rdwr_release(struct inode * inode, struct file * filp) |
file | 264 | fs/pipe.c | static int pipe_read_open(struct inode * inode, struct file * filp) |
file | 270 | fs/pipe.c | static int pipe_write_open(struct inode * inode, struct file * filp) |
file | 276 | fs/pipe.c | static int pipe_rdwr_open(struct inode * inode, struct file * filp) |
file | 403 | fs/pipe.c | struct file *f[2]; |
file | 62 | fs/proc/array.c | static int read_core(struct inode * inode, struct file * file,char * buf, int count) |
file | 64 | fs/proc/array.c | unsigned long p = file->f_pos, memsize; |
file | 112 | fs/proc/array.c | file->f_pos += read; |
file | 132 | fs/proc/array.c | static int read_profile(struct inode *inode, struct file *file, char *buf, int count) |
file | 134 | fs/proc/array.c | unsigned long p = file->f_pos; |
file | 154 | fs/proc/array.c | file->f_pos += read; |
file | 159 | fs/proc/array.c | static int write_profile(struct inode * inode, struct file * file, const char * buf, int count) |
file | 863 | fs/proc/array.c | static int read_maps (int pid, struct file * file, char * buf, int count) |
file | 879 | fs/proc/array.c | lineno = file->f_pos >> MAPS_LINE_SHIFT; |
file | 880 | fs/proc/array.c | column = file->f_pos & (MAPS_LINE_LENGTH-1); |
file | 948 | fs/proc/array.c | file->f_pos = (lineno << MAPS_LINE_SHIFT) + column; |
file | 1070 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
file | 1089 | fs/proc/array.c | &start, file->f_pos, count); |
file | 1097 | fs/proc/array.c | file->f_pos += length; |
file | 1101 | fs/proc/array.c | if (file->f_pos >= length) { |
file | 1105 | fs/proc/array.c | if (count + file->f_pos > length) |
file | 1106 | fs/proc/array.c | count = length - file->f_pos; |
file | 1107 | fs/proc/array.c | end = count + file->f_pos; |
file | 1108 | fs/proc/array.c | memcpy_tofs(buf, (char *) page + file->f_pos, count); |
file | 1109 | fs/proc/array.c | file->f_pos = end; |
file | 1148 | fs/proc/array.c | static int arraylong_read (struct inode * inode, struct file * file, char * buf, int count) |
file | 1158 | 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 | 121 | 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 | 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 | 38 | fs/proc/net.c | static int proc_readnet(struct inode * inode, struct file * file, |
file | 60 | fs/proc/net.c | file->f_pos, |
file | 62 | fs/proc/net.c | (file->f_flags & O_ACCMODE) == O_RDWR); |
file | 76 | fs/proc/net.c | file->f_pos += length; /* Move down the file */ |
file | 26 | fs/proc/root.c | static int proc_root_readdir(struct inode *, struct file *, void *, filldir_t); |
file | 498 | fs/proc/root.c | int proc_readdir(struct inode * inode, struct file * filp, |
file | 550 | fs/proc/root.c | static int proc_root_readdir(struct inode * inode, struct file * filp, |
file | 32 | fs/proc/scsi.c | static int proc_readscsi(struct inode * inode, struct file * file, |
file | 34 | fs/proc/scsi.c | static int proc_writescsi(struct inode * inode, struct file * file, |
file | 36 | fs/proc/scsi.c | static int proc_scsilseek(struct inode *, struct file *, off_t, int); |
file | 104 | fs/proc/scsi.c | static int proc_readscsi(struct inode * inode, struct file * file, |
file | 128 | fs/proc/scsi.c | file->f_pos, thistime, 0); |
file | 130 | fs/proc/scsi.c | length = get_not_present_info(page, &start, file->f_pos, thistime); |
file | 149 | fs/proc/scsi.c | file->f_pos += length; /* Move down the file */ |
file | 163 | fs/proc/scsi.c | static int proc_writescsi(struct inode * inode, struct file * file, |
file | 186 | fs/proc/scsi.c | static int proc_scsilseek(struct inode * inode, struct file * file, |
file | 191 | fs/proc/scsi.c | file->f_pos = offset; |
file | 192 | fs/proc/scsi.c | return(file->f_pos); |
file | 194 | fs/proc/scsi.c | file->f_pos += offset; |
file | 195 | fs/proc/scsi.c | return(file->f_pos); |
file | 199 | fs/proc/scsi.c | proc_readscsi(inode, file, 0, -1); /* seek in it */ |
file | 200 | fs/proc/scsi.c | return(file->f_pos); |
file | 20 | fs/read_write.c | struct file * file; |
file | 23 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
file | 27 | fs/read_write.c | if (file->f_op && file->f_op->lseek) |
file | 28 | fs/read_write.c | return file->f_op->lseek(file->f_inode,file,offset,origin); |
file | 36 | fs/read_write.c | tmp = file->f_pos + offset; |
file | 39 | fs/read_write.c | if (!file->f_inode) |
file | 41 | fs/read_write.c | tmp = file->f_inode->i_size + offset; |
file | 46 | fs/read_write.c | if (tmp != file->f_pos) { |
file | 47 | fs/read_write.c | file->f_pos = tmp; |
file | 48 | fs/read_write.c | file->f_reada = 0; |
file | 49 | fs/read_write.c | file->f_version = ++event; |
file | 51 | fs/read_write.c | return file->f_pos; |
file | 58 | fs/read_write.c | struct file * file; |
file | 63 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
file | 73 | fs/read_write.c | if (file->f_op && file->f_op->lseek) { |
file | 76 | fs/read_write.c | return file->f_op->lseek(file->f_inode,file,offset,origin); |
file | 84 | fs/read_write.c | tmp = file->f_pos + offset; |
file | 87 | fs/read_write.c | if (!file->f_inode) |
file | 89 | fs/read_write.c | tmp = file->f_inode->i_size + offset; |
file | 94 | fs/read_write.c | if (tmp != file->f_pos) { |
file | 95 | fs/read_write.c | file->f_pos = tmp; |
file | 96 | fs/read_write.c | file->f_reada = 0; |
file | 97 | fs/read_write.c | file->f_version = ++event; |
file | 99 | fs/read_write.c | memcpy_tofs(result, &file->f_pos, sizeof(loff_t)); |
file | 106 | fs/read_write.c | struct file * file; |
file | 109 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
file | 111 | fs/read_write.c | if (!(file->f_mode & 1)) |
file | 113 | fs/read_write.c | if (!file->f_op || !file->f_op->read) |
file | 120 | fs/read_write.c | return file->f_op->read(inode,file,buf,count); |
file | 126 | fs/read_write.c | struct file * file; |
file | 130 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
file | 132 | fs/read_write.c | if (!(file->f_mode & 2)) |
file | 134 | fs/read_write.c | if (!file->f_op || !file->f_op->write) |
file | 156 | fs/read_write.c | written = file->f_op->write(inode,file,buf,count); |
file | 161 | fs/read_write.c | static int sock_readv_writev(int type, struct inode * inode, struct file * file, |
file | 181 | fs/read_write.c | (file->f_flags & O_NONBLOCK), 0, NULL); |
file | 186 | fs/read_write.c | (file->f_flags & O_NONBLOCK), 0); |
file | 189 | fs/read_write.c | typedef int (*IO_fn_t)(struct inode *, struct file *, char *, int); |
file | 191 | fs/read_write.c | static int do_readv_writev(int type, struct inode * inode, struct file * file, |
file | 225 | fs/read_write.c | return sock_readv_writev(type, inode, file, iov, count, tot_len); |
file | 227 | fs/read_write.c | if (!file->f_op) |
file | 230 | fs/read_write.c | fn = file->f_op->read; |
file | 232 | fs/read_write.c | fn = (IO_fn_t) file->f_op->write; |
file | 242 | fs/read_write.c | nr = fn(inode, file, base, len); |
file | 258 | fs/read_write.c | struct file * file; |
file | 261 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode)) |
file | 263 | fs/read_write.c | if (!(file->f_mode & 1)) |
file | 265 | fs/read_write.c | return do_readv_writev(VERIFY_WRITE, inode, file, vector, count); |
file | 271 | fs/read_write.c | struct file * file; |
file | 274 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode)) |
file | 276 | fs/read_write.c | if (!(file->f_mode & 2)) |
file | 279 | fs/read_write.c | error = do_readv_writev(VERIFY_READ, inode, file, vector, 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 | 22 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count); |
file | 25 | fs/smbfs/dir.c | smb_readdir(struct inode *inode, struct file *filp, |
file | 121 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count) |
file | 158 | fs/smbfs/dir.c | smb_readdir(struct inode *inode, struct file *filp, |
file | 26 | fs/smbfs/file.c | smb_fsync(struct inode *inode, struct file *file) |
file | 68 | fs/smbfs/file.c | smb_file_read(struct inode *inode, struct file *file, char *buf, int count) |
file | 90 | fs/smbfs/file.c | pos = file->f_pos; |
file | 134 | fs/smbfs/file.c | file->f_pos = pos; |
file | 145 | fs/smbfs/file.c | smb_file_write(struct inode *inode, struct file *file, const char *buf, int count) |
file | 170 | fs/smbfs/file.c | pos = file->f_pos; |
file | 172 | fs/smbfs/file.c | if (file->f_flags & O_APPEND) |
file | 219 | fs/smbfs/file.c | file->f_pos = pos; |
file | 25 | fs/smbfs/inode.c | extern int close_fp(struct file *filp); |
file | 179 | fs/smbfs/inode.c | struct file *filp; |
file | 17 | fs/smbfs/ioctl.c | smb_ioctl (struct inode * inode, struct file * filp, |
file | 104 | fs/smbfs/mmap.c | smb_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 109 | fs/smbfs/sock.c | struct file *file; |
file | 115 | fs/smbfs/sock.c | || ((file = server->sock_file) == NULL) |
file | 116 | fs/smbfs/sock.c | || ((inode = file->f_inode) == NULL) |
file | 157 | fs/smbfs/sock.c | struct file *file; |
file | 163 | fs/smbfs/sock.c | || ((file = server->sock_file) == NULL) |
file | 164 | fs/smbfs/sock.c | || ((inode = file->f_inode) == NULL) |
file | 436 | fs/smbfs/sock.c | struct file *file; |
file | 441 | fs/smbfs/sock.c | if ((file = server->sock_file) == NULL) |
file | 443 | fs/smbfs/sock.c | if ((inode = file->f_inode) == NULL) |
file | 191 | fs/stat.c | struct file * f; |
file | 208 | fs/stat.c | struct file * f; |
file | 796 | fs/super.c | struct file dummy; /* allows read-write or read-only flag */ |
file | 835 | fs/super.c | struct file filp; |
file | 24 | fs/sysv/dir.c | static int sysv_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 29 | fs/sysv/dir.c | static int sysv_readdir(struct inode *, struct file *, void *, filldir_t); |
file | 67 | fs/sysv/dir.c | static int sysv_readdir(struct inode * inode, struct file * filp, |
file | 36 | fs/sysv/file.c | static int sysv_file_write(struct inode *, struct file *, const char *, int); |
file | 75 | fs/sysv/file.c | int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 202 | fs/sysv/file.c | static int sysv_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
file | 181 | fs/sysv/fsync.c | int sysv_sync_file(struct inode * inode, struct file * file) |
file | 30 | fs/umsdos/dir.c | int UMSDOS_dir_read(struct inode *inode,struct file *filp,char *buf, |
file | 81 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
file | 263 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
file | 482 | fs/umsdos/dir.c | struct file filp; |
file | 496 | fs/umsdos/dir.c | struct file filp; |
file | 749 | fs/umsdos/dir.c | struct file filp; |
file | 28 | fs/umsdos/emd.c | struct file *filp, |
file | 44 | fs/umsdos/emd.c | struct file *filp, |
file | 65 | fs/umsdos/emd.c | struct file *filp, |
file | 81 | fs/umsdos/emd.c | struct file *filp, |
file | 143 | fs/umsdos/emd.c | struct file *filp, |
file | 169 | fs/umsdos/emd.c | struct file filp; |
file | 209 | fs/umsdos/emd.c | struct file filp; |
file | 449 | fs/umsdos/emd.c | struct file filp; |
file | 29 | fs/umsdos/file.c | struct file *filp, |
file | 46 | fs/umsdos/file.c | struct file *filp, |
file | 314 | fs/umsdos/inode.c | struct file filp; |
file | 57 | fs/umsdos/ioctl.c | struct file *filp, |
file | 446 | fs/umsdos/namei.c | struct file filp; |
file | 65 | fs/umsdos/rdir.c | struct file *filp, |
file | 32 | fs/umsdos/symlink.c | int (*msdos_read)(struct inode *, struct file *, char *, int), |
file | 36 | fs/umsdos/symlink.c | struct file filp; |
file | 807 | fs/vfat/namei.c | struct file fil; |
file | 23 | fs/xiafs/dir.c | static int xiafs_dir_read(struct inode *, struct file *, char *, int); |
file | 24 | fs/xiafs/dir.c | static int xiafs_readdir(struct inode *, struct file *, void *, filldir_t); |
file | 63 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
file | 68 | fs/xiafs/dir.c | static int xiafs_readdir(struct inode * inode, struct file * filp, |
file | 32 | fs/xiafs/file.c | static int xiafs_file_read(struct inode *, struct file *, char *, int); |
file | 33 | fs/xiafs/file.c | static int xiafs_file_write(struct inode *, struct file *, const char *, int); |
file | 73 | fs/xiafs/file.c | xiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 193 | fs/xiafs/file.c | xiafs_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
file | 144 | fs/xiafs/fsync.c | int xiafs_sync_file(struct inode * inode, struct file * file) |
file | 278 | include/asm-alpha/unistd.h | static inline int execve(char * file, char ** argvp, char ** envp) |
file | 284 | include/asm-alpha/unistd.h | i = do_execve(file, argvp, envp, ®s); |
file | 280 | include/asm-i386/unistd.h | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
file | 281 | include/asm-i386/unistd.h | static inline _syscall3(int,open,const char *,file,int,flag,int,mode) |
file | 1304 | include/asm-mips/unistd.h | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
file | 1305 | include/asm-mips/unistd.h | static inline _syscall3(int,open,const char *,file,int,flag,int,mode) |
file | 274 | include/asm-ppc/unistd.h | static /*inline*/ _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
file | 275 | include/asm-ppc/unistd.h | static /*inline*/ _syscall3(int,open,const char *,file,int,flag,int,mode) |
file | 417 | include/asm-sparc/unistd.h | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
file | 418 | 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 | 100 | include/linux/ext_fs.h | extern int ext_sync_file(struct inode *, struct file *); |
file | 102 | include/linux/ext_fs.h | extern int ext_lseek(struct inode *, struct file *, off_t, int); |
file | 103 | include/linux/ext_fs.h | extern int ext_read(struct inode *, struct file *, char *, int); |
file | 104 | 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 | 324 | include/linux/fs.h | struct file *f_next, *f_prev; |
file | 339 | include/linux/fs.h | struct file *fl_file; |
file | 349 | include/linux/fs.h | struct file *fa_file; |
file | 354 | include/linux/fs.h | extern int fasync_helper(struct inode *, struct file *, int, struct fasync_struct **); |
file | 405 | include/linux/fs.h | int (*lseek) (struct inode *, struct file *, off_t, int); |
file | 406 | include/linux/fs.h | int (*read) (struct inode *, struct file *, char *, int); |
file | 407 | include/linux/fs.h | int (*write) (struct inode *, struct file *, const char *, int); |
file | 408 | include/linux/fs.h | int (*readdir) (struct inode *, struct file *, void *, filldir_t); |
file | 409 | include/linux/fs.h | int (*select) (struct inode *, struct file *, int, select_table *); |
file | 410 | include/linux/fs.h | int (*ioctl) (struct inode *, struct file *, unsigned int, unsigned long); |
file | 411 | include/linux/fs.h | int (*mmap) (struct inode *, struct file *, struct vm_area_struct *); |
file | 412 | include/linux/fs.h | int (*open) (struct inode *, struct file *); |
file | 413 | include/linux/fs.h | void (*release) (struct inode *, struct file *); |
file | 414 | include/linux/fs.h | int (*fsync) (struct inode *, struct file *); |
file | 415 | include/linux/fs.h | int (*fasync) (struct inode *, struct file *, int); |
file | 482 | include/linux/fs.h | extern int blkdev_open(struct inode * inode, struct file * filp); |
file | 489 | include/linux/fs.h | extern int chrdev_open(struct inode * inode, struct file * filp); |
file | 510 | include/linux/fs.h | extern struct file *first_file; |
file | 575 | include/linux/fs.h | extern struct file * get_empty_filp(void); |
file | 576 | include/linux/fs.h | extern int close_fp(struct file *filp); |
file | 601 | include/linux/fs.h | extern int generic_file_read(struct inode *, struct file *, char *, int); |
file | 602 | include/linux/fs.h | extern int generic_file_mmap(struct inode *, struct file *, struct vm_area_struct *); |
file | 617 | include/linux/fs.h | extern int char_read(struct inode *, struct file *, char *, int); |
file | 618 | include/linux/fs.h | extern int block_read(struct inode *, struct file *, char *, int); |
file | 621 | include/linux/fs.h | extern int char_write(struct inode *, struct file *, const char *, int); |
file | 622 | include/linux/fs.h | extern int block_write(struct inode *, struct file *, const char *, int); |
file | 624 | include/linux/fs.h | extern int block_fsync(struct inode *, struct file *); |
file | 625 | 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 | 183 | include/linux/iso_fs.h | extern int isofs_lseek(struct inode *, struct file *, off_t, int); |
file | 184 | include/linux/iso_fs.h | extern int isofs_read(struct inode *, struct file *, char *, int); |
file | 114 | include/linux/md.h | int (*ioctl)(struct inode *inode, struct file *file, |
file | 127 | include/linux/minix_fs.h | extern int minix_sync_file(struct inode *, struct file *); |
file | 201 | include/linux/mm.h | extern unsigned long do_mmap(struct file * file, unsigned long addr, unsigned long len, |
file | 22 | include/linux/mount.h | struct file *mnt_quotas[MAXQUOTAS]; /* fp's to quotafiles */ |
file | 213 | include/linux/msdos_fs.h | extern int fat_readdirx(struct inode *inode, struct file *filp, void *dirent, |
file | 216 | include/linux/msdos_fs.h | extern int fat_readdir(struct inode *inode, struct file *filp, |
file | 218 | include/linux/msdos_fs.h | extern int fat_dir_ioctl(struct inode * inode, struct file * filp, |
file | 224 | include/linux/msdos_fs.h | extern int fat_file_read(struct inode *, struct file *, char *, int); |
file | 225 | include/linux/msdos_fs.h | extern int fat_file_write(struct inode *, struct file *, const char *, int); |
file | 229 | include/linux/msdos_fs.h | extern int fat_mmap(struct inode *, struct file *, struct vm_area_struct *); |
file | 141 | include/linux/ncp_fs.h | int ncp_ioctl (struct inode * inode, struct file * filp, |
file | 161 | include/linux/ncp_fs.h | int ncp_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma); |
file | 24 | include/linux/ncp_fs_sb.h | struct file *ncp_filp; /* File pointer to ncp socket */ |
file | 25 | include/linux/ncp_fs_sb.h | struct file *wdog_filp; /* File pointer to wdog socket */ |
file | 26 | include/linux/ncp_fs_sb.h | struct file *msg_filp; /* File pointer to message socket */ |
file | 86 | include/linux/net.h | struct file *file; /* File back pointer for gc */ |
file | 127 | include/linux/nfs_fs.h | extern int nfs_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma); |
file | 8 | include/linux/nfs_fs_sb.h | struct file *file; |
file | 254 | include/linux/proc_fs.h | extern int proc_readdir(struct inode *, struct file *, void *, filldir_t); |
file | 38 | include/linux/rpcsock.h | struct file *file; |
file | 52 | include/linux/rpcsock.h | struct rpc_sock * rpc_makesock(struct file *); |
file | 121 | include/linux/sched.h | struct file * fd[NR_OPEN]; |
file | 386 | include/linux/sched.h | extern inline struct file *file_from_fd(const unsigned int fd) |
file | 111 | include/linux/smb_fs.h | int smb_ioctl (struct inode * inode, struct file * filp, |
file | 177 | 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 | 92 | include/linux/sysctl.h | typedef int proc_handler (ctl_table *ctl, int write, struct file * filp, |
file | 95 | include/linux/sysctl.h | extern int proc_dostring(ctl_table *, int, struct file *, |
file | 97 | include/linux/sysctl.h | extern int proc_dointvec(ctl_table *, int, struct file *, |
file | 99 | include/linux/sysctl.h | extern int proc_dointvec_minmax(ctl_table *, int, struct file *, |
file | 388 | include/linux/sysv_fs.h | extern int sysv_file_read(struct inode *, struct file *, char *, int); |
file | 401 | include/linux/sysv_fs.h | extern int sysv_sync_file(struct inode *, struct file *); |
file | 402 | include/linux/sysv_fs.h | extern int sysv_mmap(struct inode *, struct file *, struct vm_area_struct *); |
file | 312 | include/linux/tty.h | extern void tty_unhangup(struct file *filp); |
file | 313 | include/linux/tty.h | extern int tty_hung_up_p(struct file * filp); |
file | 321 | include/linux/tty.h | extern int n_tty_ioctl(struct tty_struct * tty, struct file * file, |
file | 326 | include/linux/tty.h | extern int rs_open(struct tty_struct * tty, struct file * filp); |
file | 330 | include/linux/tty.h | extern int pty_open(struct tty_struct * tty, struct file * filp); |
file | 334 | include/linux/tty.h | extern int con_open(struct tty_struct * tty, struct file * filp); |
file | 340 | 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 | 4 | include/linux/wrapper.h | #define file_handle struct file |
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 | 104 | include/linux/xia_fs.h | extern int xiafs_sync_file(struct inode *, struct file *); |
file | 3 | include/net/af_unix.h | extern void unix_inflight(struct file *fp); |
file | 4 | include/net/af_unix.h | extern void unix_notinflight(struct file *fp); |
file | 374 | kernel/exit.c | struct file * filp = files->fd[i]; |
file | 173 | kernel/fork.c | struct file * f = current->files->fd[i]; |
file | 283 | kernel/sys.c | static struct file acct_file; |
file | 46 | kernel/sysctl.c | static int proc_readsys(struct inode * inode, struct file * file, |
file | 48 | kernel/sysctl.c | static int proc_writesys(struct inode * inode, struct file * file, |
file | 447 | kernel/sysctl.c | static int do_rw_proc(int write, struct inode * inode, struct file * file, |
file | 470 | kernel/sysctl.c | error = (*table->proc_handler) (table, write, file, buf, &res); |
file | 476 | kernel/sysctl.c | static int proc_readsys(struct inode * inode, struct file * file, |
file | 479 | kernel/sysctl.c | return do_rw_proc(0, inode, file, buf, count); |
file | 482 | kernel/sysctl.c | static int proc_writesys(struct inode * inode, struct file * file, |
file | 485 | kernel/sysctl.c | return do_rw_proc(1, inode, file, (char *) buf, count); |
file | 493 | kernel/sysctl.c | int proc_dostring(ctl_table *table, int write, struct file *filp, |
file | 536 | kernel/sysctl.c | int proc_dointvec(ctl_table *table, int write, struct file *filp, |
file | 611 | kernel/sysctl.c | int proc_dointvec_minmax(ctl_table *table, int write, struct file *filp, |
file | 695 | kernel/sysctl.c | int proc_dostring(ctl_table *table, int write, struct file *filp, |
file | 701 | kernel/sysctl.c | int proc_dointvec(ctl_table *table, int write, struct file *filp, |
file | 707 | kernel/sysctl.c | int proc_dointvec_minmax(ctl_table *table, int write, struct file *filp, |
file | 299 | mm/filemap.c | int generic_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 496 | mm/filemap.c | static inline int do_write_page(struct inode * inode, struct file * file, |
file | 515 | mm/filemap.c | if (size == file->f_op->write(inode, file, (const char *) page, size)) |
file | 526 | mm/filemap.c | struct file file; |
file | 542 | mm/filemap.c | file.f_op = inode->i_op->default_file_ops; |
file | 543 | mm/filemap.c | if (!file.f_op->write) |
file | 545 | mm/filemap.c | file.f_mode = 3; |
file | 546 | mm/filemap.c | file.f_flags = 0; |
file | 547 | mm/filemap.c | file.f_count = 1; |
file | 548 | mm/filemap.c | file.f_inode = inode; |
file | 549 | mm/filemap.c | file.f_pos = offset; |
file | 550 | mm/filemap.c | file.f_reada = 0; |
file | 553 | mm/filemap.c | result = do_write_page(inode, &file, (const char *) page, offset); |
file | 763 | mm/filemap.c | int generic_file_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 42 | mm/mmap.c | unsigned long do_mmap(struct file * file, unsigned long addr, unsigned long len, |
file | 71 | mm/mmap.c | if (file != NULL) { |
file | 74 | mm/mmap.c | if ((prot & PROT_WRITE) && !(file->f_mode & 2)) |
file | 78 | mm/mmap.c | if (!(file->f_mode & 1)) |
file | 86 | mm/mmap.c | if (file->f_inode->i_writecount > 0) |
file | 113 | mm/mmap.c | if (file && (!file->f_op || !file->f_op->mmap)) |
file | 128 | mm/mmap.c | if (file) { |
file | 129 | mm/mmap.c | if (file->f_mode & 1) |
file | 143 | mm/mmap.c | if (!(file->f_mode & 2)) |
file | 156 | mm/mmap.c | if (file) { |
file | 157 | mm/mmap.c | int error = file->f_op->mmap(file->f_inode, file, vma); |
file | 318 | mm/swapfile.c | struct file filp; |
file | 399 | mm/swapfile.c | struct file filp; |
file | 86 | net/core/skbuff.c | int skb_check(struct sk_buff *skb, int head, int line, char *file) |
file | 91 | net/core/skbuff.c | file,line); |
file | 101 | net/core/skbuff.c | file,line); |
file | 107 | net/core/skbuff.c | file,line); |
file | 115 | net/core/skbuff.c | if (skb_check(skb2, 0, line, file) < 0) { |
file | 129 | net/core/skbuff.c | file,line); |
file | 135 | net/core/skbuff.c | file,line); |
file | 143 | net/core/skbuff.c | file,line); |
file | 150 | net/core/skbuff.c | printk("File: %s Line %d, passed a non skb!\n", file,line); |
file | 157 | net/core/skbuff.c | printk("File: %s Line %d, head > data !\n", file,line); |
file | 164 | net/core/skbuff.c | printk("File: %s Line %d, tail > end!\n", file,line); |
file | 171 | net/core/skbuff.c | printk("File: %s Line %d, data > tail!\n", file,line); |
file | 178 | net/core/skbuff.c | printk("File: %s Line %d, wrong length\n", file,line); |
file | 185 | net/core/skbuff.c | printk("File: %s Line %d, control overrun\n", file,line); |
file | 70 | net/netlink.c | static int netlink_write(struct inode * inode, struct file * file, const char * buf, int count) |
file | 84 | net/netlink.c | static int netlink_read(struct inode * inode, struct file * file, char * buf, int count) |
file | 91 | net/netlink.c | if(file->f_flags&O_NONBLOCK) |
file | 112 | net/netlink.c | static int netlink_lseek(struct inode * inode, struct file * file, |
file | 118 | net/netlink.c | static int netlink_open(struct inode * inode, struct file * file) |
file | 135 | net/netlink.c | static void netlink_release(struct inode * inode, struct file * file) |
file | 143 | net/netlink.c | static int netlink_ioctl(struct inode *inode, struct file *file, |
file | 79 | net/socket.c | static int sock_lseek(struct inode *inode, struct file *file, off_t offset, |
file | 81 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
file | 83 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, const char *buf, |
file | 86 | net/socket.c | static void sock_close(struct inode *inode, struct file *file); |
file | 87 | net/socket.c | static int sock_select(struct inode *inode, struct file *file, int which, select_table *seltable); |
file | 88 | net/socket.c | static int sock_ioctl(struct inode *inode, struct file *file, |
file | 90 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on); |
file | 171 | net/socket.c | struct file *file; |
file | 177 | net/socket.c | file = get_empty_filp(); |
file | 178 | net/socket.c | if (!file) |
file | 186 | net/socket.c | file->f_count = 0; |
file | 191 | net/socket.c | current->files->fd[fd] = file; |
file | 192 | net/socket.c | file->f_op = &socket_file_ops; |
file | 193 | net/socket.c | file->f_mode = 3; |
file | 194 | net/socket.c | file->f_flags = O_RDWR; |
file | 195 | net/socket.c | file->f_count = 1; |
file | 196 | net/socket.c | file->f_inode = inode; |
file | 199 | net/socket.c | file->f_pos = 0; |
file | 220 | net/socket.c | extern __inline struct socket *sockfd_lookup(int fd, struct file **pfile) |
file | 222 | net/socket.c | struct file *file; |
file | 225 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 228 | net/socket.c | inode = file->f_inode; |
file | 233 | net/socket.c | *pfile = file; |
file | 264 | net/socket.c | sock->file = NULL; |
file | 312 | net/socket.c | sock->file=NULL; |
file | 320 | net/socket.c | static int sock_lseek(struct inode *inode, struct file *file, off_t offset, int whence) |
file | 330 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *ubuf, int size) |
file | 354 | net/socket.c | return(sock->ops->recvmsg(sock, &msg, size,(file->f_flags & O_NONBLOCK), 0,&msg.msg_namelen)); |
file | 362 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, const char *ubuf, int size) |
file | 389 | net/socket.c | return(sock->ops->sendmsg(sock, &msg, size,(file->f_flags & O_NONBLOCK),0)); |
file | 397 | net/socket.c | int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
file | 406 | net/socket.c | static int sock_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 422 | net/socket.c | void sock_close(struct inode *inode, struct file *filp) |
file | 438 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on) |
file | 595 | net/socket.c | sock->file=current->files->fd[fd]; |
file | 732 | net/socket.c | struct file *file; |
file | 738 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 740 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
file | 765 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
file | 777 | net/socket.c | sock->file=current->files->fd[fd]; |
file | 796 | net/socket.c | struct file *file; |
file | 801 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
file | 803 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
file | 831 | net/socket.c | i = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags); |
file | 897 | net/socket.c | struct file *file; |
file | 902 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 919 | net/socket.c | return(sock->ops->sendmsg(sock, &msg, len, (file->f_flags & O_NONBLOCK), flags)); |
file | 932 | net/socket.c | struct file *file; |
file | 938 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 959 | net/socket.c | return(sock->ops->sendmsg(sock, &msg, len, (file->f_flags & O_NONBLOCK), |
file | 973 | net/socket.c | struct file *file; |
file | 976 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 997 | net/socket.c | return(sock->ops->recvmsg(sock, &msg, size,(file->f_flags & O_NONBLOCK), flags,&msg.msg_namelen)); |
file | 1010 | net/socket.c | struct file *file; |
file | 1016 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1036 | net/socket.c | size=sock->ops->recvmsg(sock, &msg, size, (file->f_flags & O_NONBLOCK), |
file | 1055 | net/socket.c | struct file *file; |
file | 1057 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1073 | net/socket.c | struct file *file; |
file | 1075 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1093 | net/socket.c | struct file *file; |
file | 1095 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1110 | net/socket.c | struct file *file; |
file | 1117 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1141 | net/socket.c | return sock->ops->sendmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags); |
file | 1151 | net/socket.c | struct file *file; |
file | 1160 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1178 | net/socket.c | len=sock->ops->recvmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags, &addr_len); |
file | 1194 | net/socket.c | int sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |
file | 720 | net/unix/af_unix.c | static int unix_fd_copy(struct sock *sk, struct cmsghdr *cmsg, struct file **fp) |
file | 764 | net/unix/af_unix.c | static void unix_fd_free(struct sock *sk, struct file **fp, int num) |
file | 809 | net/unix/af_unix.c | struct file **fp; |
file | 810 | net/unix/af_unix.c | struct file **ufp; |
file | 827 | net/unix/af_unix.c | fp=(struct file **)(skb->h.filp+sizeof(int)); |
file | 873 | net/unix/af_unix.c | static void unix_attach_fds(int fpnum,struct file **fp,struct sk_buff *skb) |
file | 876 | net/unix/af_unix.c | skb->h.filp=kmalloc(sizeof(int)+fpnum*sizeof(struct file *), |
file | 881 | net/unix/af_unix.c | memcpy(skb->h.filp+sizeof(int),fp,fpnum*sizeof(struct file *)); |
file | 898 | net/unix/af_unix.c | struct file *fp[UNIX_MAX_FD]; |
file | 71 | net/unix/garbage.c | extern inline unix_socket *unix_get_socket(struct file *filp) |
file | 96 | net/unix/garbage.c | void unix_inflight(struct file *fp) |
file | 103 | net/unix/garbage.c | void unix_notinflight(struct file *fp) |
file | 184 | net/unix/garbage.c | if(s->socket && s->socket->file && s->socket->file->f_count > s->protinfo.af_unix.inflight) |
file | 215 | net/unix/garbage.c | struct file **fp=(struct file **)(skb->h.filp+sizeof(int)); |
file | 267 | net/unix/garbage.c | if(s->socket && s->socket->file) |
file | 268 | net/unix/garbage.c | close_fp(s->socket->file); |
file | 138 | scripts/lxdialog/dialog.h | int dialog_textbox (const char *title, const char *file, int height, int width); |
file | 38 | scripts/lxdialog/textbox.c | dialog_textbox (const char *title, const char *file, int height, int width) |
file | 48 | scripts/lxdialog/textbox.c | if ((fd = open (file, O_RDONLY)) == -1) { |