tag | line | file | source code |
file | 100 | arch/alpha/kernel/osf_sys.c | struct file * file; |
file | 103 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 105 | arch/alpha/kernel/osf_sys.c | if (!file->f_op || !file->f_op->readdir) |
file | 119 | arch/alpha/kernel/osf_sys.c | error = file->f_op->readdir(file->f_inode, file, &buf, osf_filldir); |
file | 160 | arch/alpha/kernel/osf_sys.c | struct file * file = NULL; |
file | 165 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 168 | arch/alpha/kernel/osf_sys.c | return do_mmap(file, addr, len, prot, flags, off); |
file | 195 | arch/alpha/kernel/osf_sys.c | struct file * file; |
file | 204 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 206 | arch/alpha/kernel/osf_sys.c | if (!(inode = file->f_inode)) |
file | 270 | arch/alpha/kernel/osf_sys.c | struct file dummy; |
file | 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 | 3173 | drivers/block/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
file | 3362 | drivers/block/floppy.c | static int floppy_read(struct inode * inode, struct file * filp, |
file | 3373 | drivers/block/floppy.c | static int floppy_write(struct inode * inode, struct file * filp, |
file | 3393 | drivers/block/floppy.c | static void floppy_release(struct inode * inode, struct file * filp) |
file | 3420 | 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 | 2055 | drivers/block/ide-cd.c | struct file *file, unsigned int cmd, unsigned long arg) |
file | 2514 | drivers/block/ide-cd.c | int ide_cdrom_open (struct inode *ip, struct file *fp, ide_drive_t *drive) |
file | 2562 | drivers/block/ide-cd.c | void ide_cdrom_release (struct inode *inode, struct file *file, ide_drive_t *drive) |
file | 1669 | drivers/block/ide.c | static int ide_open(struct inode * inode, struct file * filp) |
file | 1698 | drivers/block/ide.c | static void ide_release(struct inode * inode, struct file * file) |
file | 1707 | drivers/block/ide.c | ide_cdrom_release (inode, file, drive); |
file | 1778 | drivers/block/ide.c | static int ide_ioctl (struct inode *inode, struct file *file, |
file | 1944 | drivers/block/ide.c | return ide_cdrom_ioctl(drive, inode, file, cmd, arg); |
file | 457 | drivers/block/ide.h | int ide_cdrom_ioctl (ide_drive_t *, struct inode *, struct file *, unsigned int, unsigned long); |
file | 459 | drivers/block/ide.h | int ide_cdrom_open (struct inode *, struct file *, ide_drive_t *); |
file | 460 | drivers/block/ide.h | void ide_cdrom_release (struct inode *, struct file *, ide_drive_t *); |
file | 206 | drivers/block/ramdisk.c | struct file filp; |
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 | 607 | drivers/cdrom/aztcd.c | static int aztcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
file | 1434 | drivers/cdrom/aztcd.c | int aztcd_open(struct inode *ip, struct file *fp) |
file | 1478 | drivers/cdrom/aztcd.c | static void aztcd_release(struct inode * inode, struct file * file) |
file | 1482 | drivers/cdrom/aztcd.c | printk("inode: %p, inode->i_rdev: %x file: %p\n",inode,inode->i_rdev,file); |
file | 237 | drivers/cdrom/cdu31a.c | static int scd_open(struct inode *inode, struct file *filp); |
file | 2378 | drivers/cdrom/cdu31a.c | struct file *file, |
file | 2726 | drivers/cdrom/cdu31a.c | struct file *filp) |
file | 2849 | 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 | 284 | drivers/cdrom/mcd.c | mcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, |
file | 1093 | drivers/cdrom/mcd.c | mcd_open(struct inode *ip, struct file *fp) |
file | 1132 | drivers/cdrom/mcd.c | mcd_release(struct inode * inode, struct file * file) |
file | 197 | drivers/cdrom/mcdx.c | static int mcdx_open(struct inode*, struct file*); |
file | 198 | drivers/cdrom/mcdx.c | static void mcdx_close(struct inode*, struct file*); |
file | 199 | drivers/cdrom/mcdx.c | static int mcdx_ioctl(struct inode*, struct file*, unsigned int, unsigned long); |
file | 267 | drivers/cdrom/mcdx.c | struct inode* ip, struct file* fp, |
file | 609 | drivers/cdrom/mcdx.c | mcdx_open(struct inode *ip, struct file *fp) |
file | 757 | drivers/cdrom/mcdx.c | mcdx_close(struct inode *ip, struct file *fp) |
file | 1035 | drivers/cdrom/optcd.c | static int opt_ioctl(struct inode *ip, struct file *fp, |
file | 1292 | drivers/cdrom/optcd.c | static int opt_open(struct inode *ip, struct file *fp) { |
file | 1325 | drivers/cdrom/optcd.c | static void opt_release(struct inode *ip, struct file *fp) { |
file | 3723 | drivers/cdrom/sbpcd.c | static int sbpcd_ioctl(struct inode *inode, struct file *file, u_int cmd, |
file | 4759 | drivers/cdrom/sbpcd.c | static int sbpcd_open(struct inode *ip, struct file *fp) |
file | 4844 | drivers/cdrom/sbpcd.c | static void sbpcd_release(struct inode * ip, struct file * file) |
file | 713 | drivers/cdrom/sjcd.c | static int sjcd_ioctl( struct inode *ip, struct file *fp, |
file | 1369 | drivers/cdrom/sjcd.c | int sjcd_open( struct inode *ip, struct file *fp ){ |
file | 1442 | 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 | 1070 | drivers/cdrom/sonycd535.c | struct file *file, |
file | 1388 | drivers/cdrom/sonycd535.c | struct file *filp) |
file | 1436 | drivers/cdrom/sonycd535.c | 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 | 106 | drivers/char/busmouse.c | static int fasync_mouse(struct inode *inode, struct file *filp, int on) |
file | 120 | drivers/char/busmouse.c | static void close_mouse(struct inode * inode, struct file * file) |
file | 122 | drivers/char/busmouse.c | fasync_mouse(inode, file, 0); |
file | 134 | drivers/char/busmouse.c | static int open_mouse(struct inode * inode, struct file * file) |
file | 157 | drivers/char/busmouse.c | static int write_mouse(struct inode * inode, struct file * file, const char * buffer, int count) |
file | 166 | drivers/char/busmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
file | 215 | drivers/char/busmouse.c | static int mouse_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 2174 | drivers/char/console.c | int con_open(struct tty_struct *tty, struct file * filp) |
file | 2137 | drivers/char/cyclades.c | cy_ioctl(struct tty_struct *tty, struct file * file, |
file | 2310 | drivers/char/cyclades.c | cy_close(struct tty_struct * tty, struct file * filp) |
file | 2437 | drivers/char/cyclades.c | block_til_ready(struct tty_struct *tty, struct file * filp, |
file | 2588 | drivers/char/cyclades.c | cy_open(struct tty_struct *tty, struct file * filp) |
file | 582 | drivers/char/istallion.c | static int stli_open(struct tty_struct *tty, struct file *filp); |
file | 583 | drivers/char/istallion.c | static void stli_close(struct tty_struct *tty, struct file *filp); |
file | 589 | drivers/char/istallion.c | static int stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg); |
file | 603 | drivers/char/istallion.c | static int stli_memread(struct inode *ip, struct file *fp, char *buf, int count); |
file | 604 | drivers/char/istallion.c | static int stli_memwrite(struct inode *ip, struct file *fp, const char *buf, int count); |
file | 605 | drivers/char/istallion.c | static int stli_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg); |
file | 611 | drivers/char/istallion.c | static int stli_waitcarrier(stlibrd_t *brdp, stliport_t *portp, struct file *filp); |
file | 814 | drivers/char/istallion.c | static int stli_open(struct tty_struct *tty, struct file *filp) |
file | 941 | drivers/char/istallion.c | static void stli_close(struct tty_struct *tty, struct file *filp) |
file | 1320 | drivers/char/istallion.c | static int stli_waitcarrier(stlibrd_t *brdp, stliport_t *portp, struct file *filp) |
file | 1787 | drivers/char/istallion.c | static int stli_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) |
file | 1795 | drivers/char/istallion.c | printk("stli_ioctl(tty=%x,file=%x,cmd=%x,arg=%x)\n", (int) tty, (int) file, cmd, (int) arg); |
file | 3832 | drivers/char/istallion.c | static int stli_memread(struct inode *ip, struct file *fp, char *buf, int count) |
file | 3879 | drivers/char/istallion.c | static int stli_memwrite(struct inode *ip, struct file *fp, const char *buf, int count) |
file | 3928 | drivers/char/istallion.c | static int stli_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, unsigned long arg) |
file | 297 | drivers/char/lp.c | static int lp_write(struct inode * inode, struct file * file, const char * buf, int count) |
file | 311 | drivers/char/lp.c | static int lp_lseek(struct inode * inode, struct file * file, |
file | 317 | drivers/char/lp.c | static int lp_open(struct inode * inode, struct file * file) |
file | 337 | drivers/char/lp.c | if ((LP_F(minor) & LP_ABORTOPEN) && !(file->f_flags & O_NONBLOCK)) { |
file | 375 | drivers/char/lp.c | static void lp_release(struct inode * inode, struct file * file) |
file | 391 | drivers/char/lp.c | static int lp_ioctl(struct inode *inode, struct file *file, |
file | 29 | drivers/char/mem.c | static int read_ram(struct inode * inode, struct file * file, char * buf, int count) |
file | 34 | drivers/char/mem.c | static int write_ram(struct inode * inode, struct file * file, const char * buf, int count) |
file | 39 | drivers/char/mem.c | static int read_mem(struct inode * inode, struct file * file, char * buf, int count) |
file | 41 | drivers/char/mem.c | unsigned long p = file->f_pos; |
file | 63 | drivers/char/mem.c | file->f_pos += read; |
file | 67 | drivers/char/mem.c | static int write_mem(struct inode * inode, struct file * file, const char * buf, int count) |
file | 69 | drivers/char/mem.c | unsigned long p = file->f_pos; |
file | 91 | drivers/char/mem.c | file->f_pos += written; |
file | 95 | drivers/char/mem.c | static int mmap_mem(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 116 | drivers/char/mem.c | static int read_kmem(struct inode *inode, struct file *file, char *buf, int count) |
file | 120 | drivers/char/mem.c | read1 = read_mem(inode, file, buf, count); |
file | 123 | drivers/char/mem.c | read2 = vread(buf + read1, (char *) ((unsigned long) file->f_pos), count - read1); |
file | 126 | drivers/char/mem.c | file->f_pos += read2; |
file | 130 | drivers/char/mem.c | static int read_port(struct inode * inode, struct file * file,char * buf, int count) |
file | 132 | drivers/char/mem.c | unsigned int i = file->f_pos; |
file | 140 | drivers/char/mem.c | file->f_pos = i; |
file | 144 | drivers/char/mem.c | static int write_port(struct inode * inode, struct file * file, const char * buf, int count) |
file | 146 | drivers/char/mem.c | unsigned int i = file->f_pos; |
file | 154 | drivers/char/mem.c | file->f_pos = i; |
file | 158 | drivers/char/mem.c | static int read_null(struct inode * node, struct file * file, char * buf, int count) |
file | 163 | drivers/char/mem.c | static int write_null(struct inode * inode, struct file * file, const char * buf, int count) |
file | 168 | drivers/char/mem.c | static int read_zero(struct inode * node, struct file * file, char * buf, int count) |
file | 179 | drivers/char/mem.c | static int mmap_zero(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 188 | drivers/char/mem.c | static int read_full(struct inode * node, struct file * file, char * buf,int count) |
file | 193 | drivers/char/mem.c | static int write_full(struct inode * inode, struct file * file, const char * buf, int count) |
file | 203 | drivers/char/mem.c | static int null_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 205 | drivers/char/mem.c | return file->f_pos=0; |
file | 215 | drivers/char/mem.c | static int memory_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 219 | drivers/char/mem.c | file->f_pos = offset; |
file | 220 | drivers/char/mem.c | return file->f_pos; |
file | 222 | drivers/char/mem.c | file->f_pos += offset; |
file | 223 | drivers/char/mem.c | return file->f_pos; |
file | 227 | drivers/char/mem.c | if (file->f_pos < 0) |
file | 229 | drivers/char/mem.c | return file->f_pos; |
file | 326 | drivers/char/mem.c | static int memory_open(struct inode * inode, struct file * filp) |
file | 41 | drivers/char/mouse.c | static int mouse_open(struct inode * inode, struct file * file) |
file | 45 | drivers/char/mouse.c | file->f_op = NULL; |
file | 49 | drivers/char/mouse.c | file->f_op = c->fops; |
file | 55 | drivers/char/mouse.c | if (file->f_op == NULL) |
file | 57 | 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 | 640 | drivers/char/random.c | random_read(struct inode * inode, struct file * file, char * buf, int nbytes) |
file | 658 | drivers/char/random.c | if (file->f_flags & O_NONBLOCK) { |
file | 683 | drivers/char/random.c | random_read_unlimited(struct inode * inode, struct file * file, |
file | 690 | drivers/char/random.c | random_select(struct inode *inode, struct file *file, |
file | 702 | drivers/char/random.c | random_write(struct inode * inode, struct file * file, |
file | 725 | drivers/char/random.c | random_ioctl(struct inode * inode, struct file * file, |
file | 777 | drivers/char/random.c | (void) random_write(0, file, (const char *) p, size); |
file | 159 | drivers/char/scc.c | int scc_open(struct tty_struct *tty, struct file *filp); |
file | 160 | drivers/char/scc.c | static void scc_close(struct tty_struct *tty, struct file *filp); |
file | 167 | drivers/char/scc.c | static int scc_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg); |
file | 1710 | drivers/char/scc.c | int scc_open(struct tty_struct *tty, struct file * filp) |
file | 1762 | drivers/char/scc.c | scc_close(struct tty_struct *tty, struct file * filp) |
file | 1829 | drivers/char/scc.c | scc_ioctl(struct tty_struct *tty, struct file * file, unsigned int cmd, unsigned long arg) |
file | 1840 | drivers/char/serial.c | static int rs_ioctl(struct tty_struct *tty, struct file * file, |
file | 1996 | drivers/char/serial.c | static void rs_close(struct tty_struct *tty, struct file * filp) |
file | 2130 | drivers/char/serial.c | static int block_til_ready(struct tty_struct *tty, struct file * filp, |
file | 2263 | drivers/char/serial.c | int rs_open(struct tty_struct *tty, struct file * filp) |
file | 458 | drivers/char/stallion.c | static int stl_open(struct tty_struct *tty, struct file *filp); |
file | 459 | drivers/char/stallion.c | static void stl_close(struct tty_struct *tty, struct file *filp); |
file | 465 | drivers/char/stallion.c | static int stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg); |
file | 493 | drivers/char/stallion.c | static int stl_waitcarrier(stlport_t *portp, struct file *filp); |
file | 621 | drivers/char/stallion.c | static int stl_open(struct tty_struct *tty, struct file *filp) |
file | 742 | drivers/char/stallion.c | static int stl_waitcarrier(stlport_t *portp, struct file *filp) |
file | 792 | drivers/char/stallion.c | static void stl_close(struct tty_struct *tty, struct file *filp) |
file | 1164 | drivers/char/stallion.c | static int stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) |
file | 1170 | drivers/char/stallion.c | printk("stl_ioctl(tty=%x,file=%x,cmd=%x,arg=%x)\n", (int) tty, (int) file, cmd, (int) arg); |
file | 1883 | drivers/char/tpqic02.c | static int qic02_tape_lseek(struct inode * inode, struct file * file, off_t offset, int origin) |
file | 1921 | drivers/char/tpqic02.c | static int qic02_tape_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 2096 | drivers/char/tpqic02.c | static int qic02_tape_write(struct inode * inode, struct file * filp, const char * buf, int count) |
file | 2248 | drivers/char/tpqic02.c | static int qic02_tape_open(struct inode * inode, struct file * filp) |
file | 2434 | drivers/char/tpqic02.c | static void qic02_tape_release(struct inode * inode, struct file * filp) |
file | 2556 | drivers/char/tpqic02.c | static int qic02_tape_ioctl(struct inode * inode, struct file * filp, |
file | 103 | drivers/char/tty_io.c | static int tty_read(struct inode *, struct file *, char *, int); |
file | 104 | drivers/char/tty_io.c | static int tty_write(struct inode *, struct file *, const char *, int); |
file | 105 | drivers/char/tty_io.c | static int tty_select(struct inode *, struct file *, int, select_table *); |
file | 106 | drivers/char/tty_io.c | static int tty_open(struct inode *, struct file *); |
file | 107 | drivers/char/tty_io.c | static void tty_release(struct inode *, struct file *); |
file | 108 | drivers/char/tty_io.c | static int tty_ioctl(struct inode * inode, struct file * file, |
file | 110 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on); |
file | 166 | drivers/char/tty_io.c | struct file *f; |
file | 296 | drivers/char/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
file | 301 | drivers/char/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, const char * buf, int count) |
file | 306 | drivers/char/tty_io.c | static int hung_up_tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 311 | drivers/char/tty_io.c | static int hung_up_tty_ioctl(struct inode * inode, struct file * file, |
file | 317 | drivers/char/tty_io.c | static int tty_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 353 | drivers/char/tty_io.c | struct file * filp; |
file | 437 | drivers/char/tty_io.c | int tty_hung_up_p(struct file * filp) |
file | 699 | drivers/char/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
file | 704 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
file | 728 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
file | 736 | drivers/char/tty_io.c | static int tty_write(struct inode * inode, struct file * file, const char * buf, int count) |
file | 746 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
file | 764 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(const unsigned char *)buf,(unsigned int)count); |
file | 955 | drivers/char/tty_io.c | static void release_dev(struct file * filp) |
file | 1146 | drivers/char/tty_io.c | static int tty_open(struct inode * inode, struct file * filp) |
file | 1221 | drivers/char/tty_io.c | static void tty_release(struct inode * inode, struct file * filp) |
file | 1226 | drivers/char/tty_io.c | static int tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 1244 | drivers/char/tty_io.c | int fasync_helper(struct inode * inode, struct file * filp, int on, struct fasync_struct **fapp) |
file | 1279 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on) |
file | 1342 | drivers/char/tty_io.c | static int tty_ioctl(struct inode * inode, struct file * file, |
file | 1353 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
file | 1416 | drivers/char/tty_io.c | file->f_flags |= O_NONBLOCK; |
file | 1418 | drivers/char/tty_io.c | file->f_flags &= ~O_NONBLOCK; |
file | 1575 | drivers/char/tty_io.c | retval = (tty->driver.ioctl)(tty, file, |
file | 1581 | drivers/char/tty_io.c | retval = (tty->ldisc.ioctl)(tty, file, |
file | 1611 | 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 | 185 | drivers/char/vt.c | int vt_ioctl(struct tty_struct *tty, struct file * file, |
file | 231 | drivers/net/ppp.c | static int ppp_tty_read (struct tty_struct *, struct file *, u_char *, |
file | 233 | drivers/net/ppp.c | static int ppp_tty_write (struct tty_struct *, struct file *, const u_char *, |
file | 235 | drivers/net/ppp.c | static int ppp_tty_ioctl (struct tty_struct *, struct file *, unsigned int, |
file | 238 | drivers/net/ppp.c | struct file *filp, int sel_type, select_table * wait); |
file | 1772 | drivers/net/ppp.c | ppp_tty_read (struct tty_struct *tty, struct file *file, u_char * buf, |
file | 1845 | drivers/net/ppp.c | if (file->f_flags & O_NONBLOCK) { |
file | 2162 | drivers/net/ppp.c | ppp_tty_write (struct tty_struct *tty, struct file *file, const u_char * data, |
file | 2326 | drivers/net/ppp.c | ppp_tty_ioctl (struct tty_struct *tty, struct file *file, unsigned int param2, |
file | 2597 | drivers/net/ppp.c | error = n_tty_ioctl (tty, file, param2, param3); |
file | 2623 | drivers/net/ppp.c | struct file *filp, int sel_type, select_table * wait) |
file | 1009 | drivers/net/slip.c | slip_ioctl(struct tty_struct *tty, void *file, int cmd, void *arg) |
file | 1091 | drivers/net/slip.c | return n_tty_ioctl(tty, (struct file *) file, cmd, (unsigned long) arg); |
file | 1148 | drivers/net/slip.c | sl_ldisc.ioctl = (int (*)(struct tty_struct *, struct file *, |
file | 2154 | drivers/scsi/53c7,8xx.c | static debugger_user_write (struct inode *inode,struct file *filp, |
file | 2206 | drivers/scsi/53c7,8xx.c | static 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 | 22 | 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 | 298 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,const char *buf,int count) |
file | 470 | 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 | 96 | drivers/scsi/st.c | static int st_int_ioctl(struct inode * inode,struct file * file, |
file | 389 | drivers/scsi/st.c | flush_buffer(struct inode * inode, struct file * filp, int seek_next) |
file | 440 | drivers/scsi/st.c | scsi_tape_open(struct inode * inode, struct file * filp) |
file | 642 | drivers/scsi/st.c | scsi_tape_close(struct inode * inode, struct file * filp) |
file | 728 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, const char * buf, int count) |
file | 983 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 1269 | drivers/scsi/st.c | st_int_ioctl(struct inode * inode,struct file * file, |
file | 1472 | drivers/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTFSF, 0x3fff); |
file | 1646 | drivers/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTFSF, 1); |
file | 1648 | drivers/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTBSF, 1); |
file | 1734 | drivers/scsi/st.c | st_ioctl(struct inode * inode,struct file * file, |
file | 1775 | drivers/scsi/st.c | i = flush_buffer(inode, file, mtc.mt_op == MTSEEK || |
file | 1798 | drivers/scsi/st.c | if (st_int_ioctl(inode, file, MTLOCK, 0)) { |
file | 1811 | drivers/scsi/st.c | st_int_ioctl(inode, file, MTUNLOCK, 0); /* Ignore result! */ |
file | 1817 | drivers/scsi/st.c | return st_int_ioctl(inode, file, mtc.mt_op, mtc.mt_count); |
file | 1882 | drivers/scsi/st.c | i = flush_buffer(inode, file, 0); |
file | 87 | drivers/sound/audio.c | audio_open (int dev, struct fileinfo *file) |
file | 92 | drivers/sound/audio.c | int mode = file->mode & O_ACCMODE; |
file | 108 | drivers/sound/audio.c | audio_release (dev, file); |
file | 118 | drivers/sound/audio.c | audio_release (dev, file); |
file | 138 | drivers/sound/audio.c | audio_release (int dev, struct fileinfo *file) |
file | 143 | drivers/sound/audio.c | mode = file->mode & O_ACCMODE; |
file | 189 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count) |
file | 290 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 358 | drivers/sound/audio.c | audio_ioctl (int dev, struct fileinfo *file, |
file | 485 | drivers/sound/audio.c | audio_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
file | 497 | drivers/sound/audio.c | return DMAbuf_select (dev, file, sel_type, wait); |
file | 509 | drivers/sound/audio.c | return DMAbuf_select (dev, file, sel_type, wait); |
file | 1355 | drivers/sound/dmabuf.c | DMAbuf_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
file | 203 | drivers/sound/midibuf.c | MIDIbuf_open (int dev, struct fileinfo *file) |
file | 209 | drivers/sound/midibuf.c | mode = file->mode & O_ACCMODE; |
file | 279 | drivers/sound/midibuf.c | MIDIbuf_release (int dev, struct fileinfo *file) |
file | 285 | drivers/sound/midibuf.c | mode = file->mode & O_ACCMODE; |
file | 339 | drivers/sound/midibuf.c | MIDIbuf_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count) |
file | 407 | drivers/sound/midibuf.c | MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 468 | drivers/sound/midibuf.c | MIDIbuf_ioctl (int dev, struct fileinfo *file, |
file | 504 | drivers/sound/midibuf.c | MIDIbuf_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
file | 94 | drivers/sound/patmgr.c | pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 149 | drivers/sound/patmgr.c | pmgr_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count) |
file | 104 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * 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 snd_rw_buf * buf, int count) |
file | 270 | drivers/sound/sequencer.c | int mode = file->mode & O_ACCMODE; |
file | 282 | drivers/sound/sequencer.c | return pmgr_write (dev - 1, file, buf, count); |
file | 353 | drivers/sound/sequencer.c | mode = file->mode & O_ACCMODE; |
file | 368 | drivers/sound/sequencer.c | if (!seq_queue (event, (file->flags & (O_NONBLOCK) ? |
file | 376 | drivers/sound/sequencer.c | if (!processed && (file->flags & (O_NONBLOCK) ? |
file | 1094 | drivers/sound/sequencer.c | sequencer_open (int dev, struct fileinfo *file) |
file | 1102 | drivers/sound/sequencer.c | mode = file->mode & O_ACCMODE; |
file | 1302 | drivers/sound/sequencer.c | sequencer_release (int dev, struct fileinfo *file) |
file | 1305 | drivers/sound/sequencer.c | int mode = file->mode & O_ACCMODE; |
file | 1325 | drivers/sound/sequencer.c | if (mode != OPEN_READ && !(file->flags & (O_NONBLOCK) ? |
file | 1554 | drivers/sound/sequencer.c | sequencer_ioctl (int dev, struct fileinfo *file, |
file | 1558 | drivers/sound/sequencer.c | int mode = file->mode & O_ACCMODE; |
file | 1640 | drivers/sound/sequencer.c | mode = file->mode & O_ACCMODE; |
file | 1924 | drivers/sound/sequencer.c | sequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
file | 19 | drivers/sound/sound_calls.h | int DMAbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
file | 26 | drivers/sound/sound_calls.h | int audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 27 | drivers/sound/sound_calls.h | int audio_write (int dev, struct fileinfo *file, const snd_rw_buf *buf, int count); |
file | 28 | drivers/sound/sound_calls.h | int audio_open (int dev, struct fileinfo *file); |
file | 29 | drivers/sound/sound_calls.h | void audio_release (int dev, struct fileinfo *file); |
file | 30 | drivers/sound/sound_calls.h | int audio_ioctl (int dev, struct fileinfo *file, |
file | 32 | drivers/sound/sound_calls.h | int audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
file | 35 | drivers/sound/sound_calls.h | int audio_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
file | 41 | drivers/sound/sound_calls.h | int sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 42 | drivers/sound/sound_calls.h | int sequencer_write (int dev, struct fileinfo *file, const snd_rw_buf *buf, int count); |
file | 43 | drivers/sound/sound_calls.h | int sequencer_open (int dev, struct fileinfo *file); |
file | 44 | drivers/sound/sound_calls.h | void sequencer_release (int dev, struct fileinfo *file); |
file | 45 | drivers/sound/sound_calls.h | int sequencer_ioctl (int dev, struct fileinfo *file, |
file | 47 | drivers/sound/sound_calls.h | int sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
file | 55 | drivers/sound/sound_calls.h | int sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
file | 61 | drivers/sound/sound_calls.h | int MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 62 | drivers/sound/sound_calls.h | int MIDIbuf_write (int dev, struct fileinfo *file, const snd_rw_buf *buf, int count); |
file | 63 | drivers/sound/sound_calls.h | int MIDIbuf_open (int dev, struct fileinfo *file); |
file | 64 | drivers/sound/sound_calls.h | void MIDIbuf_release (int dev, struct fileinfo *file); |
file | 65 | drivers/sound/sound_calls.h | int MIDIbuf_ioctl (int dev, struct fileinfo *file, |
file | 67 | drivers/sound/sound_calls.h | int MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
file | 71 | drivers/sound/sound_calls.h | int MIDIbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
file | 90 | drivers/sound/sound_calls.h | int sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 91 | drivers/sound/sound_calls.h | int sound_write_sw (int dev, struct fileinfo *file, const snd_rw_buf *buf, int count); |
file | 92 | drivers/sound/sound_calls.h | int sound_open_sw (int dev, struct fileinfo *file); |
file | 93 | drivers/sound/sound_calls.h | void sound_release_sw (int dev, struct fileinfo *file); |
file | 94 | drivers/sound/sound_calls.h | int sound_ioctl_sw (int dev, struct fileinfo *file, |
file | 197 | drivers/sound/sound_calls.h | int pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
file | 198 | drivers/sound/sound_calls.h | int pmgr_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count); |
file | 239 | drivers/sound/sound_calls.h | int pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 240 | drivers/sound/sound_calls.h | int pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 241 | drivers/sound/sound_calls.h | int pss_open (int dev, struct fileinfo *file); |
file | 242 | drivers/sound/sound_calls.h | void pss_release (int dev, struct fileinfo *file); |
file | 243 | drivers/sound/sound_calls.h | int pss_ioctl (int dev, struct fileinfo *file, |
file | 245 | drivers/sound/sound_calls.h | int pss_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
file | 332 | drivers/sound/sound_switch.c | sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 346 | drivers/sound/sound_switch.c | return audio_read (dev, file, buf, count); |
file | 353 | drivers/sound/sound_switch.c | return sequencer_read (dev, file, buf, count); |
file | 359 | drivers/sound/sound_switch.c | return MIDIbuf_read (dev, file, buf, count); |
file | 370 | drivers/sound/sound_switch.c | sound_write_sw (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count) |
file | 381 | drivers/sound/sound_switch.c | return sequencer_write (dev, file, buf, count); |
file | 389 | drivers/sound/sound_switch.c | return audio_write (dev, file, buf, count); |
file | 395 | drivers/sound/sound_switch.c | return MIDIbuf_write (dev, file, buf, count); |
file | 406 | drivers/sound/sound_switch.c | sound_open_sw (int dev, struct fileinfo *file) |
file | 437 | drivers/sound/sound_switch.c | if ((retval = sequencer_open (dev, file)) < 0) |
file | 444 | drivers/sound/sound_switch.c | if ((retval = MIDIbuf_open (dev, file)) < 0) |
file | 453 | drivers/sound/sound_switch.c | if ((retval = audio_open (dev, file)) < 0) |
file | 470 | drivers/sound/sound_switch.c | sound_release_sw (int dev, struct fileinfo *file) |
file | 490 | drivers/sound/sound_switch.c | sequencer_release (dev, file); |
file | 496 | drivers/sound/sound_switch.c | MIDIbuf_release (dev, file); |
file | 504 | drivers/sound/sound_switch.c | audio_release (dev, file); |
file | 517 | drivers/sound/sound_switch.c | sound_ioctl_sw (int dev, struct fileinfo *file, |
file | 565 | drivers/sound/sound_switch.c | return sequencer_ioctl (dev, file, cmd, arg); |
file | 573 | drivers/sound/sound_switch.c | return audio_ioctl (dev, file, cmd, arg); |
file | 579 | drivers/sound/sound_switch.c | return MIDIbuf_ioctl (dev, file, cmd, arg); |
file | 77 | drivers/sound/soundcard.c | sound_read (struct inode *inode, struct file *file, char *buf, int count) |
file | 83 | drivers/sound/soundcard.c | files[dev].flags = file->f_flags; |
file | 89 | drivers/sound/soundcard.c | sound_write (struct inode *inode, struct file *file, const char *buf, int count) |
file | 95 | drivers/sound/soundcard.c | files[dev].flags = file->f_flags; |
file | 101 | drivers/sound/soundcard.c | sound_lseek (struct inode *inode, struct file *file, off_t offset, int orig) |
file | 107 | drivers/sound/soundcard.c | sound_open (struct inode *inode, struct file *file) |
file | 128 | drivers/sound/soundcard.c | tmp_file.flags = file->f_flags; |
file | 149 | drivers/sound/soundcard.c | sound_release (struct inode *inode, struct file *file) |
file | 155 | drivers/sound/soundcard.c | files[dev].flags = file->f_flags; |
file | 164 | drivers/sound/soundcard.c | sound_ioctl (struct inode *inode, struct file *file, |
file | 171 | drivers/sound/soundcard.c | files[dev].flags = file->f_flags; |
file | 202 | drivers/sound/soundcard.c | sound_select (struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 208 | drivers/sound/soundcard.c | files[dev].flags = file->f_flags; |
file | 166 | fs/binfmt_elf.c | struct file * file; |
file | 220 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
file | 236 | fs/binfmt_elf.c | error = do_mmap(file, |
file | 344 | fs/binfmt_elf.c | struct file * file; |
file | 411 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
file | 578 | fs/binfmt_elf.c | error = do_mmap(file, |
file | 709 | fs/binfmt_elf.c | struct file * file; |
file | 721 | fs/binfmt_elf.c | file = current->files->fd[fd]; |
file | 722 | fs/binfmt_elf.c | inode = file->f_inode; |
file | 725 | fs/binfmt_elf.c | if (!file || !file->f_op) |
file | 729 | fs/binfmt_elf.c | if (file->f_op->lseek) { |
file | 730 | fs/binfmt_elf.c | if ((error = file->f_op->lseek(inode, file, 0, 0)) != 0) |
file | 733 | fs/binfmt_elf.c | file->f_pos = 0; |
file | 736 | fs/binfmt_elf.c | error = file->f_op->read(inode, file, (char *) &elf_ex, sizeof(elf_ex)); |
file | 776 | fs/binfmt_elf.c | error = do_mmap(file, |
file | 823 | fs/binfmt_elf.c | static int dump_write(struct file *file, const void *addr, int nr) |
file | 825 | fs/binfmt_elf.c | return file->f_op->write(file->f_inode, file, addr, nr) == nr; |
file | 828 | fs/binfmt_elf.c | static int dump_seek(struct file *file, off_t off) |
file | 830 | fs/binfmt_elf.c | if (file->f_op->lseek) { |
file | 831 | fs/binfmt_elf.c | if (file->f_op->lseek(file->f_inode, file, off, 0) != off) |
file | 834 | fs/binfmt_elf.c | file->f_pos = off; |
file | 899 | fs/binfmt_elf.c | do { if (!dump_write(file, (addr), (nr))) return 0; } while(0) |
file | 901 | fs/binfmt_elf.c | do { if (!dump_seek(file, (off))) return 0; } while(0) |
file | 903 | fs/binfmt_elf.c | static int writenote(struct memelfnote *men, struct file *file) |
file | 914 | fs/binfmt_elf.c | DUMP_SEEK(roundup((unsigned long)file->f_pos, 4)); /* XXX */ |
file | 916 | fs/binfmt_elf.c | DUMP_SEEK(roundup((unsigned long)file->f_pos, 4)); /* XXX */ |
file | 924 | fs/binfmt_elf.c | if (!dump_write(&file, (addr), (nr))) \ |
file | 927 | fs/binfmt_elf.c | if (!dump_seek(&file, (off))) \ |
file | 939 | fs/binfmt_elf.c | struct file file; |
file | 1020 | fs/binfmt_elf.c | file.f_mode = 3; |
file | 1021 | fs/binfmt_elf.c | file.f_flags = 0; |
file | 1022 | fs/binfmt_elf.c | file.f_count = 1; |
file | 1023 | fs/binfmt_elf.c | file.f_inode = inode; |
file | 1024 | fs/binfmt_elf.c | file.f_pos = 0; |
file | 1025 | fs/binfmt_elf.c | file.f_reada = 0; |
file | 1026 | fs/binfmt_elf.c | file.f_op = inode->i_op->default_file_ops; |
file | 1027 | fs/binfmt_elf.c | if (file.f_op->open) |
file | 1028 | fs/binfmt_elf.c | if (file.f_op->open(inode,&file)) |
file | 1030 | 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 | 241 | fs/buffer.c | int file_fsync (struct inode *inode, struct file *filp) |
file | 248 | fs/buffer.c | struct file * file; |
file | 251 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
file | 253 | fs/buffer.c | if (!file->f_op || !file->f_op->fsync) |
file | 255 | fs/buffer.c | if (file->f_op->fsync(inode,file)) |
file | 171 | fs/devices.c | int blkdev_open(struct inode * inode, struct file * filp) |
file | 222 | fs/devices.c | int chrdev_open(struct inode * inode, struct file * filp) |
file | 107 | fs/exec.c | struct file *f, **fpp; |
file | 149 | fs/exec.c | while (file.f_op->write(inode,&file,(char *)(addr),(nr)) != (nr)) goto close_coredump |
file | 152 | fs/exec.c | if (file.f_op->lseek) { \ |
file | 153 | fs/exec.c | if (file.f_op->lseek(inode,&file,(offset),0) != (offset)) \ |
file | 155 | fs/exec.c | } else file.f_pos = (offset) |
file | 169 | fs/exec.c | struct file file; |
file | 206 | fs/exec.c | file.f_mode = 3; |
file | 207 | fs/exec.c | file.f_flags = 0; |
file | 208 | fs/exec.c | file.f_count = 1; |
file | 209 | fs/exec.c | file.f_inode = inode; |
file | 210 | fs/exec.c | file.f_pos = 0; |
file | 211 | fs/exec.c | file.f_reada = 0; |
file | 212 | fs/exec.c | file.f_op = inode->i_op->default_file_ops; |
file | 213 | fs/exec.c | if (file.f_op->open) |
file | 214 | fs/exec.c | if (file.f_op->open(inode,&file)) |
file | 216 | fs/exec.c | if (!file.f_op->write) |
file | 265 | fs/exec.c | if (file.f_op->release) |
file | 266 | fs/exec.c | file.f_op->release(inode,&file); |
file | 284 | fs/exec.c | struct file * file; |
file | 290 | fs/exec.c | file = current->files->fd[fd]; |
file | 292 | fs/exec.c | if (file && file->f_inode && file->f_op && file->f_op->read) { |
file | 490 | fs/exec.c | struct file file; |
file | 495 | fs/exec.c | file.f_mode = 1; |
file | 496 | fs/exec.c | file.f_flags = 0; |
file | 497 | fs/exec.c | file.f_count = 1; |
file | 498 | fs/exec.c | file.f_inode = inode; |
file | 499 | fs/exec.c | file.f_pos = 0; |
file | 500 | fs/exec.c | file.f_reada = 0; |
file | 501 | fs/exec.c | file.f_op = inode->i_op->default_file_ops; |
file | 502 | fs/exec.c | if (file.f_op->open) |
file | 503 | fs/exec.c | if (file.f_op->open(inode,&file)) |
file | 505 | fs/exec.c | if (!file.f_op || !file.f_op->read) |
file | 507 | fs/exec.c | if (file.f_op->lseek) { |
file | 508 | fs/exec.c | if (file.f_op->lseek(inode,&file,offset,0) != offset) |
file | 511 | fs/exec.c | file.f_pos = offset; |
file | 515 | fs/exec.c | result = file.f_op->read(inode, &file, addr, count); |
file | 521 | fs/exec.c | result = file.f_op->read(inode, &file, addr, count); |
file | 524 | fs/exec.c | if (file.f_op->release) |
file | 525 | fs/exec.c | file.f_op->release(inode,&file); |
file | 816 | fs/exec.c | struct file * file; |
file | 893 | fs/exec.c | file = current->files->fd[fd]; |
file | 894 | fs/exec.c | if (!file->f_op || !file->f_op->mmap) { |
file | 904 | fs/exec.c | error = do_mmap(file, N_TXTADDR(ex), ex.a_text, |
file | 915 | fs/exec.c | error = do_mmap(file, N_DATADDR(ex), ex.a_data, |
file | 960 | fs/exec.c | struct file * file; |
file | 968 | fs/exec.c | file = current->files->fd[fd]; |
file | 969 | fs/exec.c | inode = file->f_inode; |
file | 971 | fs/exec.c | if (!file || !file->f_op) |
file | 975 | fs/exec.c | if (file->f_op->lseek) { |
file | 976 | fs/exec.c | if ((error = file->f_op->lseek(inode, file, 0, 0)) != 0) |
file | 979 | fs/exec.c | file->f_pos = 0; |
file | 982 | fs/exec.c | error = file->f_op->read(inode, file, (char *) &ex, sizeof(ex)); |
file | 1007 | fs/exec.c | error = do_mmap(file, start_addr, ex.a_text + ex.a_data, |
file | 23 | fs/ext/dir.c | static int ext_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 28 | fs/ext/dir.c | static int ext_readdir(struct inode *, struct file *, void *, filldir_t); |
file | 64 | fs/ext/dir.c | static int ext_readdir(struct inode * inode, struct file * filp, |
file | 34 | fs/ext/file.c | static int ext_file_read(struct inode *, struct file *, char *, int); |
file | 35 | fs/ext/file.c | static int ext_file_write(struct inode *, struct file *, const char *, int); |
file | 72 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 197 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
file | 169 | fs/ext/fsync.c | int ext_sync_file(struct inode * inode, struct file *file) |
file | 249 | fs/ext/truncate.c | void ext_release(struct inode * inode, struct file * filp) |
file | 26 | fs/ext2/dir.c | static int ext2_dir_read (struct inode * inode, struct file * filp, |
file | 32 | fs/ext2/dir.c | static int ext2_readdir (struct inode *, struct file *, void *, filldir_t); |
file | 98 | fs/ext2/dir.c | static int ext2_readdir (struct inode * inode, struct file * filp, |
file | 37 | fs/ext2/file.c | static int ext2_file_read (struct inode *, struct file *, char *, int); |
file | 38 | fs/ext2/file.c | static int ext2_file_write (struct inode *, struct file *, const char *, int); |
file | 39 | fs/ext2/file.c | static void ext2_release_file (struct inode *, struct file *); |
file | 80 | fs/ext2/file.c | static int ext2_file_read (struct inode * inode, struct file * filp, |
file | 231 | fs/ext2/file.c | static int ext2_file_write (struct inode * inode, struct file * filp, |
file | 357 | fs/ext2/file.c | static void ext2_release_file (struct inode * inode, struct file * filp) |
file | 166 | fs/ext2/fsync.c | int ext2_sync_file (struct inode * inode, struct file * file) |
file | 19 | fs/ext2/ioctl.c | int ext2_ioctl (struct inode * inode, struct file * filp, unsigned int cmd, |
file | 18 | fs/fcntl.c | extern int sock_fcntl (struct file *, unsigned int cmd, unsigned long arg); |
file | 68 | fs/fcntl.c | struct file * filp; |
file | 13 | fs/fifo.c | static int fifo_open(struct inode * inode,struct file * filp) |
file | 16 | fs/file_table.c | struct file * first_file = NULL; |
file | 22 | fs/file_table.c | static inline void insert_file_free(struct file *file) |
file | 24 | fs/file_table.c | file->f_count = 0; |
file | 25 | fs/file_table.c | file->f_next = first_file; |
file | 26 | fs/file_table.c | file->f_prev = first_file->f_prev; |
file | 27 | fs/file_table.c | file->f_next->f_prev = file; |
file | 28 | fs/file_table.c | file->f_prev->f_next = file; |
file | 29 | fs/file_table.c | first_file = file; |
file | 35 | fs/file_table.c | static inline void remove_file_free(struct file *file) |
file | 37 | fs/file_table.c | if (first_file == file) |
file | 39 | fs/file_table.c | file->f_next->f_prev = file->f_prev; |
file | 40 | fs/file_table.c | file->f_prev->f_next = file->f_next; |
file | 41 | fs/file_table.c | file->f_next = file->f_prev = NULL; |
file | 47 | fs/file_table.c | static inline void put_last_free(struct file *file) |
file | 49 | fs/file_table.c | file->f_prev = first_file->f_prev; |
file | 50 | fs/file_table.c | file->f_prev->f_next = file; |
file | 51 | fs/file_table.c | file->f_next = first_file; |
file | 52 | fs/file_table.c | file->f_next->f_prev = file; |
file | 62 | fs/file_table.c | struct file * file; |
file | 71 | fs/file_table.c | file = (struct file *) __get_free_page(GFP_KERNEL); |
file | 73 | fs/file_table.c | if (!file) |
file | 76 | fs/file_table.c | nr_files += i = PAGE_SIZE/sizeof(struct file); |
file | 79 | fs/file_table.c | file->f_count = 0, |
file | 80 | fs/file_table.c | file->f_next = file->f_prev = first_file = file++, |
file | 84 | fs/file_table.c | insert_file_free(file++); |
file | 99 | fs/file_table.c | struct file * get_empty_filp(void) |
file | 102 | fs/file_table.c | struct file * f; |
file | 147 | fs/hpfs/hpfs_fs.c | static int hpfs_file_read(struct inode *, struct file *, char *, int); |
file | 186 | fs/hpfs/hpfs_fs.c | static int hpfs_dir_read(struct inode *inode, struct file *filp, |
file | 188 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, |
file | 872 | fs/hpfs/hpfs_fs.c | static int hpfs_file_read(struct inode *inode, struct file *filp, |
file | 1358 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, void * dirent, |
file | 1573 | fs/hpfs/hpfs_fs.c | static int hpfs_dir_read(struct inode *inode, struct file *filp, |
file | 198 | fs/inode.c | struct file * file; |
file | 202 | fs/inode.c | for (file = first_file, i=0; i<nr_files; i++, file=file->f_next) { |
file | 203 | fs/inode.c | if (!file->f_count || !file->f_inode || |
file | 204 | fs/inode.c | file->f_inode->i_dev != dev) |
file | 206 | fs/inode.c | if (S_ISREG(file->f_inode->i_mode) && (file->f_mode & 2)) |
file | 17 | fs/ioctl.c | static int file_ioctl(struct file *filp,unsigned int cmd,unsigned long arg) |
file | 60 | fs/ioctl.c | struct file * filp; |
file | 24 | fs/isofs/dir.c | static int isofs_readdir(struct inode *, struct file *, void *, filldir_t); |
file | 106 | fs/isofs/dir.c | static int do_isofs_readdir(struct inode *inode, struct file *filp, |
file | 263 | fs/isofs/dir.c | static int isofs_readdir(struct inode *inode, struct file *filp, |
file | 30 | fs/isofs/file.c | static int isofs_file_read(struct inode *, struct file *, char *, int); |
file | 117 | fs/isofs/file.c | static int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 71 | fs/locks.c | static int flock_make_lock(struct file *filp, struct file_lock *fl, |
file | 73 | fs/locks.c | static int posix_make_lock(struct file *filp, struct file_lock *fl, |
file | 80 | fs/locks.c | static int flock_lock_file(struct file *filp, struct file_lock *caller, |
file | 82 | fs/locks.c | static int posix_lock_file(struct file *filp, struct file_lock *caller, |
file | 101 | fs/locks.c | struct file *filp; |
file | 122 | fs/locks.c | struct file *filp; |
file | 164 | fs/locks.c | struct file *filp; |
file | 206 | fs/locks.c | void locks_remove_locks(struct task_struct *task, struct file *filp) |
file | 231 | fs/locks.c | static int posix_make_lock(struct file *filp, struct file_lock *fl, |
file | 286 | fs/locks.c | static int flock_make_lock(struct file *filp, struct file_lock *fl, |
file | 413 | fs/locks.c | static int flock_lock_file(struct file *filp, struct file_lock *caller, |
file | 481 | fs/locks.c | static int posix_lock_file(struct file *filp, struct file_lock *caller, |
file | 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 | 58 | fs/minix/dir.c | static int minix_readdir(struct inode * inode, struct file * filp, |
file | 28 | fs/minix/file.c | static int minix_file_read(struct inode *, struct file *, char *, int); |
file | 29 | fs/minix/file.c | static int minix_file_write(struct inode *, struct file *, const char *, int); |
file | 66 | fs/minix/file.c | static int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 189 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
file | 142 | fs/minix/fsync.c | int minix_sync_file(struct inode * inode, struct file * file) |
file | 23 | fs/msdos/dir.c | static int msdos_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
file | 61 | fs/msdos/dir.c | struct file *filp, |
file | 151 | fs/msdos/file.c | struct file *filp, |
file | 265 | fs/msdos/file.c | struct file *filp, |
file | 49 | fs/msdos/mmap.c | struct file filp; |
file | 91 | fs/msdos/mmap.c | int msdos_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
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 | 72 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
file | 88 | fs/nfs/dir.c | static int nfs_readdir(struct inode *inode, struct file *filp, |
file | 312 | fs/nfs/dir.c | static void nfs_lookup_cache_refresh(struct inode *file, |
file | 316 | fs/nfs/dir.c | kdev_t dev = file->i_dev; |
file | 317 | fs/nfs/dir.c | int fileid = file->i_ino; |
file | 29 | fs/nfs/file.c | static int nfs_file_read(struct inode *, struct file *, char *, int); |
file | 30 | fs/nfs/file.c | static int nfs_file_write(struct inode *, struct file *, const char *, int); |
file | 31 | fs/nfs/file.c | static int nfs_fsync(struct inode *, struct file *); |
file | 89 | fs/nfs/file.c | static int nfs_fsync(struct inode *inode, struct file *file) |
file | 94 | fs/nfs/file.c | static int nfs_file_read(struct inode *inode, struct file *file, char *buf, |
file | 111 | fs/nfs/file.c | pos = file->f_pos; |
file | 130 | fs/nfs/file.c | file->f_pos += count; |
file | 143 | fs/nfs/file.c | file->f_pos = pos; |
file | 164 | fs/nfs/file.c | file->f_pos = pos + hunk; |
file | 169 | fs/nfs/file.c | file->f_pos = pos + hunk; |
file | 189 | fs/nfs/file.c | static int nfs_file_write(struct inode *inode, struct file *file, const char *buf, |
file | 214 | fs/nfs/file.c | pos = file->f_pos; |
file | 215 | fs/nfs/file.c | if (file->f_flags & O_APPEND) |
file | 233 | fs/nfs/file.c | file->f_pos = pos; |
file | 30 | fs/nfs/inode.c | extern int close_fp(struct file *filp); |
file | 55 | fs/nfs/inode.c | close_fp(sb->u.nfs_sb.s_server.file); |
file | 77 | fs/nfs/inode.c | struct file *filp; |
file | 114 | fs/nfs/inode.c | server->file = filp; |
file | 95 | fs/nfs/mmap.c | int nfs_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 531 | fs/nfs/nfsroot.c | static struct file nfs_file; /* File descriptor containing socket */ |
file | 544 | fs/nfs/nfsroot.c | struct file *filp; |
file | 559 | fs/nfs/nfsroot.c | memcpy(&nfs_file, filp, sizeof(struct file)); |
file | 639 | fs/nfs/nfsroot.c | struct file *filp; |
file | 104 | fs/nfs/rpcsock.c | struct file *file = rsock->file; |
file | 111 | fs/nfs/rpcsock.c | if (!file->f_op->select(file->f_inode, file, SEL_IN, &wait_table) |
file | 112 | fs/nfs/rpcsock.c | && !file->f_op->select(file->f_inode, file, SEL_IN, NULL)) { |
file | 353 | fs/nfs/rpcsock.c | rpc_makesock(struct file *file) |
file | 364 | fs/nfs/rpcsock.c | rsock->sock = &file->f_inode->u.socket_i; |
file | 365 | 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 | 117 | fs/open.c | struct file * file; |
file | 119 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 121 | fs/open.c | if (!(inode = file->f_inode)) |
file | 123 | fs/open.c | if (S_ISDIR(inode->i_mode) || !(file->f_mode & 2)) |
file | 274 | fs/open.c | struct file * file; |
file | 277 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 279 | fs/open.c | if (!(inode = file->f_inode)) |
file | 315 | fs/open.c | struct file * file; |
file | 318 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 320 | fs/open.c | if (!(inode = file->f_inode)) |
file | 366 | 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 | 467 | fs/open.c | struct file * f; |
file | 544 | fs/open.c | int close_fp(struct file *filp) |
file | 570 | fs/open.c | struct file * filp; |
file | 25 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 72 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, const char * buf, int count) |
file | 119 | fs/pipe.c | static int pipe_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 124 | fs/pipe.c | static int bad_pipe_r(struct inode * inode, struct file * filp, char * buf, int count) |
file | 129 | fs/pipe.c | static int bad_pipe_w(struct inode * inode, struct file * filp, const char * buf, int count) |
file | 134 | fs/pipe.c | static int pipe_ioctl(struct inode *pino, struct file * filp, |
file | 150 | fs/pipe.c | static int pipe_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 176 | fs/pipe.c | static int fifo_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 203 | fs/pipe.c | static int connect_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 219 | fs/pipe.c | static int connect_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 247 | fs/pipe.c | static void pipe_read_release(struct inode * inode, struct file * filp) |
file | 253 | fs/pipe.c | static void pipe_write_release(struct inode * inode, struct file * filp) |
file | 259 | fs/pipe.c | static void pipe_rdwr_release(struct inode * inode, struct file * filp) |
file | 382 | fs/pipe.c | struct file *f[2]; |
file | 57 | fs/proc/array.c | static int read_core(struct inode * inode, struct file * file,char * buf, int count) |
file | 59 | fs/proc/array.c | unsigned long p = file->f_pos, memsize; |
file | 107 | fs/proc/array.c | file->f_pos += read; |
file | 130 | fs/proc/array.c | static int read_profile(struct inode *inode, struct file *file, char *buf, int count) |
file | 132 | fs/proc/array.c | unsigned long p = file->f_pos; |
file | 152 | fs/proc/array.c | file->f_pos += read; |
file | 157 | fs/proc/array.c | static int write_profile(struct inode * inode, struct file * file, const char * buf, int count) |
file | 673 | fs/proc/array.c | static int read_maps (int pid, struct file * file, char * buf, int count) |
file | 689 | fs/proc/array.c | lineno = file->f_pos >> MAPS_LINE_SHIFT; |
file | 690 | fs/proc/array.c | column = file->f_pos & (MAPS_LINE_LENGTH-1); |
file | 758 | fs/proc/array.c | file->f_pos = (lineno << MAPS_LINE_SHIFT) + column; |
file | 852 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
file | 871 | fs/proc/array.c | &start, file->f_pos, count); |
file | 879 | fs/proc/array.c | file->f_pos += length; |
file | 883 | fs/proc/array.c | if (file->f_pos >= length) { |
file | 887 | fs/proc/array.c | if (count + file->f_pos > length) |
file | 888 | fs/proc/array.c | count = length - file->f_pos; |
file | 889 | fs/proc/array.c | end = count + file->f_pos; |
file | 890 | fs/proc/array.c | memcpy_tofs(buf, (char *) page + file->f_pos, count); |
file | 891 | fs/proc/array.c | file->f_pos = end; |
file | 928 | fs/proc/array.c | static int arraylong_read (struct inode * inode, struct file * file, char * buf, int count) |
file | 938 | fs/proc/array.c | return read_maps(pid, file, buf, count); |
file | 16 | fs/proc/fd.c | static int proc_readfd(struct inode *, struct file *, void *, filldir_t); |
file | 119 | fs/proc/fd.c | static int proc_readfd(struct inode * inode, struct file * filp, |
file | 21 | fs/proc/kmsg.c | static int kmsg_open(struct inode * inode, struct file * file) |
file | 26 | fs/proc/kmsg.c | static void kmsg_release(struct inode * inode, struct file * file) |
file | 31 | fs/proc/kmsg.c | static int kmsg_read(struct inode * inode, struct file * file,char * buf, int count) |
file | 36 | fs/proc/kmsg.c | static int kmsg_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 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 | 40 | fs/proc/net.c | static int proc_readnet(struct inode * inode, struct file * file, |
file | 62 | fs/proc/net.c | file->f_pos, |
file | 64 | fs/proc/net.c | (file->f_flags & O_ACCMODE) == O_RDWR); |
file | 78 | fs/proc/net.c | file->f_pos += length; /* Move down the file */ |
file | 22 | fs/proc/root.c | static int proc_root_readdir(struct inode *, struct file *, void *, filldir_t); |
file | 427 | fs/proc/root.c | int proc_readdir(struct inode * inode, struct file * filp, |
file | 479 | 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 | 102 | fs/proc/scsi.c | static int proc_readscsi(struct inode * inode, struct file * file, |
file | 126 | fs/proc/scsi.c | file->f_pos, thistime, 0); |
file | 128 | fs/proc/scsi.c | length = get_not_present_info(page, &start, file->f_pos, thistime); |
file | 147 | fs/proc/scsi.c | file->f_pos += length; /* Move down the file */ |
file | 161 | fs/proc/scsi.c | static int proc_writescsi(struct inode * inode, struct file * file, |
file | 184 | fs/proc/scsi.c | static int proc_scsilseek(struct inode * inode, struct file * file, |
file | 189 | fs/proc/scsi.c | file->f_pos = offset; |
file | 190 | fs/proc/scsi.c | return(file->f_pos); |
file | 192 | fs/proc/scsi.c | file->f_pos += offset; |
file | 193 | fs/proc/scsi.c | return(file->f_pos); |
file | 197 | fs/proc/scsi.c | proc_readscsi(inode, file, 0, -1); /* seek in it */ |
file | 198 | 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 | 141 | fs/read_write.c | written = file->f_op->write(inode,file,buf,count); |
file | 155 | fs/read_write.c | static int sock_readv_writev(int type, struct inode * inode, struct file * file, |
file | 175 | fs/read_write.c | (file->f_flags & O_NONBLOCK), 0, NULL); |
file | 180 | fs/read_write.c | (file->f_flags & O_NONBLOCK), 0); |
file | 183 | fs/read_write.c | typedef int (*IO_fn_t)(struct inode *, struct file *, char *, int); |
file | 185 | fs/read_write.c | static int do_readv_writev(int type, struct inode * inode, struct file * file, |
file | 219 | fs/read_write.c | return sock_readv_writev(type, inode, file, iov, count, tot_len); |
file | 221 | fs/read_write.c | if (!file->f_op) |
file | 224 | fs/read_write.c | fn = file->f_op->read; |
file | 226 | fs/read_write.c | fn = (IO_fn_t) file->f_op->write; |
file | 236 | fs/read_write.c | nr = fn(inode, file, base, len); |
file | 252 | fs/read_write.c | struct file * file; |
file | 255 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode)) |
file | 257 | fs/read_write.c | if (!(file->f_mode & 1)) |
file | 259 | fs/read_write.c | return do_readv_writev(VERIFY_WRITE, inode, file, vector, count); |
file | 264 | fs/read_write.c | struct file * file; |
file | 267 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode)) |
file | 269 | fs/read_write.c | if (!(file->f_mode & 2)) |
file | 271 | fs/read_write.c | return 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 | 119 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count) |
file | 156 | fs/smbfs/dir.c | smb_readdir(struct inode *inode, struct file *filp, |
file | 21 | fs/smbfs/file.c | smb_fsync(struct inode *inode, struct file *file) |
file | 63 | fs/smbfs/file.c | smb_file_read(struct inode *inode, struct file *file, char *buf, int count) |
file | 85 | fs/smbfs/file.c | pos = file->f_pos; |
file | 129 | fs/smbfs/file.c | file->f_pos = pos; |
file | 140 | fs/smbfs/file.c | smb_file_write(struct inode *inode, struct file *file, const char *buf, int count) |
file | 165 | fs/smbfs/file.c | pos = file->f_pos; |
file | 167 | fs/smbfs/file.c | if (file->f_flags & O_APPEND) |
file | 214 | 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 | 100 | 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 | 163 | fs/stat.c | struct file * f; |
file | 178 | fs/stat.c | struct file * f; |
file | 644 | fs/super.c | struct file dummy; /* allows read-write or read-only flag */ |
file | 682 | 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 | 65 | fs/sysv/dir.c | static int sysv_readdir(struct inode * inode, struct file * filp, |
file | 35 | fs/sysv/file.c | static int sysv_file_write(struct inode *, struct file *, const char *, int); |
file | 72 | fs/sysv/file.c | int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 199 | 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 | 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 | 61 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
file | 66 | fs/xiafs/dir.c | static int xiafs_readdir(struct inode * inode, struct file * filp, |
file | 31 | fs/xiafs/file.c | static int xiafs_file_read(struct inode *, struct file *, char *, int); |
file | 32 | fs/xiafs/file.c | static int xiafs_file_write(struct inode *, struct file *, const char *, int); |
file | 70 | fs/xiafs/file.c | xiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 190 | 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 | 239 | include/asm-alpha/unistd.h | static inline int execve(char * file, char ** argvp, char ** envp) |
file | 245 | include/asm-alpha/unistd.h | i = do_execve(file, argvp, envp, ®s); |
file | 268 | include/asm-i386/unistd.h | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
file | 269 | include/asm-i386/unistd.h | static inline _syscall3(int,open,const char *,file,int,flag,int,mode) |
file | 162 | include/asm-sparc/unistd.h | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
file | 163 | include/asm-sparc/unistd.h | static inline _syscall3(int,open,const char *,file,int,flag,int,mode) |
file | 423 | include/linux/ext2_fs.h | extern int ext2_read (struct inode *, struct file *, char *, int); |
file | 424 | include/linux/ext2_fs.h | extern int ext2_write (struct inode *, struct file *, char *, int); |
file | 427 | include/linux/ext2_fs.h | extern int ext2_sync_file (struct inode *, struct file *); |
file | 449 | include/linux/ext2_fs.h | extern int ext2_ioctl (struct inode *, struct file *, unsigned int, |
file | 453 | include/linux/ext2_fs.h | extern void ext2_release (struct inode *, struct file *); |
file | 63 | include/linux/ext_fs.h | extern int ext_open(struct inode * inode, struct file * filp); |
file | 64 | include/linux/ext_fs.h | extern void ext_release(struct inode * inode, struct file * filp); |
file | 99 | include/linux/ext_fs.h | extern int ext_sync_file(struct inode *, struct file *); |
file | 101 | include/linux/ext_fs.h | extern int ext_lseek(struct inode *, struct file *, off_t, int); |
file | 102 | include/linux/ext_fs.h | extern int ext_read(struct inode *, struct file *, char *, int); |
file | 103 | include/linux/ext_fs.h | extern int ext_write(struct inode *, struct file *, char *, int); |
file | 48 | include/linux/fs.h | #define NIL_FILP ((struct file *)0) |
file | 255 | include/linux/fs.h | struct file *f_next, *f_prev; |
file | 270 | include/linux/fs.h | struct file *fl_file; |
file | 280 | include/linux/fs.h | struct file *fa_file; |
file | 285 | include/linux/fs.h | extern int fasync_helper(struct inode *, struct file *, int, struct fasync_struct **); |
file | 335 | include/linux/fs.h | int (*lseek) (struct inode *, struct file *, off_t, int); |
file | 336 | include/linux/fs.h | int (*read) (struct inode *, struct file *, char *, int); |
file | 337 | include/linux/fs.h | int (*write) (struct inode *, struct file *, const char *, int); |
file | 338 | include/linux/fs.h | int (*readdir) (struct inode *, struct file *, void *, filldir_t); |
file | 339 | include/linux/fs.h | int (*select) (struct inode *, struct file *, int, select_table *); |
file | 340 | include/linux/fs.h | int (*ioctl) (struct inode *, struct file *, unsigned int, unsigned long); |
file | 341 | include/linux/fs.h | int (*mmap) (struct inode *, struct file *, struct vm_area_struct *); |
file | 342 | include/linux/fs.h | int (*open) (struct inode *, struct file *); |
file | 343 | include/linux/fs.h | void (*release) (struct inode *, struct file *); |
file | 344 | include/linux/fs.h | int (*fsync) (struct inode *, struct file *); |
file | 345 | include/linux/fs.h | int (*fasync) (struct inode *, struct file *, int); |
file | 400 | include/linux/fs.h | extern int blkdev_open(struct inode * inode, struct file * filp); |
file | 406 | include/linux/fs.h | extern int chrdev_open(struct inode * inode, struct file * filp); |
file | 426 | include/linux/fs.h | extern struct file *first_file; |
file | 491 | include/linux/fs.h | extern struct file * get_empty_filp(void); |
file | 492 | include/linux/fs.h | extern int close_fp(struct file *filp); |
file | 524 | include/linux/fs.h | extern int char_read(struct inode *, struct file *, char *, int); |
file | 525 | include/linux/fs.h | extern int block_read(struct inode *, struct file *, char *, int); |
file | 528 | include/linux/fs.h | extern int char_write(struct inode *, struct file *, const char *, int); |
file | 529 | include/linux/fs.h | extern int block_write(struct inode *, struct file *, const char *, int); |
file | 531 | include/linux/fs.h | extern int generic_mmap(struct inode *, struct file *, struct vm_area_struct *); |
file | 533 | include/linux/fs.h | extern int block_fsync(struct inode *, struct file *); |
file | 534 | include/linux/fs.h | extern int file_fsync(struct inode *, struct file *); |
file | 167 | include/linux/iso_fs.h | extern int isofs_open(struct inode * inode, struct file * filp); |
file | 168 | include/linux/iso_fs.h | extern void isofs_release(struct inode * inode, struct file * filp); |
file | 182 | include/linux/iso_fs.h | extern int isofs_lseek(struct inode *, struct file *, off_t, int); |
file | 183 | include/linux/iso_fs.h | extern int isofs_read(struct inode *, struct file *, char *, int); |
file | 119 | include/linux/minix_fs.h | extern int minix_sync_file(struct inode *, struct file *); |
file | 202 | include/linux/mm.h | extern unsigned long do_mmap(struct file * file, unsigned long addr, unsigned long len, |
file | 176 | include/linux/msdos_fs.h | extern int msdos_readdir (struct inode *inode, struct file *filp, |
file | 182 | include/linux/msdos_fs.h | extern int msdos_file_read(struct inode *, struct file *, char *, int); |
file | 183 | include/linux/msdos_fs.h | extern int msdos_file_write(struct inode *, struct file *, const char *, int); |
file | 189 | include/linux/msdos_fs.h | extern int msdos_mmap(struct inode *, struct file *, struct vm_area_struct *); |
file | 120 | 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 | 223 | 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 | 112 | include/linux/sched.h | struct file * fd[NR_OPEN]; |
file | 115 | include/linux/smb_fs.h | int smb_ioctl (struct inode * inode, struct file * filp, |
file | 180 | include/linux/smb_fs.h | int smb_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma); |
file | 22 | include/linux/smb_fs_sb.h | struct file * sock_file; /* The socket we transfer |
file | 388 | include/linux/sysv_fs.h | extern int sysv_file_read(struct inode *, struct file *, char *, int); |
file | 400 | include/linux/sysv_fs.h | extern int sysv_sync_file(struct inode *, struct file *); |
file | 401 | include/linux/sysv_fs.h | extern int sysv_mmap(struct inode *, struct file *, struct vm_area_struct *); |
file | 306 | include/linux/tty.h | extern void tty_unhangup(struct file *filp); |
file | 307 | include/linux/tty.h | extern int tty_hung_up_p(struct file * filp); |
file | 315 | include/linux/tty.h | extern int n_tty_ioctl(struct tty_struct * tty, struct file * file, |
file | 320 | include/linux/tty.h | extern int rs_open(struct tty_struct * tty, struct file * filp); |
file | 324 | include/linux/tty.h | extern int pty_open(struct tty_struct * tty, struct file * filp); |
file | 328 | include/linux/tty.h | extern int con_open(struct tty_struct * tty, struct file * filp); |
file | 334 | include/linux/tty.h | extern int vt_ioctl(struct tty_struct *tty, struct file * file, |
file | 124 | include/linux/tty_driver.h | int (*open)(struct tty_struct * tty, struct file * filp); |
file | 125 | include/linux/tty_driver.h | void (*close)(struct tty_struct * tty, struct file * filp); |
file | 132 | include/linux/tty_driver.h | int (*ioctl)(struct tty_struct *tty, struct file * file, |
file | 22 | include/linux/tty_ldisc.h | int (*read)(struct tty_struct * tty, struct file * file, |
file | 24 | include/linux/tty_ldisc.h | int (*write)(struct tty_struct * tty, struct file * file, |
file | 26 | include/linux/tty_ldisc.h | int (*ioctl)(struct tty_struct * tty, struct file * file, |
file | 30 | include/linux/tty_ldisc.h | struct file * file, int sel_type, |
file | 112 | include/linux/xd.h | static int xd_open (struct inode *inode,struct file *file); |
file | 114 | include/linux/xd.h | static int xd_ioctl (struct inode *inode,struct file *file,unsigned int cmd,unsigned long arg); |
file | 115 | include/linux/xd.h | static void xd_release (struct inode *inode,struct file *file); |
file | 103 | include/linux/xia_fs.h | extern int xiafs_sync_file(struct inode *, struct file *); |
file | 370 | kernel/exit.c | struct file * filp = files->fd[i]; |
file | 172 | kernel/fork.c | struct file * f = current->files->fd[i]; |
file | 10 | lib/execve.c | _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
file | 80 | mm/filemap.c | struct file file; |
file | 96 | mm/filemap.c | file.f_op = inode->i_op->default_file_ops; |
file | 97 | mm/filemap.c | if (!file.f_op->write) |
file | 109 | mm/filemap.c | file.f_mode = 3; |
file | 110 | mm/filemap.c | file.f_flags = 0; |
file | 111 | mm/filemap.c | file.f_count = 1; |
file | 112 | mm/filemap.c | file.f_inode = inode; |
file | 113 | mm/filemap.c | file.f_pos = offset; |
file | 114 | mm/filemap.c | file.f_reada = 0; |
file | 117 | mm/filemap.c | result = file.f_op->write(inode, &file, (const char *) page, size); |
file | 327 | mm/filemap.c | int generic_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 24 | mm/mmap.c | static inline int anon_map(struct inode *ino, struct file * file, struct vm_area_struct * vma) |
file | 53 | mm/mmap.c | unsigned long do_mmap(struct file * file, unsigned long addr, unsigned long len, |
file | 83 | mm/mmap.c | if (file != NULL) { |
file | 86 | mm/mmap.c | if ((prot & PROT_WRITE) && !(file->f_mode & 2)) |
file | 90 | mm/mmap.c | if (!(file->f_mode & 1)) |
file | 98 | mm/mmap.c | if (file->f_inode->i_wcount > 0) |
file | 125 | mm/mmap.c | if (file && (!file->f_op || !file->f_op->mmap)) |
file | 140 | mm/mmap.c | if (file) { |
file | 141 | mm/mmap.c | if (file->f_mode & 1) |
file | 155 | mm/mmap.c | if (!(file->f_mode & 2)) |
file | 168 | mm/mmap.c | if (file) |
file | 169 | mm/mmap.c | error = file->f_op->mmap(file->f_inode, file, vma); |
file | 1054 | mm/swap.c | struct file filp; |
file | 1135 | mm/swap.c | struct file filp; |
file | 77 | net/core/skbuff.c | int skb_check(struct sk_buff *skb, int head, int line, char *file) |
file | 82 | net/core/skbuff.c | file,line); |
file | 92 | net/core/skbuff.c | file,line); |
file | 98 | net/core/skbuff.c | file,line); |
file | 106 | net/core/skbuff.c | if (skb_check(skb2, 0, line, file) < 0) { |
file | 120 | net/core/skbuff.c | file,line); |
file | 126 | net/core/skbuff.c | file,line); |
file | 134 | net/core/skbuff.c | file,line); |
file | 141 | net/core/skbuff.c | printk("File: %s Line %d, passed a non skb!\n", file,line); |
file | 148 | net/core/skbuff.c | printk("File: %s Line %d, head > data !\n", file,line); |
file | 155 | net/core/skbuff.c | printk("File: %s Line %d, tail > end!\n", file,line); |
file | 162 | net/core/skbuff.c | printk("File: %s Line %d, data > tail!\n", file,line); |
file | 169 | net/core/skbuff.c | printk("File: %s Line %d, wrong length\n", file,line); |
file | 176 | 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 | 83 | net/netlink.c | static int netlink_read(struct inode * inode, struct file * file, char * buf, int count) |
file | 90 | net/netlink.c | if(file->f_flags&O_NONBLOCK) |
file | 111 | net/netlink.c | static int netlink_lseek(struct inode * inode, struct file * file, |
file | 117 | net/netlink.c | static int netlink_open(struct inode * inode, struct file * file) |
file | 134 | net/netlink.c | static void netlink_release(struct inode * inode, struct file * file) |
file | 142 | net/netlink.c | static int netlink_ioctl(struct inode *inode, struct file *file, |
file | 73 | net/socket.c | static int sock_lseek(struct inode *inode, struct file *file, off_t offset, |
file | 75 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
file | 77 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, const char *buf, |
file | 80 | net/socket.c | static void sock_close(struct inode *inode, struct file *file); |
file | 81 | net/socket.c | static int sock_select(struct inode *inode, struct file *file, int which, select_table *seltable); |
file | 82 | net/socket.c | static int sock_ioctl(struct inode *inode, struct file *file, |
file | 84 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on); |
file | 165 | net/socket.c | struct file *file; |
file | 171 | net/socket.c | file = get_empty_filp(); |
file | 172 | net/socket.c | if (!file) |
file | 180 | net/socket.c | file->f_count = 0; |
file | 185 | net/socket.c | current->files->fd[fd] = file; |
file | 186 | net/socket.c | file->f_op = &socket_file_ops; |
file | 187 | net/socket.c | file->f_mode = 3; |
file | 188 | net/socket.c | file->f_flags = O_RDWR; |
file | 189 | net/socket.c | file->f_count = 1; |
file | 190 | net/socket.c | file->f_inode = inode; |
file | 193 | net/socket.c | file->f_pos = 0; |
file | 214 | net/socket.c | extern __inline struct socket *sockfd_lookup(int fd, struct file **pfile) |
file | 216 | net/socket.c | struct file *file; |
file | 219 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 222 | net/socket.c | inode = file->f_inode; |
file | 227 | net/socket.c | *pfile = file; |
file | 312 | net/socket.c | static int sock_lseek(struct inode *inode, struct file *file, off_t offset, int whence) |
file | 322 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *ubuf, int size) |
file | 346 | net/socket.c | return(sock->ops->recvmsg(sock, &msg, size,(file->f_flags & O_NONBLOCK), 0,&msg.msg_namelen)); |
file | 354 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, const char *ubuf, int size) |
file | 381 | net/socket.c | return(sock->ops->sendmsg(sock, &msg, size,(file->f_flags & O_NONBLOCK),0)); |
file | 389 | net/socket.c | int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
file | 398 | net/socket.c | static int sock_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 414 | net/socket.c | void sock_close(struct inode *inode, struct file *filp) |
file | 430 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on) |
file | 701 | net/socket.c | struct file *file; |
file | 707 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 709 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
file | 734 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
file | 764 | net/socket.c | struct file *file; |
file | 769 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
file | 771 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
file | 799 | net/socket.c | i = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags); |
file | 865 | net/socket.c | struct file *file; |
file | 870 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 887 | net/socket.c | return(sock->ops->sendmsg(sock, &msg, len, (file->f_flags & O_NONBLOCK), flags)); |
file | 900 | net/socket.c | struct file *file; |
file | 906 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 927 | net/socket.c | return(sock->ops->sendmsg(sock, &msg, len, (file->f_flags & O_NONBLOCK), |
file | 941 | net/socket.c | struct file *file; |
file | 944 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 965 | net/socket.c | return(sock->ops->recvmsg(sock, &msg, size,(file->f_flags & O_NONBLOCK), flags,&msg.msg_namelen)); |
file | 978 | net/socket.c | struct file *file; |
file | 984 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1004 | net/socket.c | size=sock->ops->recvmsg(sock, &msg, size, (file->f_flags & O_NONBLOCK), |
file | 1023 | net/socket.c | struct file *file; |
file | 1025 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1041 | net/socket.c | struct file *file; |
file | 1043 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1061 | net/socket.c | struct file *file; |
file | 1063 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1078 | net/socket.c | struct file *file; |
file | 1085 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1103 | net/socket.c | return sock->ops->sendmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags); |
file | 1113 | net/socket.c | struct file *file; |
file | 1122 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1140 | net/socket.c | len=sock->ops->recvmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags, &addr_len); |
file | 1156 | net/socket.c | int sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |