tag | line | file | source code |
filp | 3109 | drivers/block/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
filp | 3114 | drivers/block/floppy.c | #define IOCTL_ALLOWED (filp && (filp->f_mode & IOCTL_MODE_BIT)) |
filp | 3370 | drivers/block/floppy.c | static int floppy_read(struct inode * inode, struct file * filp, |
filp | 3378 | drivers/block/floppy.c | return block_read(inode, filp, buf, count); |
filp | 3381 | drivers/block/floppy.c | static int floppy_write(struct inode * inode, struct file * filp, |
filp | 3395 | drivers/block/floppy.c | block = (filp->f_pos + count) >> 9; |
filp | 3398 | drivers/block/floppy.c | ret= block_write(inode, filp, buf, count); |
filp | 3402 | drivers/block/floppy.c | static void floppy_release(struct inode * inode, struct file * filp) |
filp | 3408 | drivers/block/floppy.c | if( !filp || (filp->f_mode & (2 | OPEN_WRITE_BIT))) |
filp | 3411 | drivers/block/floppy.c | block_fsync(inode,filp); |
filp | 3427 | drivers/block/floppy.c | #define RETERR(x) do{floppy_release(inode,filp); return -(x);}while(0) |
filp | 3429 | drivers/block/floppy.c | static int floppy_open(struct inode * inode, struct file * filp) |
filp | 3436 | drivers/block/floppy.c | if (!filp) { |
filp | 3460 | drivers/block/floppy.c | (UDRS->fd_ref && (filp->f_flags & O_EXCL))) |
filp | 3466 | drivers/block/floppy.c | if (filp->f_flags & O_EXCL) |
filp | 3507 | drivers/block/floppy.c | if ((filp->f_mode & 2) || (permission(inode,2) == 0)) |
filp | 3508 | drivers/block/floppy.c | filp->f_mode |= IOCTL_MODE_BIT; |
filp | 3509 | drivers/block/floppy.c | if (filp->f_mode & 2) |
filp | 3510 | drivers/block/floppy.c | filp->f_mode |= OPEN_WRITE_BIT; |
filp | 3515 | drivers/block/floppy.c | if (filp->f_flags & O_NDELAY) |
filp | 3517 | drivers/block/floppy.c | if (filp->f_mode & 3) { |
filp | 3523 | drivers/block/floppy.c | if ((filp->f_mode & 2) && !(UTESTF(FD_DISK_WRITABLE))) |
filp | 890 | drivers/block/hd.c | static int hd_open(struct inode * inode, struct file * filp) |
filp | 1660 | drivers/block/ide.c | static int ide_open(struct inode * inode, struct file * filp) |
filp | 1675 | drivers/block/ide.c | return ide_cdrom_open (inode, filp, drive); |
filp | 206 | drivers/block/ramdisk.c | struct file filp; |
filp | 222 | drivers/block/ramdisk.c | memset(&filp, 0, sizeof(filp)); |
filp | 225 | drivers/block/ramdisk.c | filp.f_mode = 1; /* read only */ |
filp | 226 | drivers/block/ramdisk.c | filp.f_inode = &inode; |
filp | 227 | drivers/block/ramdisk.c | if(blkdev_open(&inode, &filp) == 0 ){ |
filp | 229 | drivers/block/ramdisk.c | if(filp.f_op && filp.f_op->release) |
filp | 230 | drivers/block/ramdisk.c | filp.f_op->release(&inode,&filp); |
filp | 232 | drivers/cdrom/cdu31a.c | static int scd_open(struct inode *inode, struct file *filp); |
filp | 2665 | drivers/cdrom/cdu31a.c | struct file *filp) |
filp | 2673 | drivers/cdrom/cdu31a.c | if ((filp) && filp->f_mode & 2) |
filp | 2766 | drivers/cdrom/cdu31a.c | if (filp) |
filp | 2784 | drivers/cdrom/cdu31a.c | struct file *filp) |
filp | 204 | drivers/cdrom/sonycd535.c | static int cdu_open(struct inode *inode, struct file *filp); |
filp | 1406 | drivers/cdrom/sonycd535.c | struct file *filp) |
filp | 1454 | drivers/cdrom/sonycd535.c | struct file *filp) |
filp | 105 | drivers/char/atixlmouse.c | static int fasync_mouse(struct inode *inode, struct file *filp, int on) |
filp | 109 | drivers/char/atixlmouse.c | retval = fasync_helper(inode, filp, on, &mouse.fasync); |
filp | 110 | drivers/char/busmouse.c | static int fasync_mouse(struct inode *inode, struct file *filp, int on) |
filp | 114 | drivers/char/busmouse.c | retval = fasync_helper(inode, filp, on, &mouse.fasyncptr); |
filp | 2359 | drivers/char/console.c | int con_open(struct tty_struct *tty, struct file * filp) |
filp | 2286 | drivers/char/cyclades.c | cy_close(struct tty_struct * tty, struct file * filp) |
filp | 2408 | drivers/char/cyclades.c | block_til_ready(struct tty_struct *tty, struct file * filp, |
filp | 2457 | drivers/char/cyclades.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 2505 | drivers/char/cyclades.c | if (tty_hung_up_p(filp) |
filp | 2537 | drivers/char/cyclades.c | if (!tty_hung_up_p(filp)){ |
filp | 2559 | drivers/char/cyclades.c | cy_open(struct tty_struct *tty, struct file * filp) |
filp | 2610 | drivers/char/cyclades.c | retval = block_til_ready(tty, filp, info); |
filp | 586 | drivers/char/istallion.c | static int stli_open(struct tty_struct *tty, struct file *filp); |
filp | 587 | drivers/char/istallion.c | static void stli_close(struct tty_struct *tty, struct file *filp); |
filp | 615 | drivers/char/istallion.c | static int stli_waitcarrier(stlibrd_t *brdp, stliport_t *portp, struct file *filp); |
filp | 823 | drivers/char/istallion.c | static int stli_open(struct tty_struct *tty, struct file *filp) |
filp | 831 | drivers/char/istallion.c | printk("stli_open(tty=%x,filp=%x): device=%x\n", (int) tty, (int) filp, tty->device); |
filp | 925 | drivers/char/istallion.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 929 | drivers/char/istallion.c | if ((rc = stli_waitcarrier(brdp, portp, filp)) != 0) |
filp | 950 | drivers/char/istallion.c | static void stli_close(struct tty_struct *tty, struct file *filp) |
filp | 957 | drivers/char/istallion.c | printk("stli_close(tty=%x,filp=%x)\n", (int) tty, (int) filp); |
filp | 966 | drivers/char/istallion.c | if (tty_hung_up_p(filp)) { |
filp | 1329 | drivers/char/istallion.c | static int stli_waitcarrier(stlibrd_t *brdp, stliport_t *portp, struct file *filp) |
filp | 1335 | drivers/char/istallion.c | printk("stli_waitcarrier(brdp=%x,portp=%x,filp=%x)\n", (int) brdp, (int) portp, (int) filp); |
filp | 1352 | drivers/char/istallion.c | if (tty_hung_up_p(filp) || ((portp->flags & ASYNC_INITIALIZED) == 0)) { |
filp | 1372 | drivers/char/istallion.c | if (! tty_hung_up_p(filp)) |
filp | 350 | drivers/char/mem.c | static int memory_open(struct inode * inode, struct file * filp) |
filp | 354 | drivers/char/mem.c | filp->f_op = &ram_fops; |
filp | 357 | drivers/char/mem.c | filp->f_op = &mem_fops; |
filp | 360 | drivers/char/mem.c | filp->f_op = &kmem_fops; |
filp | 363 | drivers/char/mem.c | filp->f_op = &null_fops; |
filp | 366 | drivers/char/mem.c | filp->f_op = &port_fops; |
filp | 369 | drivers/char/mem.c | filp->f_op = &zero_fops; |
filp | 372 | drivers/char/mem.c | filp->f_op = &full_fops; |
filp | 375 | drivers/char/mem.c | filp->f_op = &random_fops; |
filp | 378 | drivers/char/mem.c | filp->f_op = &urandom_fops; |
filp | 383 | drivers/char/mem.c | if (filp->f_op && filp->f_op->open) |
filp | 384 | drivers/char/mem.c | return filp->f_op->open(inode,filp); |
filp | 92 | drivers/char/msbusmouse.c | static int fasync_mouse(struct inode *inode, struct file *filp, int on) |
filp | 96 | drivers/char/msbusmouse.c | retval = fasync_helper(inode, filp, on, &mouse.fasyncptr); |
filp | 131 | drivers/char/psaux.c | static int fasync_aux(struct inode *inode, struct file *filp, int on); |
filp | 294 | drivers/char/psaux.c | static int fasync_aux(struct inode *inode, struct file *filp, int on) |
filp | 298 | drivers/char/psaux.c | retval = fasync_helper(inode, filp, on, &queue->fasync); |
filp | 63 | drivers/char/pty.c | static void pty_close(struct tty_struct * tty, struct file * filp) |
filp | 182 | drivers/char/pty.c | int pty_open(struct tty_struct *tty, struct file * filp) |
filp | 205 | drivers/char/pty.c | if (filp->f_flags & O_NDELAY) |
filp | 163 | drivers/char/scc.c | int scc_open(struct tty_struct *tty, struct file *filp); |
filp | 164 | drivers/char/scc.c | static void scc_close(struct tty_struct *tty, struct file *filp); |
filp | 1714 | drivers/char/scc.c | int scc_open(struct tty_struct *tty, struct file * filp) |
filp | 1766 | drivers/char/scc.c | scc_close(struct tty_struct *tty, struct file * filp) |
filp | 1996 | drivers/char/serial.c | static void rs_close(struct tty_struct *tty, struct file * filp) |
filp | 2007 | drivers/char/serial.c | if (tty_hung_up_p(filp)) { |
filp | 2130 | drivers/char/serial.c | static int block_til_ready(struct tty_struct *tty, struct file * filp, |
filp | 2176 | drivers/char/serial.c | if ((filp->f_flags & O_NONBLOCK) || |
filp | 2215 | drivers/char/serial.c | if (tty_hung_up_p(filp) || |
filp | 2244 | drivers/char/serial.c | if (!tty_hung_up_p(filp)) |
filp | 2263 | drivers/char/serial.c | int rs_open(struct tty_struct *tty, struct file * filp) |
filp | 2296 | drivers/char/serial.c | retval = block_til_ready(tty, filp, info); |
filp | 460 | drivers/char/stallion.c | static int stl_open(struct tty_struct *tty, struct file *filp); |
filp | 461 | drivers/char/stallion.c | static void stl_close(struct tty_struct *tty, struct file *filp); |
filp | 495 | drivers/char/stallion.c | static int stl_waitcarrier(stlport_t *portp, struct file *filp); |
filp | 625 | drivers/char/stallion.c | static int stl_open(struct tty_struct *tty, struct file *filp) |
filp | 633 | drivers/char/stallion.c | printk("stl_open(tty=%x,filp=%x): device=%x\n", (int) tty, (int) filp, tty->device); |
filp | 716 | drivers/char/stallion.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 720 | drivers/char/stallion.c | if ((rc = stl_waitcarrier(portp, filp)) != 0) |
filp | 746 | drivers/char/stallion.c | static int stl_waitcarrier(stlport_t *portp, struct file *filp) |
filp | 752 | drivers/char/stallion.c | printk("stl_waitcarrier(portp=%x,filp=%x)\n", (int) portp, (int) filp); |
filp | 766 | drivers/char/stallion.c | if (tty_hung_up_p(filp) || ((portp->flags & ASYNC_INITIALIZED) == 0)) { |
filp | 786 | drivers/char/stallion.c | if (! tty_hung_up_p(filp)) |
filp | 796 | drivers/char/stallion.c | static void stl_close(struct tty_struct *tty, struct file *filp) |
filp | 802 | drivers/char/stallion.c | printk("stl_close(tty=%x,filp=%x)\n", (int) tty, (int) filp); |
filp | 811 | drivers/char/stallion.c | if (tty_hung_up_p(filp)) { |
filp | 1918 | drivers/char/tpqic02.c | static int qic02_tape_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 1922 | drivers/char/tpqic02.c | unsigned short flags = filp->f_flags; |
filp | 1934 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
filp | 2054 | drivers/char/tpqic02.c | filp->f_pos += bytes_done; |
filp | 2093 | drivers/char/tpqic02.c | static int qic02_tape_write(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 2097 | drivers/char/tpqic02.c | unsigned short flags = filp->f_flags; |
filp | 2108 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
filp | 2221 | drivers/char/tpqic02.c | filp->f_pos += bytes_done; |
filp | 2245 | drivers/char/tpqic02.c | static int qic02_tape_open(struct inode * inode, struct file * filp) |
filp | 2248 | drivers/char/tpqic02.c | unsigned short flags = filp->f_flags; |
filp | 2269 | drivers/char/tpqic02.c | if (filp->f_count>1) { /* filp->f_count==1 for the first open() */ |
filp | 2431 | drivers/char/tpqic02.c | static void qic02_tape_release(struct inode * inode, struct file * filp) |
filp | 2553 | drivers/char/tpqic02.c | static int qic02_tape_ioctl(struct inode * inode, struct file * filp, |
filp | 105 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on); |
filp | 301 | drivers/char/tty_io.c | static int hung_up_tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 348 | drivers/char/tty_io.c | struct file * filp; |
filp | 354 | drivers/char/tty_io.c | for (filp = first_file, i=0; i<nr_files; i++, filp = filp->f_next) { |
filp | 355 | drivers/char/tty_io.c | if (!filp->f_count) |
filp | 357 | drivers/char/tty_io.c | if (filp->private_data != tty) |
filp | 359 | drivers/char/tty_io.c | if (filp->f_inode |
filp | 360 | drivers/char/tty_io.c | && filp->f_inode->i_rdev == CONSOLE_DEV) |
filp | 362 | drivers/char/tty_io.c | if (filp->f_op != &tty_fops) |
filp | 364 | drivers/char/tty_io.c | tty_fasync(filp->f_inode, filp, 0); |
filp | 365 | drivers/char/tty_io.c | filp->f_op = fops; |
filp | 432 | drivers/char/tty_io.c | int tty_hung_up_p(struct file * filp) |
filp | 434 | drivers/char/tty_io.c | return (filp->f_op == &hung_up_tty_fops); |
filp | 944 | drivers/char/tty_io.c | static void release_dev(struct file * filp) |
filp | 951 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
filp | 952 | drivers/char/tty_io.c | if (tty_paranoia_check(tty, filp->f_inode->i_rdev, "release_dev")) |
filp | 957 | drivers/char/tty_io.c | tty_fasync(filp->f_inode, filp, 0); |
filp | 1026 | drivers/char/tty_io.c | tty->driver.close(tty, filp); |
filp | 1115 | drivers/char/tty_io.c | filp->private_data = 0; |
filp | 1135 | drivers/char/tty_io.c | static int tty_open(struct inode * inode, struct file * filp) |
filp | 1143 | drivers/char/tty_io.c | noctty = filp->f_flags & O_NOCTTY; |
filp | 1160 | drivers/char/tty_io.c | filp->private_data = tty; |
filp | 1169 | drivers/char/tty_io.c | retval = tty->driver.open(tty, filp); |
filp | 1181 | drivers/char/tty_io.c | release_dev(filp); |
filp | 1190 | drivers/char/tty_io.c | filp->f_op = &tty_fops; |
filp | 1210 | drivers/char/tty_io.c | static void tty_release(struct inode * inode, struct file * filp) |
filp | 1212 | drivers/char/tty_io.c | release_dev(filp); |
filp | 1215 | drivers/char/tty_io.c | static int tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 1219 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
filp | 1224 | drivers/char/tty_io.c | return (tty->ldisc.select)(tty, inode, filp, sel_type, wait); |
filp | 1233 | drivers/char/tty_io.c | int fasync_helper(struct inode * inode, struct file * filp, int on, struct fasync_struct **fapp) |
filp | 1239 | drivers/char/tty_io.c | if (fa->fa_file == filp) |
filp | 1250 | drivers/char/tty_io.c | fa->fa_file = filp; |
filp | 1268 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on) |
filp | 1273 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
filp | 1277 | drivers/char/tty_io.c | retval = fasync_helper(inode, filp, on, &tty->fasync); |
filp | 1284 | drivers/char/tty_io.c | if (filp->f_owner == 0) { |
filp | 1286 | drivers/char/tty_io.c | filp->f_owner = -tty->pgrp; |
filp | 1288 | drivers/char/tty_io.c | filp->f_owner = current->pid; |
filp | 1589 | drivers/char/tty_io.c | struct file *filp; |
filp | 1606 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
filp | 1607 | drivers/char/tty_io.c | if (filp && (filp->f_op == &tty_fops) && |
filp | 1608 | drivers/char/tty_io.c | (filp->private_data == tty)) { |
filp | 186 | drivers/char/vc_screen.c | vcs_open(struct inode *inode, struct file *filp) |
filp | 244 | drivers/net/ppp.c | struct file *filp, int sel_type, select_table * wait); |
filp | 2630 | drivers/net/ppp.c | struct file *filp, int sel_type, select_table * wait) |
filp | 2667 | drivers/net/ppp.c | if (tty_hung_up_p (filp)) |
filp | 2156 | drivers/scsi/53c7,8xx.c | static debugger_user_write (struct inode *inode,struct file *filp, |
filp | 2208 | drivers/scsi/53c7,8xx.c | static debugger_user_read (struct inode *inode,struct file *filp, |
filp | 96 | drivers/scsi/sd.c | static int sd_open(struct inode * inode, struct file * filp) |
filp | 127 | drivers/scsi/sd.c | if ( (rscsi_disks[target].write_prot) && (filp->f_mode & 2) ) { |
filp | 92 | drivers/scsi/sg.c | static int sg_open(struct inode * inode, struct file * filp) |
filp | 95 | drivers/scsi/sg.c | int flags=filp->f_flags; |
filp | 154 | drivers/scsi/sg.c | static void sg_close(struct inode * inode, struct file * filp) |
filp | 203 | drivers/scsi/sg.c | static int sg_read(struct inode *inode,struct file *filp,char *buf,int count) |
filp | 219 | drivers/scsi/sg.c | if (filp->f_flags & O_NONBLOCK) |
filp | 302 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,const char *buf,int count) |
filp | 329 | drivers/scsi/sg.c | if (filp->f_flags & O_NONBLOCK) |
filp | 393 | drivers/scsi/sg.c | if (!(SCpnt=allocate_device(NULL,device->device, !(filp->f_flags & O_NONBLOCK)))) |
filp | 518 | drivers/scsi/sr.c | static int sr_open(struct inode * inode, struct file * filp) |
filp | 523 | drivers/scsi/sr.c | if (filp->f_mode & 2) |
filp | 393 | drivers/scsi/st.c | flush_buffer(struct inode * inode, struct file * filp, int seek_next) |
filp | 435 | drivers/scsi/st.c | result = st_int_ioctl(inode, filp, MTBSR, backspace); |
filp | 444 | drivers/scsi/st.c | scsi_tape_open(struct inode * inode, struct file * filp) |
filp | 478 | drivers/scsi/st.c | flags = filp->f_flags; |
filp | 646 | drivers/scsi/st.c | scsi_tape_close(struct inode * inode, struct file * filp) |
filp | 667 | drivers/scsi/st.c | printk("st%d: File length %ld bytes.\n", dev, (long)(filp->f_pos)); |
filp | 703 | drivers/scsi/st.c | flush_buffer(inode, filp, 0); |
filp | 711 | drivers/scsi/st.c | st_int_ioctl(inode, filp, MTREW, 1); |
filp | 714 | drivers/scsi/st.c | st_int_ioctl(inode, filp, MTUNLOCK, 0); |
filp | 732 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 770 | drivers/scsi/st.c | !st_int_ioctl(inode, filp, MTLOCK, 0)) |
filp | 774 | drivers/scsi/st.c | retval = flush_buffer(inode, filp, 0); |
filp | 875 | drivers/scsi/st.c | filp->f_pos += do_count - transfer; |
filp | 914 | drivers/scsi/st.c | filp->f_pos += do_count; |
filp | 930 | drivers/scsi/st.c | filp->f_pos += count; |
filp | 987 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 1016 | drivers/scsi/st.c | !st_int_ioctl(inode, filp, MTLOCK, 0)) |
filp | 1020 | drivers/scsi/st.c | transfer = flush_buffer(inode, filp, 0); |
filp | 1189 | drivers/scsi/st.c | filp->f_pos += transfer; |
filp | 122 | drivers/sound/sequencer.c | if ((file->filp->f_flags & (O_NONBLOCK) ? |
filp | 369 | drivers/sound/sequencer.c | if (!seq_queue (event, (file->filp->f_flags & (O_NONBLOCK) ? |
filp | 377 | drivers/sound/sequencer.c | if (!processed && (file->filp->f_flags & (O_NONBLOCK) ? |
filp | 1336 | drivers/sound/sequencer.c | if (mode != OPEN_READ && !(file->filp->f_flags & (O_NONBLOCK) ? |
filp | 141 | drivers/sound/sound_config.h | struct file *filp; /* Reference to file-flags. OS-dependent. */ |
filp | 113 | drivers/sound/soundcard.c | tmp_file.filp = file; |
filp | 23 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 56 | fs/block_dev.c | block = filp->f_pos >> blocksize_bits; |
filp | 57 | fs/block_dev.c | offset = filp->f_pos & (blocksize-1); |
filp | 83 | fs/block_dev.c | if(!filp->f_reada || |
filp | 120 | fs/block_dev.c | filp->f_pos += chars; |
filp | 128 | fs/block_dev.c | if (filp->f_flags & O_SYNC) |
filp | 154 | fs/block_dev.c | filp->f_reada = 1; |
filp | 160 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 190 | fs/block_dev.c | offset = filp->f_pos; |
filp | 215 | fs/block_dev.c | if (filp->f_reada) { |
filp | 287 | fs/block_dev.c | filp->f_pos += chars; |
filp | 312 | fs/block_dev.c | filp->f_reada = 1; |
filp | 316 | fs/block_dev.c | int block_fsync(struct inode *inode, struct file *filp) |
filp | 241 | fs/buffer.c | int file_fsync (struct inode *inode, struct file *filp) |
filp | 171 | fs/devices.c | int blkdev_open(struct inode * inode, struct file * filp) |
filp | 178 | fs/devices.c | filp->f_op = blkdevs[i].fops; |
filp | 179 | fs/devices.c | if (filp->f_op->open) |
filp | 180 | fs/devices.c | return filp->f_op->open(inode,filp); |
filp | 222 | fs/devices.c | int chrdev_open(struct inode * inode, struct file * filp) |
filp | 229 | fs/devices.c | filp->f_op = chrdevs[i].fops; |
filp | 230 | fs/devices.c | if (filp->f_op->open) |
filp | 231 | fs/devices.c | return filp->f_op->open(inode,filp); |
filp | 23 | fs/ext/dir.c | static int ext_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 64 | fs/ext/dir.c | static int ext_readdir(struct inode * inode, struct file * filp, |
filp | 75 | fs/ext/dir.c | if ((filp->f_pos & 7) != 0) |
filp | 78 | fs/ext/dir.c | while (!error && filp->f_pos < inode->i_size) { |
filp | 79 | fs/ext/dir.c | offset = filp->f_pos & 1023; |
filp | 80 | fs/ext/dir.c | bh = ext_bread(inode,(filp->f_pos)>>BLOCK_SIZE_BITS,0); |
filp | 82 | fs/ext/dir.c | filp->f_pos += 1024-offset; |
filp | 93 | fs/ext/dir.c | while (offset < 1024 && filp->f_pos < inode->i_size) { |
filp | 96 | fs/ext/dir.c | (de->rec_len + (off_t) filp->f_pos - 1) / 1024 > ((off_t) filp->f_pos / 1024)) { |
filp | 102 | fs/ext/dir.c | filp->f_pos += 1024-offset; |
filp | 103 | fs/ext/dir.c | if (filp->f_pos > inode->i_size) |
filp | 104 | fs/ext/dir.c | filp->f_pos = inode->i_size; |
filp | 108 | fs/ext/dir.c | error = filldir(dirent, de->name, de->name_len, filp->f_pos, de->inode); |
filp | 113 | fs/ext/dir.c | filp->f_pos += de->rec_len; |
filp | 72 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 90 | fs/ext/file.c | offset = filp->f_pos; |
filp | 106 | fs/ext/file.c | if (filp->f_reada) { |
filp | 164 | fs/ext/file.c | filp->f_pos += chars; |
filp | 189 | fs/ext/file.c | filp->f_reada = 1; |
filp | 197 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 216 | fs/ext/file.c | if (filp->f_flags & O_APPEND) |
filp | 219 | fs/ext/file.c | pos = filp->f_pos; |
filp | 255 | fs/ext/file.c | filp->f_pos = pos; |
filp | 249 | fs/ext/truncate.c | void ext_release(struct inode * inode, struct file * filp) |
filp | 26 | fs/ext2/dir.c | static int ext2_dir_read (struct inode * inode, struct file * filp, |
filp | 98 | fs/ext2/dir.c | static int ext2_readdir (struct inode * inode, struct file * filp, |
filp | 115 | fs/ext2/dir.c | offset = filp->f_pos & (sb->s_blocksize - 1); |
filp | 117 | fs/ext2/dir.c | while (!error && !stored && filp->f_pos < inode->i_size) { |
filp | 118 | fs/ext2/dir.c | blk = (filp->f_pos) >> EXT2_BLOCK_SIZE_BITS(sb); |
filp | 123 | fs/ext2/dir.c | inode->i_ino, (unsigned long)filp->f_pos); |
filp | 124 | fs/ext2/dir.c | filp->f_pos += sb->s_blocksize - offset; |
filp | 152 | fs/ext2/dir.c | if (filp->f_version != inode->i_version) { |
filp | 167 | fs/ext2/dir.c | filp->f_pos = (filp->f_pos & ~(sb->s_blocksize - 1)) |
filp | 169 | fs/ext2/dir.c | filp->f_version = inode->i_version; |
filp | 172 | fs/ext2/dir.c | while (!error && filp->f_pos < inode->i_size |
filp | 179 | fs/ext2/dir.c | filp->f_pos = (filp->f_pos & (sb->s_blocksize - 1)) |
filp | 195 | fs/ext2/dir.c | error = filldir(dirent, de->name, de->name_len, filp->f_pos, de->inode); |
filp | 202 | fs/ext2/dir.c | filp->f_pos += de->rec_len; |
filp | 80 | fs/ext2/file.c | static int ext2_file_read (struct inode * inode, struct file * filp, |
filp | 104 | fs/ext2/file.c | offset = filp->f_pos; |
filp | 121 | fs/ext2/file.c | if (filp->f_reada) { |
filp | 195 | fs/ext2/file.c | filp->f_pos += chars; |
filp | 223 | fs/ext2/file.c | filp->f_reada = 1; |
filp | 231 | fs/ext2/file.c | static int ext2_file_write (struct inode * inode, struct file * filp, |
filp | 263 | fs/ext2/file.c | if (filp->f_flags & O_APPEND) |
filp | 266 | fs/ext2/file.c | pos = filp->f_pos; |
filp | 274 | fs/ext2/file.c | if (filp->f_flags & O_SYNC) |
filp | 312 | fs/ext2/file.c | if (filp->f_flags & O_SYNC) |
filp | 343 | fs/ext2/file.c | if (filp->f_flags & O_SYNC) |
filp | 347 | fs/ext2/file.c | filp->f_pos = pos; |
filp | 357 | fs/ext2/file.c | static void ext2_release_file (struct inode * inode, struct file * filp) |
filp | 359 | fs/ext2/file.c | if (filp->f_mode & 2) |
filp | 19 | fs/ext2/ioctl.c | int ext2_ioctl (struct inode * inode, struct file * filp, unsigned int cmd, |
filp | 68 | fs/fcntl.c | struct file * filp; |
filp | 72 | fs/fcntl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
filp | 86 | fs/fcntl.c | return filp->f_flags; |
filp | 92 | fs/fcntl.c | if (IS_APPEND(filp->f_inode) && !(arg & O_APPEND)) |
filp | 94 | fs/fcntl.c | if ((arg & FASYNC) && !(filp->f_flags & FASYNC) && |
filp | 95 | fs/fcntl.c | filp->f_op->fasync) |
filp | 96 | fs/fcntl.c | filp->f_op->fasync(filp->f_inode, filp, 1); |
filp | 97 | fs/fcntl.c | if (!(arg & FASYNC) && (filp->f_flags & FASYNC) && |
filp | 98 | fs/fcntl.c | filp->f_op->fasync) |
filp | 99 | fs/fcntl.c | filp->f_op->fasync(filp->f_inode, filp, 0); |
filp | 100 | fs/fcntl.c | filp->f_flags &= ~(O_APPEND | O_NONBLOCK | FASYNC); |
filp | 101 | fs/fcntl.c | filp->f_flags |= arg & (O_APPEND | O_NONBLOCK | |
filp | 118 | fs/fcntl.c | return filp->f_owner; |
filp | 160 | fs/fcntl.c | filp->f_owner = arg; |
filp | 161 | fs/fcntl.c | if (S_ISSOCK (filp->f_inode->i_mode)) |
filp | 162 | fs/fcntl.c | sock_fcntl (filp, F_SETOWN, arg); |
filp | 166 | fs/fcntl.c | if (S_ISSOCK (filp->f_inode->i_mode)) |
filp | 168 | fs/fcntl.c | return (sock_fcntl (filp, cmd, arg)); |
filp | 13 | fs/fifo.c | static int fifo_open(struct inode * inode,struct file * filp) |
filp | 18 | fs/fifo.c | switch( filp->f_mode ) { |
filp | 26 | fs/fifo.c | filp->f_op = &connecting_fifo_fops; |
filp | 29 | fs/fifo.c | if (!(filp->f_flags & O_NONBLOCK) && !PIPE_WRITERS(*inode)) { |
filp | 44 | fs/fifo.c | filp->f_op = &read_fifo_fops; |
filp | 55 | fs/fifo.c | if ((filp->f_flags & O_NONBLOCK) && !PIPE_READERS(*inode)) { |
filp | 59 | fs/fifo.c | filp->f_op = &write_fifo_fops; |
filp | 87 | fs/fifo.c | filp->f_op = &rdwr_fifo_fops; |
filp | 192 | fs/hpfs/hpfs_fs.c | static int hpfs_dir_read(struct inode *inode, struct file *filp, |
filp | 194 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, |
filp | 878 | fs/hpfs/hpfs_fs.c | static int hpfs_file_read(struct inode *inode, struct file *filp, |
filp | 892 | fs/hpfs/hpfs_fs.c | if (count > inode->i_size - (off_t) filp->f_pos) |
filp | 893 | fs/hpfs/hpfs_fs.c | count = inode->i_size - filp->f_pos; |
filp | 901 | fs/hpfs/hpfs_fs.c | q = filp->f_pos >> 9; |
filp | 902 | fs/hpfs/hpfs_fs.c | r = filp->f_pos & 511; |
filp | 938 | fs/hpfs/hpfs_fs.c | if (count > inode->i_size - (off_t) filp->f_pos - n + n0) |
filp | 939 | fs/hpfs/hpfs_fs.c | count = inode->i_size - filp->f_pos - n + n0; |
filp | 947 | fs/hpfs/hpfs_fs.c | filp->f_pos += n; |
filp | 1364 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, void * dirent, |
filp | 1384 | fs/hpfs/hpfs_fs.c | switch ((long) filp->f_pos) { |
filp | 1389 | fs/hpfs/hpfs_fs.c | if (filldir(dirent, ".", 1, filp->f_pos, inode->i_ino) < 0) |
filp | 1391 | fs/hpfs/hpfs_fs.c | filp->f_pos = -1; |
filp | 1395 | fs/hpfs/hpfs_fs.c | if (filldir(dirent, "..", 2, filp->f_pos, inode->i_hpfs_parent_dir) < 0) |
filp | 1397 | fs/hpfs/hpfs_fs.c | filp->f_pos = 1; |
filp | 1402 | fs/hpfs/hpfs_fs.c | old_pos = filp->f_pos; |
filp | 1403 | fs/hpfs/hpfs_fs.c | de = map_pos_dirent(inode, &filp->f_pos, &qbh); |
filp | 1405 | fs/hpfs/hpfs_fs.c | filp->f_pos = -2; |
filp | 1416 | fs/hpfs/hpfs_fs.c | filp->f_pos = old_pos; |
filp | 1579 | fs/hpfs/hpfs_fs.c | static int hpfs_dir_read(struct inode *inode, struct file *filp, |
filp | 17 | fs/ioctl.c | static int file_ioctl(struct file *filp,unsigned int cmd,unsigned long arg) |
filp | 24 | fs/ioctl.c | if (filp->f_inode->i_op == NULL) |
filp | 26 | fs/ioctl.c | if (filp->f_inode->i_op->bmap == NULL) |
filp | 32 | fs/ioctl.c | block = filp->f_inode->i_op->bmap(filp->f_inode,block); |
filp | 36 | fs/ioctl.c | if (filp->f_inode->i_sb == NULL) |
filp | 41 | fs/ioctl.c | put_fs_long(filp->f_inode->i_sb->s_blocksize, |
filp | 48 | fs/ioctl.c | put_fs_long(filp->f_inode->i_size - filp->f_pos, |
filp | 52 | fs/ioctl.c | if (filp->f_op && filp->f_op->ioctl) |
filp | 53 | fs/ioctl.c | return filp->f_op->ioctl(filp->f_inode, filp, cmd, arg); |
filp | 60 | fs/ioctl.c | struct file * filp; |
filp | 63 | fs/ioctl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
filp | 77 | fs/ioctl.c | filp->f_flags |= O_NONBLOCK; |
filp | 79 | fs/ioctl.c | filp->f_flags &= ~O_NONBLOCK; |
filp | 86 | fs/ioctl.c | filp->f_flags |= O_SYNC; |
filp | 88 | fs/ioctl.c | filp->f_flags &= ~O_SYNC; |
filp | 92 | fs/ioctl.c | if (filp->f_inode && S_ISREG(filp->f_inode->i_mode)) |
filp | 93 | fs/ioctl.c | return file_ioctl(filp, cmd, arg); |
filp | 95 | fs/ioctl.c | if (filp->f_op && filp->f_op->ioctl) |
filp | 96 | fs/ioctl.c | return filp->f_op->ioctl(filp->f_inode, filp, cmd, arg); |
filp | 111 | fs/isofs/dir.c | static int do_isofs_readdir(struct inode *inode, struct file *filp, |
filp | 125 | fs/isofs/dir.c | offset = filp->f_pos & (bufsize - 1); |
filp | 126 | fs/isofs/dir.c | block = isofs_bmap(inode, filp->f_pos >> bufbits); |
filp | 131 | fs/isofs/dir.c | if (!(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size))) |
filp | 134 | fs/isofs/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 138 | fs/isofs/dir.c | block, offset, filp->f_pos); |
filp | 144 | fs/isofs/dir.c | block = isofs_bmap(inode, (filp->f_pos) >> bufbits); |
filp | 147 | fs/isofs/dir.c | bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size); |
filp | 164 | fs/isofs/dir.c | filp->f_pos = ((filp->f_pos & ~(ISOFS_BLOCK_SIZE - 1)) |
filp | 167 | fs/isofs/dir.c | block = isofs_bmap(inode, (filp->f_pos) >> bufbits); |
filp | 170 | fs/isofs/dir.c | bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size); |
filp | 184 | fs/isofs/dir.c | block = isofs_bmap(inode, (filp->f_pos + de_len) >> bufbits); |
filp | 187 | fs/isofs/dir.c | bh = breada(inode->i_dev, block, bufsize, filp->f_pos+de_len, inode->i_size); |
filp | 197 | fs/isofs/dir.c | if (filldir(dirent, ".", 1, filp->f_pos, inode->i_ino) < 0) |
filp | 199 | fs/isofs/dir.c | filp->f_pos += de_len; |
filp | 208 | fs/isofs/dir.c | if (filldir(dirent, "..", 2, filp->f_pos, inode_number) < 0) |
filp | 210 | fs/isofs/dir.c | filp->f_pos += de_len; |
filp | 221 | fs/isofs/dir.c | filp->f_pos += de_len; |
filp | 233 | fs/isofs/dir.c | rrflag = filldir(dirent, name, len, filp->f_pos, inode_number); |
filp | 239 | fs/isofs/dir.c | filp->f_pos += de_len; |
filp | 245 | fs/isofs/dir.c | if (filldir(dirent, tmpname, len, filp->f_pos, inode_number) < 0) |
filp | 248 | fs/isofs/dir.c | filp->f_pos += de_len; |
filp | 252 | fs/isofs/dir.c | if (filldir(dirent, name, len, filp->f_pos, inode_number) < 0) |
filp | 256 | fs/isofs/dir.c | filp->f_pos += de_len; |
filp | 268 | fs/isofs/dir.c | static int isofs_readdir(struct inode *inode, struct file *filp, |
filp | 283 | fs/isofs/dir.c | result = do_isofs_readdir(inode, filp, dirent, filldir, tmpname, tmpde); |
filp | 123 | fs/isofs/file.c | static int isofs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 143 | fs/isofs/file.c | if (filp->f_pos > inode->i_size) |
filp | 146 | fs/isofs/file.c | left = inode->i_size - filp->f_pos; |
filp | 152 | fs/isofs/file.c | block = filp->f_pos >> ISOFS_BUFFER_BITS(inode); |
filp | 153 | fs/isofs/file.c | offset = (inode->u.isofs_i.i_first_extent + filp->f_pos) |
filp | 229 | fs/isofs/file.c | filp->f_pos += chars; |
filp | 259 | fs/isofs/file.c | filp->f_reada = 1; |
filp | 71 | fs/locks.c | static int flock_make_lock(struct file *filp, struct file_lock *fl, |
filp | 73 | fs/locks.c | static int posix_make_lock(struct file *filp, struct file_lock *fl, |
filp | 80 | fs/locks.c | static int flock_lock_file(struct file *filp, struct file_lock *caller, |
filp | 82 | fs/locks.c | static int posix_lock_file(struct file *filp, struct file_lock *caller, |
filp | 101 | fs/locks.c | struct file *filp; |
filp | 103 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
filp | 106 | fs/locks.c | if (!flock_make_lock(filp, &file_lock, cmd)) |
filp | 109 | fs/locks.c | if ((file_lock.fl_type != F_UNLCK) && !(filp->f_mode & 3)) |
filp | 112 | fs/locks.c | return (flock_lock_file(filp, &file_lock, cmd & LOCK_UN ? 0 : cmd & LOCK_NB ? 0 : 1)); |
filp | 122 | fs/locks.c | struct file *filp; |
filp | 125 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
filp | 136 | fs/locks.c | if (!posix_make_lock(filp, &file_lock, &flock)) |
filp | 139 | fs/locks.c | for (fl = filp->f_inode->i_flock; fl != NULL; fl = fl->fl_next) { |
filp | 164 | fs/locks.c | struct file *filp; |
filp | 172 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
filp | 180 | fs/locks.c | if (!posix_make_lock(filp, &file_lock, &flock)) |
filp | 185 | fs/locks.c | if (!(filp->f_mode & 1)) |
filp | 189 | fs/locks.c | if (!(filp->f_mode & 2)) |
filp | 194 | fs/locks.c | if (!(filp->f_mode & 3)) |
filp | 201 | fs/locks.c | return (posix_lock_file(filp, &file_lock, cmd == F_SETLKW)); |
filp | 206 | fs/locks.c | void locks_remove_locks(struct task_struct *task, struct file *filp) |
filp | 215 | fs/locks.c | before = &filp->f_inode->i_flock; |
filp | 218 | fs/locks.c | ((fl->fl_flags == F_FLOCK) && (fl->fl_file == filp) && |
filp | 219 | fs/locks.c | (filp->f_count == 1))) |
filp | 231 | fs/locks.c | static int posix_make_lock(struct file *filp, struct file_lock *fl, |
filp | 236 | fs/locks.c | if (!filp->f_inode) /* just in case */ |
filp | 260 | fs/locks.c | start = filp->f_pos; |
filp | 263 | fs/locks.c | start = filp->f_inode->i_size; |
filp | 276 | fs/locks.c | fl->fl_file = filp; |
filp | 286 | fs/locks.c | static int flock_make_lock(struct file *filp, struct file_lock *fl, |
filp | 289 | fs/locks.c | if (!filp->f_inode) /* just in case */ |
filp | 309 | fs/locks.c | fl->fl_file = filp; |
filp | 413 | fs/locks.c | static int flock_lock_file(struct file *filp, struct file_lock *caller, |
filp | 424 | fs/locks.c | before = &filp->f_inode->i_flock; |
filp | 444 | fs/locks.c | for (fl = filp->f_inode->i_flock; fl != NULL; fl = fl->fl_next) { |
filp | 465 | fs/locks.c | locks_insert_lock(&filp->f_inode->i_flock, new_fl); |
filp | 481 | fs/locks.c | static int posix_lock_file(struct file *filp, struct file_lock *caller, |
filp | 493 | fs/locks.c | for (fl = filp->f_inode->i_flock; fl != NULL; fl = fl->fl_next) { |
filp | 514 | fs/locks.c | before = &filp->f_inode->i_flock; |
filp | 21 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 62 | fs/minix/dir.c | static int minix_readdir(struct inode * inode, struct file * filp, |
filp | 73 | fs/minix/dir.c | if (filp->f_pos & (info->s_dirsize - 1)) |
filp | 75 | fs/minix/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 76 | fs/minix/dir.c | offset = filp->f_pos & 1023; |
filp | 77 | fs/minix/dir.c | bh = minix_bread(inode,(filp->f_pos)>>BLOCK_SIZE_BITS,0); |
filp | 79 | fs/minix/dir.c | filp->f_pos += 1024-offset; |
filp | 86 | fs/minix/dir.c | if (filldir(dirent, de->name, size, filp->f_pos, de->inode) < 0) { |
filp | 92 | fs/minix/dir.c | filp->f_pos += info->s_dirsize; |
filp | 93 | fs/minix/dir.c | } while (offset < 1024 && filp->f_pos < inode->i_size); |
filp | 70 | fs/minix/file.c | static int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 88 | fs/minix/file.c | offset = filp->f_pos; |
filp | 104 | fs/minix/file.c | if (filp->f_reada) { |
filp | 162 | fs/minix/file.c | filp->f_pos += chars; |
filp | 187 | fs/minix/file.c | filp->f_reada = 1; |
filp | 193 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 209 | fs/minix/file.c | if (filp->f_flags & O_APPEND) |
filp | 212 | fs/minix/file.c | pos = filp->f_pos; |
filp | 247 | fs/minix/file.c | filp->f_pos = pos; |
filp | 26 | fs/msdos/dir.c | static int msdos_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
filp | 64 | fs/msdos/dir.c | struct file *filp, |
filp | 73 | fs/msdos/dir.c | unsigned long oldpos = filp->f_pos; |
filp | 83 | fs/msdos/dir.c | filp->f_pos++; |
filp | 86 | fs/msdos/dir.c | filp->f_pos = 0; |
filp | 88 | fs/msdos/dir.c | if (filp->f_pos & (sizeof(struct msdos_dir_entry)-1)) |
filp | 91 | fs/msdos/dir.c | while ((ino = msdos_get_entry(inode,&filp->f_pos,&bh,&de)) > -1) { |
filp | 120 | fs/msdos/dir.c | filp->f_pos = oldpos; |
filp | 125 | fs/msdos/dir.c | oldpos = filp->f_pos; |
filp | 155 | fs/msdos/file.c | struct file *filp, |
filp | 176 | fs/msdos/file.c | if (filp->f_pos >= inode->i_size || count <= 0) return 0; |
filp | 186 | fs/msdos/file.c | PRINTK (("#### ino %ld pos %ld size %ld count %d\n",inode->i_ino,filp->f_pos,inode->i_size,count)); |
filp | 192 | fs/msdos/file.c | int count_max = (filp->f_pos & (SECTOR_SIZE-1)) + count; |
filp | 194 | fs/msdos/file.c | pre.file_sector = filp->f_pos >> SECTOR_BITS; |
filp | 197 | fs/msdos/file.c | if (filp->f_reada || !MSDOS_I(inode)->i_binary){ |
filp | 212 | fs/msdos/file.c | while ((left_in_file = inode->i_size - filp->f_pos) > 0 |
filp | 227 | fs/msdos/file.c | PRINTK (("file_read pos %ld nblist %d %d %d\n",filp->f_pos,pre.nblist,pre.fetched,count)); |
filp | 234 | fs/msdos/file.c | offset = filp->f_pos & (SECTOR_SIZE-1); |
filp | 241 | fs/msdos/file.c | filp->f_pos += size; |
filp | 245 | fs/msdos/file.c | filp->f_pos++; |
filp | 247 | fs/msdos/file.c | filp->f_pos = inode->i_size; |
filp | 260 | fs/msdos/file.c | filp->f_reada = 1; /* Will be reset if a lseek is done */ |
filp | 269 | fs/msdos/file.c | struct file *filp, |
filp | 294 | fs/msdos/file.c | if (filp->f_flags & O_APPEND) filp->f_pos = inode->i_size; |
filp | 298 | fs/msdos/file.c | while (!(sector = msdos_smap(inode,filp->f_pos >> SECTOR_BITS))) |
filp | 304 | fs/msdos/file.c | offset = filp->f_pos & (SECTOR_SIZE-1); |
filp | 309 | fs/msdos/file.c | || filp->f_pos + size >= inode->i_size)){ |
filp | 327 | fs/msdos/file.c | to = (char *) bh->b_data+(filp->f_pos & (SECTOR_SIZE-1)); |
filp | 346 | fs/msdos/file.c | filp->f_pos += written; |
filp | 347 | fs/msdos/file.c | if (filp->f_pos > inode->i_size) { |
filp | 348 | fs/msdos/file.c | inode->i_size = filp->f_pos; |
filp | 51 | fs/msdos/mmap.c | struct file filp; |
filp | 55 | fs/msdos/mmap.c | filp.f_reada = 0; |
filp | 56 | fs/msdos/mmap.c | filp.f_pos = pos; |
filp | 61 | fs/msdos/mmap.c | cur_read = msdos_file_read (inode,&filp,(char*)page |
filp | 25 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *, struct file *filp, char *buf, |
filp | 76 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
filp | 92 | fs/nfs/dir.c | static int nfs_readdir(struct inode *inode, struct file *filp, |
filp | 136 | fs/nfs/dir.c | if (filp->f_pos == c_entry[i].cookie) { |
filp | 152 | fs/nfs/dir.c | filp->f_pos, NFS_READDIR_CACHE_SIZE, c_entry); |
filp | 170 | fs/nfs/dir.c | if (filldir(dirent, entry->name, strlen(entry->name), filp->f_pos, entry->fileid) < 0) |
filp | 172 | fs/nfs/dir.c | filp->f_pos = nextpos; |
filp | 36 | fs/nfs/inode.c | extern int close_fp(struct file *filp); |
filp | 83 | fs/nfs/inode.c | struct file *filp; |
filp | 99 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
filp | 105 | fs/nfs/inode.c | if (!S_ISSOCK(filp->f_inode->i_mode)) { |
filp | 111 | fs/nfs/inode.c | filp->f_count++; |
filp | 120 | fs/nfs/inode.c | server->file = filp; |
filp | 156 | fs/nfs/inode.c | sock = &((filp->f_inode)->u.socket_i); |
filp | 167 | fs/nfs/inode.c | if ((server->rsock = rpc_makesock(filp)) == NULL) { |
filp | 544 | fs/open.c | int close_fp(struct file *filp) |
filp | 548 | fs/open.c | if (filp->f_count == 0) { |
filp | 552 | fs/open.c | inode = filp->f_inode; |
filp | 554 | fs/open.c | locks_remove_locks(current, filp); |
filp | 555 | fs/open.c | if (filp->f_count > 1) { |
filp | 556 | fs/open.c | filp->f_count--; |
filp | 559 | fs/open.c | if (filp->f_op && filp->f_op->release) |
filp | 560 | fs/open.c | filp->f_op->release(inode,filp); |
filp | 561 | fs/open.c | filp->f_count--; |
filp | 562 | fs/open.c | filp->f_inode = NULL; |
filp | 563 | fs/open.c | if (filp->f_mode & 2) put_write_access(inode); |
filp | 570 | fs/open.c | struct file * filp; |
filp | 575 | fs/open.c | if (!(filp = current->files->fd[fd])) |
filp | 578 | fs/open.c | return (close_fp (filp)); |
filp | 25 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 30 | fs/pipe.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 72 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 94 | fs/pipe.c | if (filp->f_flags & O_NONBLOCK) |
filp | 124 | fs/pipe.c | static int bad_pipe_r(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 129 | fs/pipe.c | static int bad_pipe_w(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 134 | fs/pipe.c | static int pipe_ioctl(struct inode *pino, struct file * filp, |
filp | 150 | fs/pipe.c | static int pipe_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 176 | fs/pipe.c | static int fifo_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 203 | fs/pipe.c | static int connect_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 208 | fs/pipe.c | if (filp->f_flags & O_NONBLOCK) |
filp | 215 | fs/pipe.c | filp->f_op = &read_fifo_fops; |
filp | 216 | fs/pipe.c | return pipe_read(inode,filp,buf,count); |
filp | 219 | fs/pipe.c | static int connect_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 224 | fs/pipe.c | filp->f_op = &read_fifo_fops; |
filp | 247 | fs/pipe.c | static void pipe_read_release(struct inode * inode, struct file * filp) |
filp | 253 | fs/pipe.c | static void pipe_write_release(struct inode * inode, struct file * filp) |
filp | 259 | fs/pipe.c | static void pipe_rdwr_release(struct inode * inode, struct file * filp) |
filp | 119 | fs/proc/fd.c | static int proc_readfd(struct inode * inode, struct file * filp, |
filp | 136 | fs/proc/fd.c | for (fd = filp->f_pos; fd < 2; fd++, filp->f_pos++) { |
filp | 152 | fs/proc/fd.c | for (fd -= 2 ; fd < NR_OPEN; fd++, filp->f_pos++) { |
filp | 427 | fs/proc/root.c | int proc_readdir(struct inode * inode, struct file * filp, |
filp | 440 | fs/proc/root.c | i = filp->f_pos; |
filp | 446 | fs/proc/root.c | filp->f_pos++; |
filp | 452 | fs/proc/root.c | filp->f_pos++; |
filp | 468 | fs/proc/root.c | if (filldir(dirent, de->name, de->namelen, filp->f_pos, ino | de->low_ino) < 0) |
filp | 470 | fs/proc/root.c | filp->f_pos++; |
filp | 479 | fs/proc/root.c | static int proc_root_readdir(struct inode * inode, struct file * filp, |
filp | 486 | fs/proc/root.c | nr = filp->f_pos; |
filp | 488 | fs/proc/root.c | int error = proc_readdir(inode, filp, dirent, filldir); |
filp | 491 | fs/proc/root.c | filp->f_pos = nr = FIRST_PROCESS_ENTRY; |
filp | 494 | fs/proc/root.c | for (nr -= FIRST_PROCESS_ENTRY; nr < NR_TASKS; nr++, filp->f_pos++) { |
filp | 508 | fs/proc/root.c | if (filldir(dirent, buf+j, NUMBUF-j, filp->f_pos, (pid << 16) + PROC_PID_INO) < 0) |
filp | 28 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count); |
filp | 31 | fs/smbfs/dir.c | smb_readdir(struct inode *inode, struct file *filp, |
filp | 125 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count) |
filp | 162 | fs/smbfs/dir.c | smb_readdir(struct inode *inode, struct file *filp, |
filp | 170 | fs/smbfs/dir.c | DDPRINTK("smb_readdir: filp->f_pos = %d\n", (int)filp->f_pos); |
filp | 202 | fs/smbfs/dir.c | if (filp->f_pos == 0) { |
filp | 208 | fs/smbfs/dir.c | if (filp->f_pos == c_entry[i].f_pos) { |
filp | 222 | fs/smbfs/dir.c | filp->f_pos, SMB_READDIR_CACHE_SIZE, |
filp | 293 | fs/smbfs/dir.c | || (entry->f_pos != filp->f_pos)) { |
filp | 298 | fs/smbfs/dir.c | filp->f_pos += 1; |
filp | 32 | fs/smbfs/inode.c | extern int close_fp(struct file *filp); |
filp | 186 | fs/smbfs/inode.c | struct file *filp; |
filp | 201 | fs/smbfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
filp | 206 | fs/smbfs/inode.c | if (!S_ISSOCK(filp->f_inode->i_mode)) { |
filp | 221 | fs/smbfs/inode.c | filp->f_count += 1; |
filp | 234 | fs/smbfs/inode.c | server->sock_file = filp; |
filp | 308 | fs/smbfs/inode.c | filp->f_count -= 1; |
filp | 25 | fs/smbfs/ioctl.c | smb_ioctl (struct inode * inode, struct file * filp, |
filp | 676 | fs/super.c | struct file filp; |
filp | 687 | fs/super.c | memset(&filp, 0, sizeof(filp)); |
filp | 690 | fs/super.c | filp.f_inode = &d_inode; |
filp | 692 | fs/super.c | filp.f_mode = 1; /* read only */ |
filp | 694 | fs/super.c | filp.f_mode = 3; /* read write */ |
filp | 695 | fs/super.c | retval = blkdev_open(&d_inode, &filp); |
filp | 698 | fs/super.c | filp.f_mode = 1; |
filp | 699 | fs/super.c | retval = blkdev_open(&d_inode, &filp); |
filp | 28 | fs/sysv/dir.c | static int sysv_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 69 | fs/sysv/dir.c | static int sysv_readdir(struct inode * inode, struct file * filp, |
filp | 80 | fs/sysv/dir.c | if ((unsigned long)(filp->f_pos) % SYSV_DIRSIZE) |
filp | 82 | fs/sysv/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 83 | fs/sysv/dir.c | offset = filp->f_pos & sb->sv_block_size_1; |
filp | 84 | fs/sysv/dir.c | bh = sysv_file_bread(inode, filp->f_pos >> sb->sv_block_size_bits, 0); |
filp | 86 | fs/sysv/dir.c | filp->f_pos += sb->sv_block_size - offset; |
filp | 90 | fs/sysv/dir.c | while (offset < sb->sv_block_size && filp->f_pos < inode->i_size) { |
filp | 102 | fs/sysv/dir.c | inode->i_ino, (off_t) filp->f_pos, sde.inode); |
filp | 105 | fs/sysv/dir.c | if (filldir(dirent, sde.name, i, filp->f_pos, sde.inode) < 0) { |
filp | 111 | fs/sysv/dir.c | filp->f_pos += SYSV_DIRSIZE; |
filp | 76 | fs/sysv/file.c | int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 96 | fs/sysv/file.c | offset = filp->f_pos; |
filp | 112 | fs/sysv/file.c | if (filp->f_reada) { |
filp | 170 | fs/sysv/file.c | filp->f_pos += chars; |
filp | 195 | fs/sysv/file.c | filp->f_reada = 1; |
filp | 203 | fs/sysv/file.c | static int sysv_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 226 | fs/sysv/file.c | if (filp->f_flags & O_APPEND) |
filp | 229 | fs/sysv/file.c | pos = filp->f_pos; |
filp | 266 | fs/sysv/file.c | filp->f_pos = pos; |
filp | 34 | fs/umsdos/dir.c | int UMSDOS_dir_read(struct inode *inode,struct file *filp,char *buf, |
filp | 85 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
filp | 96 | fs/umsdos/dir.c | if (filp->f_pos == UMSDOS_SPECIAL_DIRFPOS |
filp | 111 | fs/umsdos/dir.c | filp->f_pos++; |
filp | 113 | fs/umsdos/dir.c | }else if (filp->f_pos < 2 |
filp | 114 | fs/umsdos/dir.c | || (dir != dir->i_sb->s_mounted && filp->f_pos == 32)){ |
filp | 154 | fs/umsdos/dir.c | int last_f_pos = filp->f_pos; |
filp | 159 | fs/umsdos/dir.c | ret = msdos_readdir(dir,filp,&bufk,umsdos_dir_once); |
filp | 160 | fs/umsdos/dir.c | if (last_f_pos > 0 && filp->f_pos > last_f_pos) filp->f_pos = UMSDOS_SPECIAL_DIRFPOS; |
filp | 165 | fs/umsdos/dir.c | off_t start_fpos = filp->f_pos; |
filp | 166 | fs/umsdos/dir.c | if (filp->f_pos <= UMSDOS_SPECIAL_DIRFPOS+1) filp->f_pos = 0; |
filp | 167 | fs/umsdos/dir.c | PRINTK (("f_pos %lu i_size %ld\n",filp->f_pos,emd_dir->i_size)); |
filp | 169 | fs/umsdos/dir.c | while (filp->f_pos < emd_dir->i_size){ |
filp | 171 | fs/umsdos/dir.c | off_t cur_f_pos = filp->f_pos; |
filp | 172 | fs/umsdos/dir.c | if (umsdos_emd_dir_readentry (emd_dir,filp,&entry)!=0){ |
filp | 225 | fs/umsdos/dir.c | filp->f_pos = cur_f_pos; |
filp | 252 | fs/umsdos/dir.c | if (filp->f_pos == 0) filp->f_pos = start_fpos; |
filp | 257 | fs/umsdos/dir.c | PRINTK (("read dir %p pos %Ld ret %d\n",dir,filp->f_pos,ret)); |
filp | 267 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
filp | 281 | fs/umsdos/dir.c | ret = umsdos_readdir_x (dir,filp,&bufk,0,&entry,1,umsdos_dir_once); |
filp | 286 | fs/umsdos/dir.c | ,filp->f_pos)); |
filp | 486 | fs/umsdos/dir.c | struct file filp; |
filp | 487 | fs/umsdos/dir.c | filp.f_reada = 1; |
filp | 488 | fs/umsdos/dir.c | filp.f_pos = 0; |
filp | 491 | fs/umsdos/dir.c | msdos_readdir (dir,&filp,&bufk,umsdos_dir_search); |
filp | 500 | fs/umsdos/dir.c | struct file filp; |
filp | 501 | fs/umsdos/dir.c | filp.f_reada = 1; |
filp | 502 | fs/umsdos/dir.c | filp.f_pos = UMSDOS_SPECIAL_DIRFPOS; |
filp | 505 | fs/umsdos/dir.c | if (umsdos_readdir_x(dir,&filp,&bufk |
filp | 753 | fs/umsdos/dir.c | struct file filp; |
filp | 754 | fs/umsdos/dir.c | filp.f_reada = 1; |
filp | 755 | fs/umsdos/dir.c | filp.f_pos = 0; |
filp | 757 | fs/umsdos/dir.c | if (umsdos_file_read_kmem (hlink,&filp,path,hlink->i_size) |
filp | 30 | fs/umsdos/emd.c | struct file *filp, |
filp | 37 | fs/umsdos/emd.c | ret = msdos_file_read(inode,filp,buf,count); |
filp | 46 | fs/umsdos/emd.c | struct file *filp, |
filp | 53 | fs/umsdos/emd.c | ret = msdos_file_write(inode,filp,buf,count); |
filp | 67 | fs/umsdos/emd.c | struct file *filp, |
filp | 72 | fs/umsdos/emd.c | filp->f_flags = 0; |
filp | 73 | fs/umsdos/emd.c | written = umsdos_file_write_kmem (emd_dir,filp,buf,count); |
filp | 83 | fs/umsdos/emd.c | struct file *filp, |
filp | 89 | fs/umsdos/emd.c | filp->f_flags = 0; |
filp | 90 | fs/umsdos/emd.c | sizeread = umsdos_file_read_kmem (emd_dir,filp,buf,count); |
filp | 93 | fs/umsdos/emd.c | ,filp->f_pos,sizeread,count); |
filp | 145 | fs/umsdos/emd.c | struct file *filp, |
filp | 148 | fs/umsdos/emd.c | int ret = umsdos_emd_dir_read(emd_dir,filp,(char*)entry,UMSDOS_REC_SIZE); |
filp | 153 | fs/umsdos/emd.c | ret = umsdos_emd_dir_read(emd_dir,filp |
filp | 171 | fs/umsdos/emd.c | struct file filp; |
filp | 194 | fs/umsdos/emd.c | filp.f_pos = info->f_pos; |
filp | 195 | fs/umsdos/emd.c | filp.f_reada = 0; |
filp | 196 | fs/umsdos/emd.c | ret = umsdos_emd_dir_write(emd_dir,&filp,(char*)entry,info->recsize); |
filp | 211 | fs/umsdos/emd.c | struct file filp; |
filp | 233 | fs/umsdos/emd.c | remain = inode->i_size - buf->filp.f_pos; |
filp | 236 | fs/umsdos/emd.c | ret = umsdos_emd_dir_read (inode,&buf->filp,buf->buffer+mustmove |
filp | 294 | fs/umsdos/emd.c | buf.filp.f_pos = 0; |
filp | 295 | fs/umsdos/emd.c | buf.filp.f_reada = 1; |
filp | 302 | fs/umsdos/emd.c | int file_pos = buf.filp.f_pos - buf.size + buf.pos; |
filp | 451 | fs/umsdos/emd.c | struct file filp; |
filp | 453 | fs/umsdos/emd.c | filp.f_pos = 0; |
filp | 454 | fs/umsdos/emd.c | filp.f_reada = 1; |
filp | 455 | fs/umsdos/emd.c | filp.f_flags = O_RDONLY; |
filp | 457 | fs/umsdos/emd.c | while (filp.f_pos < emd_dir->i_size){ |
filp | 459 | fs/umsdos/emd.c | if (umsdos_emd_dir_readentry(emd_dir,&filp,&entry)!=0){ |
filp | 34 | fs/umsdos/file.c | struct file *filp, |
filp | 39 | fs/umsdos/file.c | int ret = msdos_file_read(inode,filp,buf,count); |
filp | 51 | fs/umsdos/file.c | struct file *filp, |
filp | 55 | fs/umsdos/file.c | return msdos_file_write(inode,filp,buf,count); |
filp | 320 | fs/umsdos/inode.c | struct file filp; |
filp | 322 | fs/umsdos/inode.c | filp.f_pos = inode->u.umsdos_i.pos; |
filp | 323 | fs/umsdos/inode.c | filp.f_reada = 0; |
filp | 324 | fs/umsdos/inode.c | PRINTK (("pos = %d ",filp.f_pos)); |
filp | 327 | fs/umsdos/inode.c | ret = umsdos_emd_dir_read (emd_owner,&filp,(char*)&entry |
filp | 344 | fs/umsdos/inode.c | filp.f_pos = inode->u.umsdos_i.pos; |
filp | 345 | fs/umsdos/inode.c | ret = umsdos_emd_dir_write (emd_owner,&filp,(char*)&entry |
filp | 60 | fs/umsdos/ioctl.c | struct file *filp, |
filp | 124 | fs/umsdos/ioctl.c | msdos_readdir(dir,filp,&bufk,umsdos_ioctl_fill); |
filp | 141 | fs/umsdos/ioctl.c | if (filp->f_pos >= emd_dir->i_size){ |
filp | 146 | fs/umsdos/ioctl.c | off_t f_pos = filp->f_pos; |
filp | 147 | fs/umsdos/ioctl.c | ret = umsdos_emd_dir_readentry (emd_dir,filp,&entry); |
filp | 449 | fs/umsdos/namei.c | struct file filp; |
filp | 450 | fs/umsdos/namei.c | filp.f_pos = 0; |
filp | 452 | fs/umsdos/namei.c | ret = umsdos_file_write_kmem (inode,&filp,symname,len); |
filp | 69 | fs/umsdos/rdir.c | struct file *filp, |
filp | 79 | fs/umsdos/rdir.c | return msdos_readdir(dir,filp,&bufk,rdir_filldir); |
filp | 38 | fs/umsdos/symlink.c | struct file filp; |
filp | 39 | fs/umsdos/symlink.c | filp.f_pos = 0; |
filp | 40 | fs/umsdos/symlink.c | filp.f_reada = 0; |
filp | 42 | fs/umsdos/symlink.c | if ((*msdos_read) (inode, &filp, buffer,ret) != ret){ |
filp | 64 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
filp | 69 | fs/xiafs/dir.c | static int xiafs_readdir(struct inode * inode, struct file * filp, |
filp | 80 | fs/xiafs/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 81 | fs/xiafs/dir.c | offset = filp->f_pos & (XIAFS_ZSIZE(inode->i_sb) - 1); |
filp | 82 | fs/xiafs/dir.c | bh = xiafs_bread(inode, filp->f_pos >> XIAFS_ZSIZE_BITS(inode->i_sb),0); |
filp | 84 | fs/xiafs/dir.c | filp->f_pos += XIAFS_ZSIZE(inode->i_sb)-offset; |
filp | 96 | fs/xiafs/dir.c | while (offset < XIAFS_ZSIZE(inode->i_sb) && filp->f_pos < inode->i_size) { |
filp | 112 | fs/xiafs/dir.c | if (filldir(dirent, de->d_name, de->d_name_len, filp->f_pos, de->d_ino) < 0) { |
filp | 118 | fs/xiafs/dir.c | filp->f_pos += de->d_rec_len; |
filp | 74 | fs/xiafs/file.c | xiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 91 | fs/xiafs/file.c | offset = filp->f_pos; |
filp | 103 | fs/xiafs/file.c | if (filp->f_reada) { |
filp | 160 | fs/xiafs/file.c | filp->f_pos += chars; |
filp | 185 | fs/xiafs/file.c | filp->f_reada = 1; |
filp | 194 | fs/xiafs/file.c | xiafs_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 213 | fs/xiafs/file.c | if (filp->f_flags & O_APPEND) |
filp | 216 | fs/xiafs/file.c | pos = filp->f_pos; |
filp | 252 | fs/xiafs/file.c | filp->f_pos = pos; |
filp | 63 | include/linux/ext_fs.h | extern int ext_open(struct inode * inode, struct file * filp); |
filp | 64 | include/linux/ext_fs.h | extern void ext_release(struct inode * inode, struct file * filp); |
filp | 400 | include/linux/fs.h | extern int blkdev_open(struct inode * inode, struct file * filp); |
filp | 406 | include/linux/fs.h | extern int chrdev_open(struct inode * inode, struct file * filp); |
filp | 492 | include/linux/fs.h | extern int close_fp(struct file *filp); |
filp | 167 | include/linux/iso_fs.h | extern int isofs_open(struct inode * inode, struct file * filp); |
filp | 168 | include/linux/iso_fs.h | extern void isofs_release(struct inode * inode, struct file * filp); |
filp | 174 | include/linux/msdos_fs.h | extern int msdos_readdir (struct inode *inode, struct file *filp, |
filp | 115 | include/linux/smb_fs.h | int smb_ioctl (struct inode * inode, struct file * filp, |
filp | 311 | include/linux/tty.h | extern void tty_unhangup(struct file *filp); |
filp | 312 | include/linux/tty.h | extern int tty_hung_up_p(struct file * filp); |
filp | 325 | include/linux/tty.h | extern int rs_open(struct tty_struct * tty, struct file * filp); |
filp | 329 | include/linux/tty.h | extern int pty_open(struct tty_struct * tty, struct file * filp); |
filp | 333 | include/linux/tty.h | extern int con_open(struct tty_struct * tty, struct file * filp); |
filp | 124 | include/linux/tty_driver.h | int (*open)(struct tty_struct * tty, struct file * filp); |
filp | 125 | include/linux/tty_driver.h | void (*close)(struct tty_struct * tty, struct file * filp); |
filp | 371 | kernel/exit.c | struct file * filp = files->fd[i]; |
filp | 372 | kernel/exit.c | if (!filp) |
filp | 375 | kernel/exit.c | close_fp(filp); |
filp | 1057 | mm/swap.c | struct file filp; |
filp | 1102 | mm/swap.c | memset(&filp, 0, sizeof(filp)); |
filp | 1103 | mm/swap.c | filp.f_inode = inode; |
filp | 1104 | mm/swap.c | filp.f_mode = 3; /* read write */ |
filp | 1106 | mm/swap.c | if( !blkdev_open(inode, &filp) && |
filp | 1107 | mm/swap.c | filp.f_op && filp.f_op->release){ |
filp | 1108 | mm/swap.c | filp.f_op->release(inode,&filp); |
filp | 1109 | mm/swap.c | filp.f_op->release(inode,&filp); |
filp | 1138 | mm/swap.c | struct file filp; |
filp | 1141 | mm/swap.c | memset(&filp, 0, sizeof(filp)); |
filp | 1179 | mm/swap.c | filp.f_inode = swap_inode; |
filp | 1180 | mm/swap.c | filp.f_mode = 3; /* read write */ |
filp | 1181 | mm/swap.c | error = blkdev_open(swap_inode, &filp); |
filp | 1262 | mm/swap.c | if(filp.f_op && filp.f_op->release) |
filp | 1263 | mm/swap.c | filp.f_op->release(filp.f_inode,&filp); |
filp | 84 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on); |
filp | 395 | net/socket.c | void sock_close(struct inode *inode, struct file *filp) |
filp | 403 | net/socket.c | sock_fasync(inode, filp, 0); |
filp | 411 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on) |
filp | 432 | net/socket.c | if(fa->fa_file==filp) |
filp | 443 | net/socket.c | fna->fa_file=filp; |
filp | 1105 | net/socket.c | int sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |
filp | 1109 | net/socket.c | sock = socki_lookup (filp->f_inode); |