tag | line | file | source code |
file | 212 | drivers/block/cdu31a.c | static int scd_open(struct inode *inode, struct file *filp); |
file | 2142 | drivers/block/cdu31a.c | struct file *file, |
file | 2517 | drivers/block/cdu31a.c | struct file *filp) |
file | 2637 | drivers/block/cdu31a.c | struct file *filp) |
file | 2546 | drivers/block/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
file | 2780 | drivers/block/floppy.c | static int floppy_##op(struct inode * inode, struct file * filp, \ |
file | 2794 | drivers/block/floppy.c | static void floppy_release(struct inode * inode, struct file * filp) |
file | 2820 | drivers/block/floppy.c | static int floppy_open(struct inode * inode, struct file * filp) |
file | 795 | drivers/block/hd.c | static int hd_ioctl(struct inode * inode, struct file * file, |
file | 923 | drivers/block/hd.c | static int hd_open(struct inode * inode, struct file * filp) |
file | 938 | drivers/block/hd.c | static void hd_release(struct inode * inode, struct file * file) |
file | 239 | drivers/block/mcd.c | mcd_ioctl(struct inode *ip, struct file *fp, unsigned int cmd, |
file | 1026 | drivers/block/mcd.c | mcd_open(struct inode *ip, struct file *fp) |
file | 1065 | drivers/block/mcd.c | mcd_release(struct inode * inode, struct file * file) |
file | 207 | drivers/block/ramdisk.c | struct file filp; |
file | 2401 | drivers/block/sbpcd.c | static int sbpcd_ioctl(struct inode *inode, struct file *file, u_int cmd, |
file | 3246 | drivers/block/sbpcd.c | static int sbpcd_open(struct inode *ip, struct file *fp) |
file | 3311 | drivers/block/sbpcd.c | static void sbpcd_release(struct inode * ip, struct file * file) |
file | 192 | drivers/block/xd.c | static int xd_open (struct inode *inode,struct file *file) |
file | 237 | drivers/block/xd.c | static int xd_ioctl (struct inode *inode,struct file *file,u_int cmd,u_long arg) |
file | 286 | drivers/block/xd.c | static void xd_release (struct inode *inode, struct file *file) |
file | 87 | drivers/char/atixlmouse.c | static void release_mouse(struct inode * inode, struct file * file) |
file | 96 | drivers/char/atixlmouse.c | static int open_mouse(struct inode * inode, struct file * file) |
file | 116 | drivers/char/atixlmouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
file | 121 | drivers/char/atixlmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
file | 152 | drivers/char/atixlmouse.c | static int mouse_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 92 | drivers/char/busmouse.c | static void close_mouse(struct inode * inode, struct file * file) |
file | 105 | drivers/char/busmouse.c | static int open_mouse(struct inode * inode, struct file * file) |
file | 126 | drivers/char/busmouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
file | 135 | drivers/char/busmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
file | 188 | drivers/char/busmouse.c | static int mouse_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 2146 | drivers/char/console.c | int con_open(struct tty_struct *tty, struct file * filp) |
file | 143 | drivers/char/lp.c | static int lp_write_interrupt(struct inode * inode, struct file * file, char * buf, int count) |
file | 211 | drivers/char/lp.c | static int lp_write_polled(struct inode * inode, struct file * file, |
file | 285 | drivers/char/lp.c | static int lp_write(struct inode * inode, struct file * file, char * buf, int count) |
file | 288 | drivers/char/lp.c | return lp_write_interrupt(inode, file, buf, count); |
file | 290 | drivers/char/lp.c | return lp_write_polled(inode, file, buf, count); |
file | 293 | drivers/char/lp.c | static int lp_lseek(struct inode * inode, struct file * file, |
file | 299 | drivers/char/lp.c | static int lp_open(struct inode * inode, struct file * file) |
file | 333 | drivers/char/lp.c | static void lp_release(struct inode * inode, struct file * file) |
file | 351 | drivers/char/lp.c | static int lp_ioctl(struct inode *inode, struct file *file, |
file | 26 | drivers/char/mem.c | static int read_ram(struct inode * inode, struct file * file,char * buf, int count) |
file | 31 | drivers/char/mem.c | static int write_ram(struct inode * inode, struct file * file,char * buf, int count) |
file | 36 | drivers/char/mem.c | static int read_mem(struct inode * inode, struct file * file,char * buf, int count) |
file | 38 | drivers/char/mem.c | unsigned long p = file->f_pos; |
file | 57 | drivers/char/mem.c | file->f_pos += read; |
file | 61 | drivers/char/mem.c | static int write_mem(struct inode * inode, struct file * file,char * buf, int count) |
file | 63 | drivers/char/mem.c | unsigned long p = file->f_pos; |
file | 82 | drivers/char/mem.c | file->f_pos += written; |
file | 86 | drivers/char/mem.c | static int mmap_mem(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 99 | drivers/char/mem.c | static int read_kmem(struct inode *inode, struct file *file, char *buf, int count) |
file | 103 | drivers/char/mem.c | read1 = read_mem(inode, file, buf, count); |
file | 106 | drivers/char/mem.c | read2 = vread(buf + read1, (char *) ((unsigned long) file->f_pos), count - read1); |
file | 109 | drivers/char/mem.c | file->f_pos += read2; |
file | 113 | drivers/char/mem.c | static int read_port(struct inode * inode,struct file * file,char * buf, int count) |
file | 115 | drivers/char/mem.c | unsigned int i = file->f_pos; |
file | 123 | drivers/char/mem.c | file->f_pos = i; |
file | 127 | drivers/char/mem.c | static int write_port(struct inode * inode,struct file * file,char * buf, int count) |
file | 129 | drivers/char/mem.c | unsigned int i = file->f_pos; |
file | 137 | drivers/char/mem.c | file->f_pos = i; |
file | 141 | drivers/char/mem.c | static int read_null(struct inode * node,struct file * file,char * buf,int count) |
file | 146 | drivers/char/mem.c | static int write_null(struct inode * inode,struct file * file,char * buf, int count) |
file | 151 | drivers/char/mem.c | static int read_zero(struct inode * node,struct file * file,char * buf,int count) |
file | 162 | drivers/char/mem.c | static int mmap_zero(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 171 | drivers/char/mem.c | static int read_full(struct inode * node,struct file * file,char * buf,int count) |
file | 176 | drivers/char/mem.c | static int write_full(struct inode * inode,struct file * file,char * buf, int count) |
file | 186 | drivers/char/mem.c | static int null_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 188 | drivers/char/mem.c | return file->f_pos=0; |
file | 198 | drivers/char/mem.c | static int memory_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 202 | drivers/char/mem.c | file->f_pos = offset; |
file | 203 | drivers/char/mem.c | return file->f_pos; |
file | 205 | drivers/char/mem.c | file->f_pos += offset; |
file | 206 | drivers/char/mem.c | return file->f_pos; |
file | 210 | drivers/char/mem.c | if (file->f_pos < 0) |
file | 212 | drivers/char/mem.c | return file->f_pos; |
file | 309 | drivers/char/mem.c | static int memory_open(struct inode * inode, struct file * filp) |
file | 38 | drivers/char/mouse.c | static int mouse_open(struct inode * inode, struct file * file) |
file | 45 | drivers/char/mouse.c | file->f_op = &bus_mouse_fops; |
file | 50 | drivers/char/mouse.c | file->f_op = &psaux_fops; |
file | 55 | drivers/char/mouse.c | file->f_op = &ms_bus_mouse_fops; |
file | 60 | drivers/char/mouse.c | file->f_op = &atixl_busmouse_fops; |
file | 66 | drivers/char/mouse.c | return file->f_op->open(inode,file); |
file | 73 | drivers/char/msbusmouse.c | static void release_mouse(struct inode * inode, struct file * file) |
file | 80 | drivers/char/msbusmouse.c | static int open_mouse(struct inode * inode, struct file * file) |
file | 99 | drivers/char/msbusmouse.c | static int write_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
file | 104 | drivers/char/msbusmouse.c | static int read_mouse(struct inode * inode, struct file * file, char * buffer, int count) |
file | 125 | drivers/char/msbusmouse.c | static int mouse_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 732 | drivers/char/n_tty.c | static int read_chan(struct tty_struct *tty, struct file *file, |
file | 754 | drivers/char/n_tty.c | if (file->f_inode->i_rdev != CONSOLE_DEV && |
file | 814 | drivers/char/n_tty.c | if (tty_hung_up_p(file)) |
file | 818 | drivers/char/n_tty.c | if (file->f_flags & O_NONBLOCK) { |
file | 904 | drivers/char/n_tty.c | static int write_chan(struct tty_struct * tty, struct file * file, |
file | 913 | drivers/char/n_tty.c | if (L_TOSTOP(tty) && file->f_inode->i_rdev != CONSOLE_DEV) { |
file | 926 | drivers/char/n_tty.c | if (tty_hung_up_p(file) || (tty->link && !tty->link->count)) { |
file | 946 | drivers/char/n_tty.c | if (file->f_flags & O_NONBLOCK) { |
file | 958 | drivers/char/n_tty.c | struct file * file, int sel_type, select_table *wait) |
file | 971 | drivers/char/n_tty.c | if (tty_hung_up_p(file)) |
file | 233 | drivers/char/psaux.c | static void release_aux(struct inode * inode, struct file * file) |
file | 245 | drivers/char/psaux.c | static void release_qp(struct inode * inode, struct file * file) |
file | 265 | drivers/char/psaux.c | static int open_aux(struct inode * inode, struct file * file) |
file | 295 | drivers/char/psaux.c | static int open_qp(struct inode * inode, struct file * file) |
file | 335 | drivers/char/psaux.c | static int write_aux(struct inode * inode, struct file * file, char * buffer, int count) |
file | 357 | drivers/char/psaux.c | static int write_qp(struct inode * inode, struct file * file, char * buffer, int count) |
file | 376 | drivers/char/psaux.c | static int read_aux(struct inode * inode, struct file * file, char * buffer, int count) |
file | 383 | drivers/char/psaux.c | if (file->f_flags & O_NONBLOCK) |
file | 411 | drivers/char/psaux.c | static int aux_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 63 | drivers/char/pty.c | static void pty_close(struct tty_struct * tty, struct file * filp) |
file | 182 | drivers/char/pty.c | int pty_open(struct tty_struct *tty, struct file * filp) |
file | 1653 | drivers/char/serial.c | static int rs_ioctl(struct tty_struct *tty, struct file * file, |
file | 1784 | drivers/char/serial.c | static void rs_close(struct tty_struct *tty, struct file * filp) |
file | 1910 | drivers/char/serial.c | static int block_til_ready(struct tty_struct *tty, struct file * filp, |
file | 2037 | drivers/char/serial.c | int rs_open(struct tty_struct *tty, struct file * filp) |
file | 1878 | drivers/char/tpqic02.c | static int qic02_tape_lseek(struct inode * inode, struct file * file, off_t offset, int origin) |
file | 1916 | drivers/char/tpqic02.c | static int qic02_tape_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 2091 | drivers/char/tpqic02.c | static int qic02_tape_write(struct inode * inode, struct file * filp, char * buf, int count) |
file | 2243 | drivers/char/tpqic02.c | static int qic02_tape_open(struct inode * inode, struct file * filp) |
file | 2429 | drivers/char/tpqic02.c | static int qic02_tape_readdir(struct inode * inode, struct file * filp, struct dirent * dp, int count) |
file | 2436 | drivers/char/tpqic02.c | static void qic02_tape_release(struct inode * inode, struct file * filp) |
file | 2557 | drivers/char/tpqic02.c | static int qic02_tape_ioctl(struct inode * inode, struct file * filp, |
file | 92 | drivers/char/tty_io.c | static int tty_read(struct inode *, struct file *, char *, int); |
file | 93 | drivers/char/tty_io.c | static int tty_write(struct inode *, struct file *, char *, int); |
file | 94 | drivers/char/tty_io.c | static int tty_select(struct inode *, struct file *, int, select_table *); |
file | 95 | drivers/char/tty_io.c | static int tty_open(struct inode *, struct file *); |
file | 96 | drivers/char/tty_io.c | static void tty_release(struct inode *, struct file *); |
file | 97 | drivers/char/tty_io.c | static int tty_ioctl(struct inode * inode, struct file * file, |
file | 99 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on); |
file | 256 | drivers/char/tty_io.c | static int hung_up_tty_read(struct inode * inode, struct file * file, char * buf, int count) |
file | 261 | drivers/char/tty_io.c | static int hung_up_tty_write(struct inode * inode, struct file * file, char * buf, int count) |
file | 266 | drivers/char/tty_io.c | static int hung_up_tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 271 | drivers/char/tty_io.c | static int hung_up_tty_ioctl(struct inode * inode, struct file * file, |
file | 277 | drivers/char/tty_io.c | static int tty_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 313 | drivers/char/tty_io.c | struct file * filp; |
file | 391 | drivers/char/tty_io.c | int tty_hung_up_p(struct file * filp) |
file | 637 | drivers/char/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
file | 642 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
file | 666 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
file | 674 | drivers/char/tty_io.c | static int tty_write(struct inode * inode, struct file * file, char * buf, int count) |
file | 684 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
file | 702 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(unsigned char *)buf,(unsigned int)count); |
file | 886 | drivers/char/tty_io.c | static void release_dev(struct file * filp) |
file | 1067 | drivers/char/tty_io.c | static int tty_open(struct inode * inode, struct file * filp) |
file | 1140 | drivers/char/tty_io.c | static void tty_release(struct inode * inode, struct file * filp) |
file | 1145 | drivers/char/tty_io.c | static int tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 1158 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on) |
file | 1236 | drivers/char/tty_io.c | static int tty_ioctl(struct inode * inode, struct file * file, |
file | 1247 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
file | 1310 | drivers/char/tty_io.c | file->f_flags |= O_NONBLOCK; |
file | 1312 | drivers/char/tty_io.c | file->f_flags &= ~O_NONBLOCK; |
file | 1438 | drivers/char/tty_io.c | retval = (tty->driver.ioctl)(tty, file, |
file | 1444 | drivers/char/tty_io.c | retval = (tty->ldisc.ioctl)(tty, file, |
file | 1474 | drivers/char/tty_io.c | struct file *filp; |
file | 218 | drivers/char/tty_ioctl.c | int n_tty_ioctl(struct tty_struct * tty, struct file * file, |
file | 369 | drivers/char/tty_ioctl.c | tty->driver.ioctl(tty, file, cmd, arg); |
file | 125 | drivers/char/vt.c | int vt_ioctl(struct tty_struct *tty, struct file * file, |
file | 137 | drivers/net/ppp.c | static int ppp_read(struct tty_struct *, struct file *, unsigned char *, |
file | 139 | drivers/net/ppp.c | static int ppp_write(struct tty_struct *, struct file *, unsigned char *, |
file | 141 | drivers/net/ppp.c | static int ppp_ioctl(struct tty_struct *, struct file *, unsigned int, |
file | 144 | drivers/net/ppp.c | struct file * filp, int sel_type, select_table * wait); |
file | 1214 | drivers/net/ppp.c | ppp_read(struct tty_struct *tty, struct file *file, unsigned char *buf, unsigned int nr) |
file | 1315 | drivers/net/ppp.c | ppp_write(struct tty_struct *tty, struct file *file, unsigned char *buf, unsigned int nr) |
file | 1390 | drivers/net/ppp.c | ppp_ioctl(struct tty_struct *tty, struct file *file, unsigned int i, |
file | 1590 | drivers/net/ppp.c | error = n_tty_ioctl(tty, file, i, l); |
file | 1614 | drivers/net/ppp.c | struct file * filp, int sel_type, select_table * wait) |
file | 942 | drivers/net/slip.c | slip_ioctl(struct tty_struct *tty, void *file, int cmd, void *arg) |
file | 989 | drivers/net/slip.c | return n_tty_ioctl(tty, (struct file *) file, cmd, (unsigned long) arg); |
file | 1027 | drivers/net/slip.c | sl_ldisc.ioctl = (int (*)(struct tty_struct *, struct file *, |
file | 2053 | drivers/scsi/53c7,8xx.c | static debugger_user_write (struct inode *inode,struct file *filp, |
file | 2105 | drivers/scsi/53c7,8xx.c | static debugger_user_read (struct inode *inode,struct file *filp, |
file | 53 | drivers/scsi/sd.c | extern int sd_ioctl(struct inode *, struct file *, unsigned int, unsigned long); |
file | 72 | drivers/scsi/sd.c | static int sd_open(struct inode * inode, struct file * filp) |
file | 95 | drivers/scsi/sd.c | static void sd_release(struct inode * inode, struct file * file) |
file | 17 | drivers/scsi/sd_ioctl.c | int sd_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg) |
file | 62 | drivers/scsi/sg.c | static int sg_ioctl(struct inode * inode,struct file * file, |
file | 80 | drivers/scsi/sg.c | static int sg_open(struct inode * inode, struct file * filp) |
file | 120 | drivers/scsi/sg.c | static void sg_close(struct inode * inode, struct file * filp) |
file | 161 | drivers/scsi/sg.c | static int sg_read(struct inode *inode,struct file *filp,char *buf,int count) |
file | 218 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,char *buf,int count) |
file | 50 | drivers/scsi/sr.c | static int sr_open(struct inode *, struct file *); |
file | 53 | drivers/scsi/sr.c | extern int sr_ioctl(struct inode *, struct file *, unsigned int, unsigned long); |
file | 58 | drivers/scsi/sr.c | static void sr_release(struct inode * inode, struct file * file) |
file | 274 | drivers/scsi/sr.c | static int sr_open(struct inode * inode, struct file * filp) |
file | 91 | drivers/scsi/sr_ioctl.c | int sr_ioctl(struct inode * inode, struct file * file, unsigned int cmd, unsigned long arg) |
file | 97 | drivers/scsi/st.c | static int st_int_ioctl(struct inode * inode,struct file * file, |
file | 340 | drivers/scsi/st.c | flush_buffer(struct inode * inode, struct file * filp, int seek_next) |
file | 382 | drivers/scsi/st.c | scsi_tape_open(struct inode * inode, struct file * filp) |
file | 586 | drivers/scsi/st.c | scsi_tape_close(struct inode * inode, struct file * filp) |
file | 663 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, char * buf, int count) |
file | 893 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 1173 | drivers/scsi/st.c | st_int_ioctl(struct inode * inode,struct file * file, |
file | 1361 | drivers/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTFSF, 0x3fff); |
file | 1492 | drivers/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTFSF, 1); |
file | 1494 | drivers/scsi/st.c | ioctl_result = st_int_ioctl(inode, file, MTBSF, 1); |
file | 1561 | drivers/scsi/st.c | st_ioctl(struct inode * inode,struct file * file, |
file | 1593 | drivers/scsi/st.c | i = flush_buffer(inode, file, mtc.mt_op == MTNOP || mtc.mt_op == MTSEEK || |
file | 1603 | drivers/scsi/st.c | return st_int_ioctl(inode, file, mtc.mt_op, mtc.mt_count); |
file | 1660 | drivers/scsi/st.c | i = flush_buffer(inode, file, 0); |
file | 84 | drivers/sound/audio.c | audio_open (int dev, struct fileinfo *file) |
file | 89 | drivers/sound/audio.c | int mode = file->mode & O_ACCMODE; |
file | 105 | drivers/sound/audio.c | audio_release (dev, file); |
file | 123 | drivers/sound/audio.c | audio_release (int dev, struct fileinfo *file) |
file | 128 | drivers/sound/audio.c | mode = file->mode & O_ACCMODE; |
file | 166 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 263 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 321 | drivers/sound/audio.c | audio_ioctl (int dev, struct fileinfo *file, |
file | 382 | drivers/sound/audio.c | audio_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 388 | drivers/sound/audio.c | audio_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 394 | drivers/sound/audio.c | audio_open (int dev, struct fileinfo *file) |
file | 400 | drivers/sound/audio.c | audio_release (int dev, struct fileinfo *file) |
file | 404 | drivers/sound/audio.c | audio_ioctl (int dev, struct fileinfo *file, |
file | 411 | drivers/sound/audio.c | audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig) |
file | 166 | drivers/sound/midibuf.c | MIDIbuf_open (int dev, struct fileinfo *file) |
file | 172 | drivers/sound/midibuf.c | mode = file->mode & O_ACCMODE; |
file | 237 | drivers/sound/midibuf.c | MIDIbuf_release (int dev, struct fileinfo *file) |
file | 243 | drivers/sound/midibuf.c | mode = file->mode & O_ACCMODE; |
file | 279 | drivers/sound/midibuf.c | MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 330 | drivers/sound/midibuf.c | MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 375 | drivers/sound/midibuf.c | MIDIbuf_ioctl (int dev, struct fileinfo *file, |
file | 402 | drivers/sound/midibuf.c | MIDIbuf_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
file | 86 | drivers/sound/patmgr.c | pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 124 | drivers/sound/patmgr.c | pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 758 | drivers/sound/pss.c | pss_open (int dev, struct fileinfo *file) |
file | 773 | drivers/sound/pss.c | mode = file->mode & O_ACCMODE; |
file | 785 | drivers/sound/pss.c | pss_release (int dev, struct fileinfo *file) |
file | 794 | drivers/sound/pss.c | mode = file->mode & O_ACCMODE; |
file | 810 | drivers/sound/pss.c | pss_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 826 | drivers/sound/pss.c | pss_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 843 | drivers/sound/pss.c | pss_ioctl (int dev, struct fileinfo *file, |
file | 885 | drivers/sound/pss.c | pss_select (int dev, struct fileinfo * file, int sel_type, select_table * wait) |
file | 98 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 111 | drivers/sound/sequencer.c | return pmgr_read (dev - 1, file, buf, count); |
file | 231 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 236 | drivers/sound/sequencer.c | int mode = file->mode & O_ACCMODE; |
file | 248 | drivers/sound/sequencer.c | return pmgr_write (dev - 1, file, buf, count); |
file | 319 | drivers/sound/sequencer.c | mode = file->mode & O_ACCMODE; |
file | 925 | drivers/sound/sequencer.c | sequencer_open (int dev, struct fileinfo *file) |
file | 933 | drivers/sound/sequencer.c | mode = file->mode & O_ACCMODE; |
file | 1115 | drivers/sound/sequencer.c | sequencer_release (int dev, struct fileinfo *file) |
file | 1118 | drivers/sound/sequencer.c | int mode = file->mode & O_ACCMODE; |
file | 1325 | drivers/sound/sequencer.c | sequencer_ioctl (int dev, struct fileinfo *file, |
file | 1329 | drivers/sound/sequencer.c | int mode = file->mode & O_ACCMODE; |
file | 1411 | drivers/sound/sequencer.c | mode = file->mode & O_ACCMODE; |
file | 1663 | drivers/sound/sequencer.c | sequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
file | 1815 | drivers/sound/sequencer.c | sequencer_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 1821 | drivers/sound/sequencer.c | sequencer_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 1827 | drivers/sound/sequencer.c | sequencer_open (int dev, struct fileinfo *file) |
file | 1833 | drivers/sound/sequencer.c | sequencer_release (int dev, struct fileinfo *file) |
file | 1837 | drivers/sound/sequencer.c | sequencer_ioctl (int dev, struct fileinfo *file, |
file | 1844 | drivers/sound/sequencer.c | sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig) |
file | 1856 | drivers/sound/sequencer.c | sequencer_select (int dev, struct fileinfo *file, int sel_type, select_table * wait) |
file | 24 | drivers/sound/sound_calls.h | int audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 25 | drivers/sound/sound_calls.h | int audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 26 | drivers/sound/sound_calls.h | int audio_open (int dev, struct fileinfo *file); |
file | 27 | drivers/sound/sound_calls.h | void audio_release (int dev, struct fileinfo *file); |
file | 28 | drivers/sound/sound_calls.h | int audio_ioctl (int dev, struct fileinfo *file, |
file | 30 | drivers/sound/sound_calls.h | int audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
file | 37 | drivers/sound/sound_calls.h | int sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 38 | drivers/sound/sound_calls.h | int sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 39 | drivers/sound/sound_calls.h | int sequencer_open (int dev, struct fileinfo *file); |
file | 40 | drivers/sound/sound_calls.h | void sequencer_release (int dev, struct fileinfo *file); |
file | 41 | drivers/sound/sound_calls.h | int sequencer_ioctl (int dev, struct fileinfo *file, |
file | 43 | drivers/sound/sound_calls.h | int sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
file | 52 | drivers/sound/sound_calls.h | int sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
file | 59 | drivers/sound/sound_calls.h | int MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 60 | drivers/sound/sound_calls.h | int MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 61 | drivers/sound/sound_calls.h | int MIDIbuf_open (int dev, struct fileinfo *file); |
file | 62 | drivers/sound/sound_calls.h | void MIDIbuf_release (int dev, struct fileinfo *file); |
file | 63 | drivers/sound/sound_calls.h | int MIDIbuf_ioctl (int dev, struct fileinfo *file, |
file | 65 | drivers/sound/sound_calls.h | int MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
file | 70 | drivers/sound/sound_calls.h | int MIDIbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait); |
file | 79 | drivers/sound/sound_calls.h | int CMIDI_open (int dev, struct fileinfo *file); |
file | 80 | drivers/sound/sound_calls.h | int CMIDI_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 81 | drivers/sound/sound_calls.h | int CMIDI_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 82 | drivers/sound/sound_calls.h | int CMIDI_close (int dev, struct fileinfo *file); |
file | 109 | drivers/sound/sound_calls.h | int sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 110 | drivers/sound/sound_calls.h | int sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 111 | drivers/sound/sound_calls.h | int sound_open_sw (int dev, struct fileinfo *file); |
file | 112 | drivers/sound/sound_calls.h | void sound_release_sw (int dev, struct fileinfo *file); |
file | 113 | drivers/sound/sound_calls.h | int sound_ioctl_sw (int dev, struct fileinfo *file, |
file | 212 | drivers/sound/sound_calls.h | int pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
file | 213 | drivers/sound/sound_calls.h | int pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count); |
file | 236 | drivers/sound/sound_calls.h | int pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 237 | drivers/sound/sound_calls.h | int pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count); |
file | 238 | drivers/sound/sound_calls.h | int pss_open (int dev, struct fileinfo *file); |
file | 239 | drivers/sound/sound_calls.h | void pss_release (int dev, struct fileinfo *file); |
file | 240 | drivers/sound/sound_calls.h | int pss_ioctl (int dev, struct fileinfo *file, |
file | 242 | drivers/sound/sound_calls.h | int pss_lseek (int dev, struct fileinfo *file, off_t offset, int orig); |
file | 278 | drivers/sound/sound_switch.c | sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 291 | drivers/sound/sound_switch.c | return audio_read (dev, file, buf, count); |
file | 296 | drivers/sound/sound_switch.c | return sequencer_read (dev, file, buf, count); |
file | 301 | drivers/sound/sound_switch.c | return MIDIbuf_read (dev, file, buf, count); |
file | 306 | drivers/sound/sound_switch.c | return pss_read (dev, file, buf, count); |
file | 317 | drivers/sound/sound_switch.c | sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf * buf, int count) |
file | 327 | drivers/sound/sound_switch.c | return sequencer_write (dev, file, buf, count); |
file | 333 | drivers/sound/sound_switch.c | return audio_write (dev, file, buf, count); |
file | 338 | drivers/sound/sound_switch.c | return MIDIbuf_write (dev, file, buf, count); |
file | 343 | drivers/sound/sound_switch.c | return pss_write (dev, file, buf, count); |
file | 354 | drivers/sound/sound_switch.c | sound_open_sw (int dev, struct fileinfo *file) |
file | 384 | drivers/sound/sound_switch.c | if ((retval = sequencer_open (dev, file)) < 0) |
file | 390 | drivers/sound/sound_switch.c | if ((retval = MIDIbuf_open (dev, file)) < 0) |
file | 397 | drivers/sound/sound_switch.c | if ((retval = pss_open (dev, file)) < 0) |
file | 405 | drivers/sound/sound_switch.c | if ((retval = audio_open (dev, file)) < 0) |
file | 421 | drivers/sound/sound_switch.c | sound_release_sw (int dev, struct fileinfo *file) |
file | 440 | drivers/sound/sound_switch.c | sequencer_release (dev, file); |
file | 445 | drivers/sound/sound_switch.c | MIDIbuf_release (dev, file); |
file | 451 | drivers/sound/sound_switch.c | pss_release (dev, file); |
file | 458 | drivers/sound/sound_switch.c | audio_release (dev, file); |
file | 470 | drivers/sound/sound_switch.c | sound_ioctl_sw (int dev, struct fileinfo *file, |
file | 499 | drivers/sound/sound_switch.c | return sequencer_ioctl (dev, file, cmd, arg); |
file | 505 | drivers/sound/sound_switch.c | return audio_ioctl (dev, file, cmd, arg); |
file | 510 | drivers/sound/sound_switch.c | return MIDIbuf_ioctl (dev, file, cmd, arg); |
file | 516 | drivers/sound/sound_switch.c | return pss_ioctl (dev, file, cmd, arg); |
file | 60 | drivers/sound/soundcard.c | sound_read (struct inode *inode, struct file *file, char *buf, int count) |
file | 71 | drivers/sound/soundcard.c | sound_write (struct inode *inode, struct file *file, char *buf, int count) |
file | 82 | drivers/sound/soundcard.c | sound_lseek (struct inode *inode, struct file *file, off_t offset, int orig) |
file | 88 | drivers/sound/soundcard.c | sound_open (struct inode *inode, struct file *file) |
file | 103 | drivers/sound/soundcard.c | if ((file->f_flags & O_ACCMODE) == O_RDWR) |
file | 105 | drivers/sound/soundcard.c | if ((file->f_flags & O_ACCMODE) == O_RDONLY) |
file | 107 | drivers/sound/soundcard.c | if ((file->f_flags & O_ACCMODE) == O_WRONLY) |
file | 114 | drivers/sound/soundcard.c | sound_release (struct inode *inode, struct file *file) |
file | 125 | drivers/sound/soundcard.c | sound_ioctl (struct inode *inode, struct file *file, |
file | 137 | drivers/sound/soundcard.c | sound_select (struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 160 | fs/binfmt_elf.c | struct file * file; |
file | 202 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
file | 207 | fs/binfmt_elf.c | error = do_mmap(file, |
file | 298 | fs/binfmt_elf.c | struct file * file; |
file | 380 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
file | 549 | fs/binfmt_elf.c | error = do_mmap(file, |
file | 656 | fs/binfmt_elf.c | struct file * file; |
file | 672 | fs/binfmt_elf.c | file = current->files->fd[fd]; |
file | 673 | fs/binfmt_elf.c | inode = file->f_inode; |
file | 677 | fs/binfmt_elf.c | if (file->f_op->read(inode, file, (char *) &elf_ex, sizeof(elf_ex)) != sizeof(elf_ex)) { |
file | 737 | fs/binfmt_elf.c | error = do_mmap(file, |
file | 20 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, char * buf, int count) |
file | 157 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 310 | fs/block_dev.c | int block_fsync(struct inode *inode, struct file *filp) |
file | 236 | fs/buffer.c | int file_fsync (struct inode *inode, struct file *filp) |
file | 243 | fs/buffer.c | struct file * file; |
file | 246 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
file | 248 | fs/buffer.c | if (!file->f_op || !file->f_op->fsync) |
file | 250 | fs/buffer.c | if (file->f_op->fsync(inode,file)) |
file | 179 | fs/devices.c | int blkdev_open(struct inode * inode, struct file * filp) |
file | 230 | fs/devices.c | int chrdev_open(struct inode * inode, struct file * filp) |
file | 107 | fs/exec.c | struct file *f, **fpp; |
file | 147 | fs/exec.c | while (file.f_op->write(inode,&file,(char *)(addr),(nr)) != (nr)) goto close_coredump |
file | 150 | fs/exec.c | if (file.f_op->lseek) { \ |
file | 151 | fs/exec.c | if (file.f_op->lseek(inode,&file,(offset),0) != (offset)) \ |
file | 153 | fs/exec.c | } else file.f_pos = (offset) |
file | 167 | fs/exec.c | struct file file; |
file | 200 | fs/exec.c | file.f_mode = 3; |
file | 201 | fs/exec.c | file.f_flags = 0; |
file | 202 | fs/exec.c | file.f_count = 1; |
file | 203 | fs/exec.c | file.f_inode = inode; |
file | 204 | fs/exec.c | file.f_pos = 0; |
file | 205 | fs/exec.c | file.f_reada = 0; |
file | 206 | fs/exec.c | file.f_op = inode->i_op->default_file_ops; |
file | 207 | fs/exec.c | if (file.f_op->open) |
file | 208 | fs/exec.c | if (file.f_op->open(inode,&file)) |
file | 210 | fs/exec.c | if (!file.f_op->write) |
file | 274 | fs/exec.c | if (file.f_op->release) |
file | 275 | fs/exec.c | file.f_op->release(inode,&file); |
file | 293 | fs/exec.c | struct file * file; |
file | 299 | fs/exec.c | file = current->files->fd[fd]; |
file | 301 | fs/exec.c | if (file && file->f_inode && file->f_op && file->f_op->read) { |
file | 476 | fs/exec.c | struct file file; |
file | 481 | fs/exec.c | file.f_mode = 1; |
file | 482 | fs/exec.c | file.f_flags = 0; |
file | 483 | fs/exec.c | file.f_count = 1; |
file | 484 | fs/exec.c | file.f_inode = inode; |
file | 485 | fs/exec.c | file.f_pos = 0; |
file | 486 | fs/exec.c | file.f_reada = 0; |
file | 487 | fs/exec.c | file.f_op = inode->i_op->default_file_ops; |
file | 488 | fs/exec.c | if (file.f_op->open) |
file | 489 | fs/exec.c | if (file.f_op->open(inode,&file)) |
file | 491 | fs/exec.c | if (!file.f_op || !file.f_op->read) |
file | 493 | fs/exec.c | if (file.f_op->lseek) { |
file | 494 | fs/exec.c | if (file.f_op->lseek(inode,&file,offset,0) != offset) |
file | 497 | fs/exec.c | file.f_pos = offset; |
file | 503 | fs/exec.c | result = file.f_op->read(inode, &file, addr, count); |
file | 505 | fs/exec.c | if (file.f_op->release) |
file | 506 | fs/exec.c | file.f_op->release(inode,&file); |
file | 790 | fs/exec.c | struct file * file; |
file | 841 | fs/exec.c | file = current->files->fd[fd]; |
file | 842 | fs/exec.c | if (!file->f_op || !file->f_op->mmap) { |
file | 852 | fs/exec.c | error = do_mmap(file, N_TXTADDR(ex), ex.a_text, |
file | 863 | fs/exec.c | error = do_mmap(file, N_TXTADDR(ex) + ex.a_text, ex.a_data, |
file | 903 | fs/exec.c | struct file * file; |
file | 911 | fs/exec.c | file = current->files->fd[fd]; |
file | 912 | fs/exec.c | inode = file->f_inode; |
file | 915 | fs/exec.c | if (file->f_op->read(inode, file, (char *) &ex, sizeof(ex)) != sizeof(ex)) { |
file | 940 | fs/exec.c | error = do_mmap(file, start_addr, ex.a_text + ex.a_data, |
file | 26 | fs/ext/dir.c | static int ext_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 31 | fs/ext/dir.c | static int ext_readdir(struct inode *, struct file *, struct dirent *, int); |
file | 67 | fs/ext/dir.c | static int ext_readdir(struct inode * inode, struct file * filp, |
file | 34 | fs/ext/file.c | static int ext_file_read(struct inode *, struct file *, char *, int); |
file | 35 | fs/ext/file.c | static int ext_file_write(struct inode *, struct file *, char *, int); |
file | 72 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 197 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
file | 169 | fs/ext/fsync.c | int ext_sync_file(struct inode * inode, struct file *file) |
file | 249 | fs/ext/truncate.c | void ext_release(struct inode * inode, struct file * filp) |
file | 28 | fs/ext2/dir.c | static int ext2_dir_read (struct inode * inode, struct file * filp, |
file | 34 | fs/ext2/dir.c | static int ext2_readdir (struct inode *, struct file *, struct dirent *, int); |
file | 100 | fs/ext2/dir.c | static int ext2_readdir (struct inode * inode, struct file * filp, |
file | 36 | fs/ext2/file.c | static int ext2_file_read (struct inode *, struct file *, char *, int); |
file | 37 | fs/ext2/file.c | static int ext2_file_write (struct inode *, struct file *, char *, int); |
file | 38 | fs/ext2/file.c | static void ext2_release_file (struct inode *, struct file *); |
file | 79 | fs/ext2/file.c | static int ext2_file_read (struct inode * inode, struct file * filp, |
file | 230 | fs/ext2/file.c | static int ext2_file_write (struct inode * inode, struct file * filp, |
file | 350 | fs/ext2/file.c | static void ext2_release_file (struct inode * inode, struct file * filp) |
file | 169 | fs/ext2/fsync.c | int ext2_sync_file (struct inode * inode, struct file * file) |
file | 17 | 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 | 12 | fs/fifo.c | static int fifo_open(struct inode * inode,struct file * filp) |
file | 11 | fs/file_table.c | struct file * first_file; |
file | 14 | fs/file_table.c | static void insert_file_free(struct file *file) |
file | 16 | fs/file_table.c | file->f_next = first_file; |
file | 17 | fs/file_table.c | file->f_prev = first_file->f_prev; |
file | 18 | fs/file_table.c | file->f_next->f_prev = file; |
file | 19 | fs/file_table.c | file->f_prev->f_next = file; |
file | 20 | fs/file_table.c | first_file = file; |
file | 23 | fs/file_table.c | static void remove_file_free(struct file *file) |
file | 25 | fs/file_table.c | if (first_file == file) |
file | 27 | fs/file_table.c | if (file->f_next) |
file | 28 | fs/file_table.c | file->f_next->f_prev = file->f_prev; |
file | 29 | fs/file_table.c | if (file->f_prev) |
file | 30 | fs/file_table.c | file->f_prev->f_next = file->f_next; |
file | 31 | fs/file_table.c | file->f_next = file->f_prev = NULL; |
file | 34 | fs/file_table.c | static void put_last_free(struct file *file) |
file | 36 | fs/file_table.c | remove_file_free(file); |
file | 37 | fs/file_table.c | file->f_prev = first_file->f_prev; |
file | 38 | fs/file_table.c | file->f_prev->f_next = file; |
file | 39 | fs/file_table.c | file->f_next = first_file; |
file | 40 | fs/file_table.c | file->f_next->f_prev = file; |
file | 45 | fs/file_table.c | struct file * file; |
file | 48 | fs/file_table.c | file = (struct file *) get_free_page(GFP_KERNEL); |
file | 50 | fs/file_table.c | if (!file) |
file | 53 | fs/file_table.c | nr_files+=i= PAGE_SIZE/sizeof(struct file); |
file | 56 | fs/file_table.c | file->f_next = file->f_prev = first_file = file++, i--; |
file | 59 | fs/file_table.c | insert_file_free(file++); |
file | 68 | fs/file_table.c | struct file * get_empty_filp(void) |
file | 71 | fs/file_table.c | struct file * f; |
file | 147 | fs/hpfs/hpfs_fs.c | static int hpfs_file_read(struct inode *, struct file *, char *, int); |
file | 186 | fs/hpfs/hpfs_fs.c | static int hpfs_dir_read(struct inode *inode, struct file *filp, |
file | 188 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, |
file | 866 | fs/hpfs/hpfs_fs.c | static int hpfs_file_read(struct inode *inode, struct file *filp, |
file | 1332 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, |
file | 1564 | fs/hpfs/hpfs_fs.c | static int hpfs_dir_read(struct inode *inode, struct file *filp, |
file | 198 | fs/inode.c | struct file * file; |
file | 202 | fs/inode.c | for (file = first_file, i=0; i<nr_files; i++, file=file->f_next) { |
file | 203 | fs/inode.c | if (!file->f_count || !file->f_inode || |
file | 204 | fs/inode.c | file->f_inode->i_dev != dev) |
file | 206 | fs/inode.c | if (S_ISREG(file->f_inode->i_mode) && (file->f_mode & 2)) |
file | 16 | fs/ioctl.c | static int file_ioctl(struct file *filp,unsigned int cmd,unsigned long arg) |
file | 59 | fs/ioctl.c | struct file * filp; |
file | 28 | fs/isofs/dir.c | static int isofs_readdir(struct inode *, struct file *, struct dirent *, int); |
file | 63 | fs/isofs/dir.c | static int isofs_readdir(struct inode * inode, struct file * filp, |
file | 32 | fs/isofs/file.c | static int isofs_file_read(struct inode *, struct file *, char *, int); |
file | 119 | fs/isofs/file.c | static int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 27 | fs/locks.c | static int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l, |
file | 31 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd); |
file | 63 | fs/locks.c | struct file *filp; |
file | 102 | fs/locks.c | struct file *filp; |
file | 210 | fs/locks.c | void fcntl_remove_locks(struct task_struct *task, struct file *filp, |
file | 233 | fs/locks.c | static int copy_flock(struct file *filp, struct file_lock *fl, struct flock *l, |
file | 307 | fs/locks.c | static int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd) |
file | 19 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 24 | fs/minix/dir.c | static int minix_readdir(struct inode *, struct file *, struct dirent *, int); |
file | 60 | 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 *, 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, char * buf, int count) |
file | 143 | 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 | 64 | fs/msdos/file.c | struct file *filp, |
file | 205 | fs/msdos/file.c | struct file *filp, |
file | 47 | fs/msdos/mmap.c | struct file filp; |
file | 84 | fs/msdos/mmap.c | int msdos_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 24 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *, struct file *filp, char *buf, |
file | 26 | fs/nfs/dir.c | static int nfs_readdir(struct inode *, struct file *, struct dirent *, int); |
file | 75 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
file | 89 | fs/nfs/dir.c | static int nfs_readdir(struct inode *inode, struct file *filp, |
file | 275 | fs/nfs/dir.c | static void nfs_lookup_cache_refresh(struct inode *file, |
file | 279 | fs/nfs/dir.c | int dev = file->i_dev; |
file | 280 | 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 *, 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, 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 | 21 | fs/nfs/inode.c | extern int close_fp(struct file *filp, unsigned int fd); |
file | 47 | fs/nfs/inode.c | close_fp(sb->u.nfs_sb.s_server.file, 0); |
file | 67 | fs/nfs/inode.c | struct file *filp; |
file | 98 | fs/nfs/inode.c | server->file = filp; |
file | 88 | fs/nfs/mmap.c | int nfs_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 54 | fs/nfs/sock.c | struct file *file; |
file | 63 | fs/nfs/sock.c | int (*select) (struct inode *, struct file *, int, select_table *); |
file | 78 | fs/nfs/sock.c | file = server->file; |
file | 79 | fs/nfs/sock.c | inode = file->f_inode; |
file | 80 | fs/nfs/sock.c | select = file->f_op->select; |
file | 114 | fs/nfs/sock.c | if (!select(inode, file, SEL_IN, &wait_table) |
file | 115 | fs/nfs/sock.c | && !select(inode, file, SEL_IN, NULL)) { |
file | 22 | fs/open.c | extern void fcntl_remove_locks(struct task_struct *, struct file *, unsigned int fd); |
file | 52 | fs/open.c | struct file * file; |
file | 58 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 60 | fs/open.c | if (!(inode = file->f_inode)) |
file | 109 | fs/open.c | struct file * file; |
file | 112 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 114 | fs/open.c | if (!(inode = file->f_inode)) |
file | 116 | fs/open.c | if (S_ISDIR(inode->i_mode) || !(file->f_mode & 2)) |
file | 223 | fs/open.c | struct file * file; |
file | 225 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 227 | fs/open.c | if (!(inode = file->f_inode)) |
file | 263 | fs/open.c | struct file * file; |
file | 266 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 268 | fs/open.c | if (!(inode = file->f_inode)) |
file | 308 | fs/open.c | struct file * file; |
file | 311 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 313 | fs/open.c | if (!(inode = file->f_inode)) |
file | 403 | fs/open.c | struct file * f; |
file | 469 | fs/open.c | int close_fp(struct file *filp, unsigned int fd) |
file | 495 | fs/open.c | struct file * filp; |
file | 24 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 71 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, char * buf, int count) |
file | 118 | fs/pipe.c | static int pipe_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 123 | fs/pipe.c | static int pipe_readdir(struct inode * inode, struct file * file, struct dirent * de, int count) |
file | 128 | fs/pipe.c | static int bad_pipe_rw(struct inode * inode, struct file * filp, char * buf, int count) |
file | 133 | fs/pipe.c | static int pipe_ioctl(struct inode *pino, struct file * filp, |
file | 149 | fs/pipe.c | static int pipe_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 175 | fs/pipe.c | static int fifo_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 202 | fs/pipe.c | static int connect_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 218 | fs/pipe.c | static int connect_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
file | 246 | fs/pipe.c | static void pipe_read_release(struct inode * inode, struct file * filp) |
file | 252 | fs/pipe.c | static void pipe_write_release(struct inode * inode, struct file * filp) |
file | 258 | fs/pipe.c | static void pipe_rdwr_release(struct inode * inode, struct file * filp) |
file | 381 | fs/pipe.c | struct file * f[2]; |
file | 40 | fs/proc/array.c | static int read_core(struct inode * inode, struct file * file,char * buf, int count) |
file | 42 | fs/proc/array.c | unsigned long p = file->f_pos; |
file | 81 | fs/proc/array.c | file->f_pos += read; |
file | 537 | fs/proc/array.c | static int array_read(struct inode * inode, struct file * file,char * buf, int count) |
file | 556 | fs/proc/array.c | if (file->f_pos >= length) { |
file | 560 | fs/proc/array.c | if (count + file->f_pos > length) |
file | 561 | fs/proc/array.c | count = length - file->f_pos; |
file | 562 | fs/proc/array.c | end = count + file->f_pos; |
file | 563 | fs/proc/array.c | memcpy_tofs(buf, (char *) page + file->f_pos, count); |
file | 565 | fs/proc/array.c | file->f_pos = end; |
file | 16 | fs/proc/base.c | static int proc_readbase(struct inode *, struct file *, struct dirent *, int); |
file | 123 | fs/proc/base.c | static int proc_readbase(struct inode * inode, struct file * filp, |
file | 16 | fs/proc/fd.c | static int proc_readfd(struct inode *, struct file *, struct dirent *, int); |
file | 118 | 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 | 20 | fs/proc/link.c | static int proc_fd_dupf(struct inode * inode, struct file * f); |
file | 65 | fs/proc/link.c | static int proc_fd_dupf(struct inode * inode, struct file * f) |
file | 70 | fs/proc/link.c | struct file *new_f; |
file | 25 | fs/proc/mem.c | static int mem_read(struct inode * inode, struct file * file,char * buf, int count) |
file | 44 | fs/proc/mem.c | addr = file->f_pos; |
file | 67 | fs/proc/mem.c | file->f_pos = addr; |
file | 73 | fs/proc/mem.c | static int mem_write(struct inode * inode, struct file * file,char * buf, int count) |
file | 82 | fs/proc/mem.c | addr = file->f_pos; |
file | 119 | fs/proc/mem.c | file->f_pos = addr; |
file | 129 | fs/proc/mem.c | static int mem_lseek(struct inode * inode, struct file * file, off_t offset, int orig) |
file | 133 | fs/proc/mem.c | file->f_pos = offset; |
file | 134 | fs/proc/mem.c | return file->f_pos; |
file | 136 | fs/proc/mem.c | file->f_pos += offset; |
file | 137 | fs/proc/mem.c | return file->f_pos; |
file | 144 | fs/proc/mem.c | mem_mmap(struct inode * inode, struct file * file, |
file | 35 | fs/proc/net.c | static int proc_readnet(struct inode * inode, struct file * file, |
file | 37 | fs/proc/net.c | static int proc_readnetdir(struct inode *, struct file *, |
file | 161 | fs/proc/net.c | static int proc_readnetdir(struct inode * inode, struct file * filp, |
file | 190 | fs/proc/net.c | static int proc_readnet(struct inode * inode, struct file * file, |
file | 216 | fs/proc/net.c | length = unix_get_info(page,&start,file->f_pos,thistime); |
file | 220 | fs/proc/net.c | length = arp_get_info(page,&start,file->f_pos,thistime); |
file | 223 | fs/proc/net.c | length = rt_get_info(page,&start,file->f_pos,thistime); |
file | 226 | fs/proc/net.c | length = dev_get_info(page,&start,file->f_pos,thistime); |
file | 229 | fs/proc/net.c | length = raw_get_info(page,&start,file->f_pos,thistime); |
file | 232 | fs/proc/net.c | length = tcp_get_info(page,&start,file->f_pos,thistime); |
file | 235 | fs/proc/net.c | length = udp_get_info(page,&start,file->f_pos,thistime); |
file | 238 | fs/proc/net.c | length = snmp_get_info(page, &start, file->f_pos,thistime); |
file | 242 | fs/proc/net.c | length = rarp_get_info(page,&start,file->f_pos,thistime); |
file | 248 | fs/proc/net.c | length = ipx_rt_get_info(page,&start,file->f_pos,thistime); |
file | 251 | fs/proc/net.c | length = ipx_get_info(page,&start,file->f_pos,thistime); |
file | 256 | fs/proc/net.c | length = ax25_rt_get_info(page,&start,file->f_pos,thistime); |
file | 259 | fs/proc/net.c | length = ax25_get_info(page,&start,file->f_pos,thistime); |
file | 263 | fs/proc/net.c | length = nr_nodes_get_info(page,&start,file->f_pos,thistime); |
file | 266 | fs/proc/net.c | length = nr_neigh_get_info(page,&start,file->f_pos,thistime); |
file | 269 | fs/proc/net.c | length = nr_get_info(page,&start,file->f_pos,thistime); |
file | 291 | fs/proc/net.c | file->f_pos+=length; /* Move down the file */ |
file | 17 | fs/proc/root.c | static int proc_readroot(struct inode *, struct file *, struct dirent *, int); |
file | 136 | fs/proc/root.c | static int proc_readroot(struct inode * inode, struct file * filp, |
file | 28 | fs/read_write.c | struct file * file; |
file | 31 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || |
file | 32 | fs/read_write.c | !(inode = file->f_inode)) |
file | 35 | fs/read_write.c | if (file->f_op && file->f_op->readdir) { |
file | 41 | fs/read_write.c | error = file->f_op->readdir(inode,file,dirent,count); |
file | 48 | fs/read_write.c | struct file * file; |
file | 51 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
file | 55 | fs/read_write.c | if (file->f_op && file->f_op->lseek) |
file | 56 | fs/read_write.c | return file->f_op->lseek(file->f_inode,file,offset,origin); |
file | 64 | fs/read_write.c | tmp = file->f_pos + offset; |
file | 67 | fs/read_write.c | if (!file->f_inode) |
file | 69 | fs/read_write.c | tmp = file->f_inode->i_size + offset; |
file | 74 | fs/read_write.c | if (tmp != file->f_pos) { |
file | 75 | fs/read_write.c | file->f_pos = tmp; |
file | 76 | fs/read_write.c | file->f_reada = 0; |
file | 77 | fs/read_write.c | file->f_version = ++event; |
file | 79 | fs/read_write.c | return file->f_pos; |
file | 86 | fs/read_write.c | struct file * file; |
file | 91 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
file | 104 | fs/read_write.c | tmp = file->f_pos + offset; |
file | 107 | fs/read_write.c | if (!file->f_inode) |
file | 109 | fs/read_write.c | tmp = file->f_inode->i_size + offset; |
file | 114 | fs/read_write.c | file->f_pos = tmp; |
file | 115 | fs/read_write.c | file->f_reada = 0; |
file | 116 | fs/read_write.c | file->f_version = ++event; |
file | 117 | fs/read_write.c | memcpy_tofs(result, &file->f_pos, sizeof(loff_t)); |
file | 124 | fs/read_write.c | struct file * file; |
file | 127 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
file | 129 | fs/read_write.c | if (!(file->f_mode & 1)) |
file | 131 | fs/read_write.c | if (!file->f_op || !file->f_op->read) |
file | 138 | fs/read_write.c | return file->f_op->read(inode,file,buf,count); |
file | 144 | fs/read_write.c | struct file * file; |
file | 148 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
file | 150 | fs/read_write.c | if (!(file->f_mode & 2)) |
file | 152 | fs/read_write.c | if (!file->f_op || !file->f_op->write) |
file | 159 | fs/read_write.c | written = file->f_op->write(inode,file,buf,count); |
file | 69 | fs/select.c | static int check(int flag, select_table * wait, struct file * file) |
file | 73 | fs/select.c | int (*select) (struct inode *, struct file *, int, select_table *); |
file | 75 | fs/select.c | inode = file->f_inode; |
file | 76 | fs/select.c | if ((fops = file->f_op) && (select = fops->select)) |
file | 77 | fs/select.c | return select(inode, file, flag, wait) |
file | 78 | fs/select.c | || (wait && select(inode, file, flag, NULL)); |
file | 157 | fs/stat.c | struct file * f; |
file | 172 | fs/stat.c | struct file * f; |
file | 607 | fs/super.c | struct file dummy; /* allows read-write or read-only flag */ |
file | 639 | fs/super.c | struct file filp; |
file | 26 | fs/sysv/dir.c | static int sysv_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 31 | fs/sysv/dir.c | static int sysv_readdir(struct inode *, struct file *, struct dirent *, int); |
file | 67 | fs/sysv/dir.c | static int sysv_readdir1 (struct inode * inode, struct file * filp, |
file | 123 | 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 *, char *, int); |
file | 72 | fs/sysv/file.c | int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
file | 197 | fs/sysv/file.c | static int sysv_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
file | 181 | fs/sysv/fsync.c | int sysv_sync_file(struct inode * inode, struct file * file) |
file | 37 | fs/sysv/mmap.c | struct file filp; |
file | 68 | fs/sysv/mmap.c | int sysv_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 30 | fs/umsdos/dir.c | int UMSDOS_dir_read(struct inode *inode,struct file *filp,char *buf, |
file | 46 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
file | 226 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
file | 352 | fs/umsdos/dir.c | struct file filp; |
file | 373 | fs/umsdos/dir.c | struct file filp; |
file | 627 | fs/umsdos/dir.c | struct file filp; |
file | 23 | fs/umsdos/emd.c | struct file *filp, |
file | 38 | fs/umsdos/emd.c | struct file *filp, |
file | 53 | fs/umsdos/emd.c | struct file *filp, |
file | 73 | fs/umsdos/emd.c | struct file *filp, |
file | 89 | fs/umsdos/emd.c | struct file *filp, |
file | 150 | fs/umsdos/emd.c | struct file *filp, |
file | 176 | fs/umsdos/emd.c | struct file filp; |
file | 216 | fs/umsdos/emd.c | struct file filp; |
file | 456 | fs/umsdos/emd.c | struct file filp; |
file | 30 | fs/umsdos/file.c | struct file *filp, |
file | 45 | fs/umsdos/file.c | struct file *filp, |
file | 325 | fs/umsdos/inode.c | struct file filp; |
file | 24 | fs/umsdos/ioctl.c | struct file *filp, |
file | 425 | fs/umsdos/namei.c | struct file filp; |
file | 29 | fs/umsdos/rdir.c | struct file *filp, |
file | 31 | fs/umsdos/symlink.c | int (*msdos_read)(struct inode *, struct file *, char *, int), |
file | 35 | fs/umsdos/symlink.c | struct file filp; |
file | 25 | fs/xiafs/dir.c | static int xiafs_dir_read(struct inode *, struct file *, char *, int); |
file | 26 | fs/xiafs/dir.c | static int xiafs_readdir(struct inode *, struct file *, struct dirent *, int); |
file | 63 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
file | 69 | fs/xiafs/dir.c | struct file * filp, struct dirent * dirent, int count) |
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 *, 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, char * buf, int count) |
file | 144 | fs/xiafs/fsync.c | int xiafs_sync_file(struct inode * inode, struct file * file) |
file | 40 | ibcs/binfmt_coff.c | struct file *fp); |
file | 126 | ibcs/binfmt_coff.c | struct file *fp = NULL; /* Pointer to the file at "fd" */ |
file | 622 | ibcs/binfmt_coff.c | COFF_SCNHDR * sect, struct file *fp) |
file | 753 | ibcs/binfmt_coff.c | struct file *file; /* Pointer to the file table */ |
file | 759 | ibcs/binfmt_coff.c | file = current->files->fd[fd]; |
file | 760 | ibcs/binfmt_coff.c | bprm->inode = file->f_inode; /* The only item _really_ needed */ |
file | 131 | ibcs/binfmt_elf.c | struct file * file; |
file | 173 | ibcs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
file | 178 | ibcs/binfmt_elf.c | error = do_mmap(file, |
file | 267 | ibcs/binfmt_elf.c | struct file * file; |
file | 330 | ibcs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
file | 478 | ibcs/binfmt_elf.c | error = do_mmap(file, |
file | 567 | ibcs/binfmt_elf.c | struct file * file; |
file | 579 | ibcs/binfmt_elf.c | file = current->files->fd[fd]; |
file | 580 | ibcs/binfmt_elf.c | inode = file->f_inode; |
file | 584 | ibcs/binfmt_elf.c | if (file->f_op->read(inode, file, (char *) &elf_ex, sizeof(elf_ex)) != sizeof(elf_ex)) { |
file | 628 | ibcs/binfmt_elf.c | error = do_mmap(file, |
file | 427 | include/linux/ext2_fs.h | extern int ext2_read (struct inode *, struct file *, char *, int); |
file | 428 | include/linux/ext2_fs.h | extern int ext2_write (struct inode *, struct file *, char *, int); |
file | 431 | include/linux/ext2_fs.h | extern int ext2_sync_file (struct inode *, struct file *); |
file | 453 | include/linux/ext2_fs.h | extern int ext2_ioctl (struct inode *, struct file *, unsigned int, |
file | 457 | include/linux/ext2_fs.h | extern void ext2_release (struct inode *, struct file *); |
file | 63 | include/linux/ext_fs.h | extern int ext_open(struct inode * inode, struct file * filp); |
file | 64 | include/linux/ext_fs.h | extern void ext_release(struct inode * inode, struct file * filp); |
file | 99 | include/linux/ext_fs.h | extern int ext_sync_file(struct inode *, struct file *); |
file | 101 | include/linux/ext_fs.h | extern int ext_lseek(struct inode *, struct file *, off_t, int); |
file | 102 | include/linux/ext_fs.h | extern int ext_read(struct inode *, struct file *, char *, int); |
file | 103 | include/linux/ext_fs.h | extern int ext_write(struct inode *, struct file *, char *, int); |
file | 59 | include/linux/fs.h | #define NIL_FILP ((struct file *)0) |
file | 258 | include/linux/fs.h | struct file *f_next, *f_prev; |
file | 280 | include/linux/fs.h | struct file *fa_file; |
file | 324 | include/linux/fs.h | int (*lseek) (struct inode *, struct file *, off_t, int); |
file | 325 | include/linux/fs.h | int (*read) (struct inode *, struct file *, char *, int); |
file | 326 | include/linux/fs.h | int (*write) (struct inode *, struct file *, char *, int); |
file | 327 | include/linux/fs.h | int (*readdir) (struct inode *, struct file *, struct dirent *, int); |
file | 328 | include/linux/fs.h | int (*select) (struct inode *, struct file *, int, select_table *); |
file | 329 | include/linux/fs.h | int (*ioctl) (struct inode *, struct file *, unsigned int, unsigned long); |
file | 330 | include/linux/fs.h | int (*mmap) (struct inode *, struct file *, struct vm_area_struct *); |
file | 331 | include/linux/fs.h | int (*open) (struct inode *, struct file *); |
file | 332 | include/linux/fs.h | void (*release) (struct inode *, struct file *); |
file | 333 | include/linux/fs.h | int (*fsync) (struct inode *, struct file *); |
file | 334 | include/linux/fs.h | int (*fasync) (struct inode *, struct file *, int); |
file | 389 | include/linux/fs.h | extern int blkdev_open(struct inode * inode, struct file * filp); |
file | 395 | include/linux/fs.h | extern int chrdev_open(struct inode * inode, struct file * filp); |
file | 415 | include/linux/fs.h | extern struct file *first_file; |
file | 479 | include/linux/fs.h | extern struct file * get_empty_filp(void); |
file | 499 | include/linux/fs.h | extern int char_read(struct inode *, struct file *, char *, int); |
file | 500 | include/linux/fs.h | extern int block_read(struct inode *, struct file *, char *, int); |
file | 503 | include/linux/fs.h | extern int char_write(struct inode *, struct file *, char *, int); |
file | 504 | include/linux/fs.h | extern int block_write(struct inode *, struct file *, char *, int); |
file | 506 | include/linux/fs.h | extern int generic_mmap(struct inode *, struct file *, struct vm_area_struct *); |
file | 508 | include/linux/fs.h | extern int block_fsync(struct inode *, struct file *); |
file | 509 | 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 | 115 | include/linux/minix_fs.h | extern int minix_sync_file(struct inode *, struct file *); |
file | 194 | include/linux/mm.h | extern int do_mmap(struct file * file, unsigned long addr, unsigned long len, |
file | 178 | include/linux/msdos_fs.h | extern int msdos_readdir (struct inode *inode, struct file *filp, |
file | 183 | include/linux/msdos_fs.h | extern int msdos_file_read(struct inode *, struct file *, char *, int); |
file | 184 | include/linux/msdos_fs.h | extern int msdos_file_write(struct inode *, struct file *, char *, int); |
file | 190 | include/linux/msdos_fs.h | extern int msdos_mmap(struct inode *, struct file *, struct vm_area_struct *); |
file | 116 | include/linux/nfs_fs.h | extern int nfs_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma); |
file | 7 | include/linux/nfs_fs_sb.h | struct file *file; |
file | 196 | include/linux/sched.h | struct file * fd[NR_OPEN]; |
file | 388 | include/linux/sysv_fs.h | extern int sysv_file_read(struct inode *, struct file *, char *, int); |
file | 400 | include/linux/sysv_fs.h | extern int sysv_sync_file(struct inode *, struct file *); |
file | 401 | include/linux/sysv_fs.h | extern int sysv_mmap(struct inode *, struct file *, struct vm_area_struct *); |
file | 301 | include/linux/tty.h | extern void tty_unhangup(struct file *filp); |
file | 302 | include/linux/tty.h | extern int tty_hung_up_p(struct file * filp); |
file | 310 | include/linux/tty.h | extern int n_tty_ioctl(struct tty_struct * tty, struct file * file, |
file | 315 | include/linux/tty.h | extern int rs_open(struct tty_struct * tty, struct file * filp); |
file | 319 | include/linux/tty.h | extern int pty_open(struct tty_struct * tty, struct file * filp); |
file | 323 | include/linux/tty.h | extern int con_open(struct tty_struct * tty, struct file * filp); |
file | 330 | include/linux/tty.h | extern int vt_ioctl(struct tty_struct *tty, struct file * file, |
file | 124 | include/linux/tty_driver.h | int (*open)(struct tty_struct * tty, struct file * filp); |
file | 125 | include/linux/tty_driver.h | void (*close)(struct tty_struct * tty, struct file * filp); |
file | 132 | include/linux/tty_driver.h | int (*ioctl)(struct tty_struct *tty, struct file * file, |
file | 22 | include/linux/tty_ldisc.h | int (*read)(struct tty_struct * tty, struct file * file, |
file | 24 | include/linux/tty_ldisc.h | int (*write)(struct tty_struct * tty, struct file * file, |
file | 26 | include/linux/tty_ldisc.h | int (*ioctl)(struct tty_struct * tty, struct file * file, |
file | 30 | include/linux/tty_ldisc.h | struct file * file, int sel_type, |
file | 113 | include/linux/xd.h | static int xd_open (struct inode *inode,struct file *file); |
file | 115 | include/linux/xd.h | static int xd_ioctl (struct inode *inode,struct file *file,unsigned int cmd,unsigned long arg); |
file | 116 | include/linux/xd.h | static void xd_release (struct inode *inode,struct file *file); |
file | 101 | include/linux/xia_fs.h | extern int xiafs_sync_file(struct inode *, struct file *); |
file | 55 | init/main.c | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
file | 56 | init/main.c | static inline _syscall3(int,open,const char *,file,int,flag,int,mode) |
file | 69 | kernel/fork.c | static struct file * copy_fd(struct file * old_file) |
file | 71 | kernel/fork.c | struct file * new_file = get_empty_filp(); |
file | 75 | kernel/fork.c | memcpy(new_file,old_file,sizeof(struct file)); |
file | 120 | kernel/fork.c | struct file * f; |
file | 10 | lib/execve.c | _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
file | 19 | mm/mmap.c | static int anon_map(struct inode *, struct file *, struct vm_area_struct *); |
file | 38 | mm/mmap.c | int do_mmap(struct file * file, unsigned long addr, unsigned long len, |
file | 60 | mm/mmap.c | if (file != NULL) { |
file | 63 | mm/mmap.c | if ((prot & PROT_WRITE) && !(file->f_mode & 2)) |
file | 67 | mm/mmap.c | if (!(file->f_mode & 1)) |
file | 74 | mm/mmap.c | if ((flags & MAP_DENYWRITE) && (file->f_inode->i_wcount > 0)) |
file | 100 | mm/mmap.c | if (file && (!file->f_op || !file->f_op->mmap)) |
file | 123 | mm/mmap.c | if (file) { |
file | 124 | mm/mmap.c | if (file->f_mode & 1) |
file | 128 | mm/mmap.c | if (!(file->f_mode & 2)) |
file | 140 | mm/mmap.c | if (file) |
file | 141 | mm/mmap.c | error = file->f_op->mmap(file->f_inode, file, vma); |
file | 183 | mm/mmap.c | struct file * file = NULL; |
file | 191 | mm/mmap.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 194 | mm/mmap.c | return do_mmap(file, get_fs_long(buffer), get_fs_long(buffer+1), |
file | 361 | mm/mmap.c | int generic_mmap(struct inode * inode, struct file * file, struct vm_area_struct * vma) |
file | 465 | mm/mmap.c | static int anon_map(struct inode *ino, struct file * file, struct vm_area_struct * vma) |
file | 70 | net/inet/skbuff.c | int skb_check(struct sk_buff *skb, int head, int line, char *file) |
file | 75 | net/inet/skbuff.c | file,line); |
file | 85 | net/inet/skbuff.c | file,line); |
file | 91 | net/inet/skbuff.c | file,line); |
file | 99 | net/inet/skbuff.c | if (skb_check(skb2, 0, line, file) < 0) { |
file | 113 | net/inet/skbuff.c | file,line); |
file | 119 | net/inet/skbuff.c | file,line); |
file | 127 | net/inet/skbuff.c | file,line); |
file | 134 | net/inet/skbuff.c | printk("File: %s Line %d, passed a non skb!\n", file,line); |
file | 141 | net/inet/skbuff.c | printk("File: %s Line %d, Dubious size setting!\n",file,line); |
file | 55 | net/socket.c | static int sock_lseek(struct inode *inode, struct file *file, off_t offset, |
file | 57 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
file | 59 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, char *buf, |
file | 61 | net/socket.c | static int sock_readdir(struct inode *inode, struct file *file, |
file | 63 | net/socket.c | static void sock_close(struct inode *inode, struct file *file); |
file | 64 | net/socket.c | static int sock_select(struct inode *inode, struct file *file, int which, select_table *seltable); |
file | 65 | net/socket.c | static int sock_ioctl(struct inode *inode, struct file *file, |
file | 67 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on); |
file | 156 | net/socket.c | struct file *file; |
file | 162 | net/socket.c | file = get_empty_filp(); |
file | 163 | net/socket.c | if (!file) |
file | 171 | net/socket.c | file->f_count = 0; |
file | 176 | net/socket.c | current->files->fd[fd] = file; |
file | 177 | net/socket.c | file->f_op = &socket_file_ops; |
file | 178 | net/socket.c | file->f_mode = 3; |
file | 179 | net/socket.c | file->f_flags = O_RDWR; |
file | 180 | net/socket.c | file->f_count = 1; |
file | 181 | net/socket.c | file->f_inode = inode; |
file | 184 | net/socket.c | file->f_pos = 0; |
file | 227 | net/socket.c | static inline struct socket *sockfd_lookup(int fd, struct file **pfile) |
file | 229 | net/socket.c | struct file *file; |
file | 231 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
file | 235 | net/socket.c | *pfile = file; |
file | 237 | net/socket.c | return(socki_lookup(file->f_inode)); |
file | 367 | net/socket.c | static int sock_lseek(struct inode *inode, struct file *file, off_t offset, int whence) |
file | 377 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *ubuf, int size) |
file | 396 | net/socket.c | return(sock->ops->read(sock, ubuf, size, (file->f_flags & O_NONBLOCK))); |
file | 404 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, char *ubuf, int size) |
file | 425 | net/socket.c | return(sock->ops->write(sock, ubuf, size,(file->f_flags & O_NONBLOCK))); |
file | 432 | net/socket.c | static int sock_readdir(struct inode *inode, struct file *file, struct dirent *dirent, |
file | 443 | net/socket.c | int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd, |
file | 457 | net/socket.c | static int sock_select(struct inode *inode, struct file *file, int sel_type, select_table * wait) |
file | 477 | net/socket.c | void sock_close(struct inode *inode, struct file *filp) |
file | 501 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on) |
file | 823 | net/socket.c | struct file *file; |
file | 829 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 831 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
file | 855 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
file | 885 | net/socket.c | struct file *file; |
file | 890 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
file | 892 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
file | 917 | net/socket.c | addrlen, file->f_flags)); |
file | 921 | net/socket.c | i = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags); |
file | 987 | net/socket.c | struct file *file; |
file | 990 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1000 | net/socket.c | return(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags)); |
file | 1013 | net/socket.c | struct file *file; |
file | 1017 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1031 | net/socket.c | return(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK), |
file | 1047 | net/socket.c | struct file *file; |
file | 1050 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1064 | net/socket.c | return(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags)); |
file | 1077 | net/socket.c | struct file *file; |
file | 1081 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1094 | net/socket.c | len=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK), |
file | 1113 | net/socket.c | struct file *file; |
file | 1115 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1131 | net/socket.c | struct file *file; |
file | 1133 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1151 | net/socket.c | struct file *file; |
file | 1153 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
file | 1166 | net/socket.c | int sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |