tag | line | file | source code |
filp | 33 | arch/sparc/kernel/sunos_ioctl.c | struct file *filp; |
filp | 36 | arch/sparc/kernel/sunos_ioctl.c | if (fd >= NR_OPEN || !(filp = current->files->fd [fd])) |
filp | 3159 | drivers/block/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
filp | 3164 | drivers/block/floppy.c | #define IOCTL_ALLOWED (filp && (filp->f_mode & IOCTL_MODE_BIT)) |
filp | 3356 | drivers/block/floppy.c | static int floppy_read(struct inode * inode, struct file * filp, |
filp | 3364 | drivers/block/floppy.c | return block_read(inode, filp, buf, count); |
filp | 3367 | drivers/block/floppy.c | static int floppy_write(struct inode * inode, struct file * filp, |
filp | 3381 | drivers/block/floppy.c | block = (filp->f_pos + count) >> 9; |
filp | 3383 | drivers/block/floppy.c | ret= block_write(inode, filp, buf, count); |
filp | 3387 | drivers/block/floppy.c | static void floppy_release(struct inode * inode, struct file * filp) |
filp | 3393 | drivers/block/floppy.c | if (!filp || (filp->f_mode & (2 | OPEN_WRITE_BIT))) |
filp | 3396 | drivers/block/floppy.c | block_fsync(inode,filp); |
filp | 3412 | drivers/block/floppy.c | #define RETERR(x) do{floppy_release(inode,filp); return -(x);}while(0) |
filp | 3414 | drivers/block/floppy.c | static int floppy_open(struct inode * inode, struct file * filp) |
filp | 3421 | drivers/block/floppy.c | if (!filp) { |
filp | 3444 | drivers/block/floppy.c | (UDRS->fd_ref && (filp->f_flags & O_EXCL))) |
filp | 3450 | drivers/block/floppy.c | if (filp->f_flags & O_EXCL) |
filp | 3490 | drivers/block/floppy.c | if ((filp->f_mode & 2) || (permission(inode,2) == 0)) |
filp | 3491 | drivers/block/floppy.c | filp->f_mode |= IOCTL_MODE_BIT; |
filp | 3492 | drivers/block/floppy.c | if (filp->f_mode & 2) |
filp | 3493 | drivers/block/floppy.c | filp->f_mode |= OPEN_WRITE_BIT; |
filp | 3498 | drivers/block/floppy.c | if (filp->f_flags & O_NDELAY) |
filp | 3500 | drivers/block/floppy.c | if (filp->f_mode & 3) { |
filp | 3506 | 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 | 3581 | drivers/block/ide-tape.c | int idetape_blkdev_open (struct inode *inode, struct file *filp, ide_drive_t *drive) |
filp | 3604 | drivers/block/ide-tape.c | void idetape_blkdev_release (struct inode *inode, struct file *filp, ide_drive_t *drive) |
filp | 4086 | drivers/block/ide-tape.c | int idetape_chrdev_open (struct inode *inode, struct file *filp) |
filp | 4148 | drivers/block/ide-tape.c | void idetape_chrdev_release (struct inode *inode, struct file *filp) |
filp | 1762 | drivers/block/ide.c | static int ide_open(struct inode * inode, struct file * filp) |
filp | 1777 | drivers/block/ide.c | return ide_cdrom_open (inode, filp, drive); |
filp | 1781 | drivers/block/ide.c | return idetape_blkdev_open (inode, filp, drive); |
filp | 667 | drivers/block/ide.h | int idetape_blkdev_open (struct inode *inode, struct file *filp, ide_drive_t *drive); |
filp | 668 | drivers/block/ide.h | void idetape_blkdev_release (struct inode *inode, struct file *filp, ide_drive_t *drive); |
filp | 219 | drivers/block/rd.c | static int rd_open(struct inode * inode, struct file * filp) |
filp | 225 | drivers/block/rd.c | filp->f_op = &initrd_fops; |
filp | 239 | drivers/block/rd.c | static void rd_release(struct inode * inode, struct file * filp) |
filp | 236 | drivers/cdrom/cdu31a.c | static int scd_open(struct inode *inode, struct file *filp); |
filp | 2727 | drivers/cdrom/cdu31a.c | struct file *filp) |
filp | 2735 | drivers/cdrom/cdu31a.c | if ((filp) && filp->f_mode & 2) |
filp | 2828 | drivers/cdrom/cdu31a.c | if (filp) |
filp | 2850 | drivers/cdrom/cdu31a.c | struct file *filp) |
filp | 192 | drivers/cdrom/sonycd535.c | static int cdu_open(struct inode *inode, struct file *filp); |
filp | 1390 | drivers/cdrom/sonycd535.c | struct file *filp) |
filp | 1438 | drivers/cdrom/sonycd535.c | struct file *filp) |
filp | 831 | drivers/char/apm_bios.c | static int do_ioctl(struct inode * inode, struct file *filp, |
filp | 836 | drivers/char/apm_bios.c | as = filp->private_data; |
filp | 862 | drivers/char/apm_bios.c | static void do_release(struct inode * inode, struct file * filp) |
filp | 866 | drivers/char/apm_bios.c | as = filp->private_data; |
filp | 867 | drivers/char/apm_bios.c | filp->private_data = NULL; |
filp | 897 | drivers/char/apm_bios.c | static int do_open(struct inode * inode, struct file * filp) |
filp | 913 | drivers/char/apm_bios.c | filp->private_data = as; |
filp | 96 | drivers/char/atixlmouse.c | static int fasync_mouse(struct inode *inode, struct file *filp, int on) |
filp | 100 | drivers/char/atixlmouse.c | retval = fasync_helper(inode, filp, on, &mouse.fasync); |
filp | 107 | drivers/char/busmouse.c | static int fasync_mouse(struct inode *inode, struct file *filp, int on) |
filp | 111 | drivers/char/busmouse.c | retval = fasync_helper(inode, filp, on, &mouse.fasyncptr); |
filp | 2244 | drivers/char/console.c | int con_open(struct tty_struct *tty, struct file * filp) |
filp | 2316 | drivers/char/cyclades.c | cy_close(struct tty_struct * tty, struct file * filp) |
filp | 2337 | drivers/char/cyclades.c | if (tty_hung_up_p(filp)) { |
filp | 2443 | drivers/char/cyclades.c | block_til_ready(struct tty_struct *tty, struct file * filp, |
filp | 2492 | drivers/char/cyclades.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 2540 | drivers/char/cyclades.c | if (tty_hung_up_p(filp) |
filp | 2572 | drivers/char/cyclades.c | if (!tty_hung_up_p(filp)){ |
filp | 2594 | drivers/char/cyclades.c | cy_open(struct tty_struct *tty, struct file * filp) |
filp | 2645 | drivers/char/cyclades.c | retval = block_til_ready(tty, filp, info); |
filp | 629 | drivers/char/istallion.c | static int stli_open(struct tty_struct *tty, struct file *filp); |
filp | 630 | drivers/char/istallion.c | static void stli_close(struct tty_struct *tty, struct file *filp); |
filp | 661 | drivers/char/istallion.c | static int stli_waitcarrier(stlibrd_t *brdp, stliport_t *portp, struct file *filp); |
filp | 867 | drivers/char/istallion.c | static int stli_open(struct tty_struct *tty, struct file *filp) |
filp | 875 | drivers/char/istallion.c | printk("stli_open(tty=%x,filp=%x): device=%x\n", (int) tty, (int) filp, tty->device); |
filp | 969 | drivers/char/istallion.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 973 | drivers/char/istallion.c | if ((rc = stli_waitcarrier(brdp, portp, filp)) != 0) |
filp | 994 | drivers/char/istallion.c | static void stli_close(struct tty_struct *tty, struct file *filp) |
filp | 1001 | drivers/char/istallion.c | printk("stli_close(tty=%x,filp=%x)\n", (int) tty, (int) filp); |
filp | 1010 | drivers/char/istallion.c | if (tty_hung_up_p(filp)) { |
filp | 1378 | drivers/char/istallion.c | static int stli_waitcarrier(stlibrd_t *brdp, stliport_t *portp, struct file *filp) |
filp | 1384 | drivers/char/istallion.c | printk("stli_waitcarrier(brdp=%x,portp=%x,filp=%x)\n", (int) brdp, (int) portp, (int) filp); |
filp | 1401 | drivers/char/istallion.c | if (tty_hung_up_p(filp) || ((portp->flags & ASYNC_INITIALIZED) == 0)) { |
filp | 1421 | drivers/char/istallion.c | if (! tty_hung_up_p(filp)) |
filp | 330 | drivers/char/mem.c | static int memory_open(struct inode * inode, struct file * filp) |
filp | 334 | drivers/char/mem.c | filp->f_op = &ram_fops; |
filp | 337 | drivers/char/mem.c | filp->f_op = &mem_fops; |
filp | 340 | drivers/char/mem.c | filp->f_op = &kmem_fops; |
filp | 343 | drivers/char/mem.c | filp->f_op = &null_fops; |
filp | 346 | drivers/char/mem.c | filp->f_op = &port_fops; |
filp | 349 | drivers/char/mem.c | filp->f_op = &zero_fops; |
filp | 352 | drivers/char/mem.c | filp->f_op = &full_fops; |
filp | 355 | drivers/char/mem.c | filp->f_op = &random_fops; |
filp | 358 | drivers/char/mem.c | filp->f_op = &urandom_fops; |
filp | 363 | drivers/char/mem.c | if (filp->f_op && filp->f_op->open) |
filp | 364 | drivers/char/mem.c | return filp->f_op->open(inode,filp); |
filp | 83 | drivers/char/msbusmouse.c | static int fasync_mouse(struct inode *inode, struct file *filp, int on) |
filp | 87 | drivers/char/msbusmouse.c | retval = fasync_helper(inode, filp, on, &mouse.fasyncptr); |
filp | 218 | drivers/char/pcxx.c | static int pcxx_waitcarrier(struct tty_struct *tty,struct file *filp,struct channel *info) |
filp | 251 | drivers/char/pcxx.c | if(tty_hung_up_p(filp) || (info->asyncflags & ASYNC_INITIALIZED) == 0) { |
filp | 271 | drivers/char/pcxx.c | if(!tty_hung_up_p(filp)) |
filp | 280 | drivers/char/pcxx.c | int pcxe_open(struct tty_struct *tty, struct file * filp) |
filp | 373 | drivers/char/pcxx.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 378 | drivers/char/pcxx.c | if ((retval = pcxx_waitcarrier(tty, filp, ch)) != 0) |
filp | 435 | drivers/char/pcxx.c | static void pcxe_close(struct tty_struct * tty, struct file * filp) |
filp | 444 | drivers/char/pcxx.c | if(tty_hung_up_p(filp)) { |
filp | 125 | drivers/char/psaux.c | static int fasync_aux(struct inode *inode, struct file *filp, int on); |
filp | 288 | drivers/char/psaux.c | static int fasync_aux(struct inode *inode, struct file *filp, int on) |
filp | 292 | drivers/char/psaux.c | retval = fasync_helper(inode, filp, on, &queue->fasync); |
filp | 64 | drivers/char/pty.c | static void pty_close(struct tty_struct * tty, struct file * filp) |
filp | 184 | drivers/char/pty.c | int pty_open(struct tty_struct *tty, struct file * filp) |
filp | 211 | drivers/char/pty.c | if (filp->f_flags & O_NDELAY) |
filp | 214 | drivers/char/scc.c | int scc_open(struct tty_struct *tty, struct file *filp); |
filp | 215 | drivers/char/scc.c | static void scc_close(struct tty_struct *tty, struct file *filp); |
filp | 1955 | drivers/char/scc.c | int scc_open(struct tty_struct *tty, struct file * filp) |
filp | 2010 | drivers/char/scc.c | scc_close(struct tty_struct *tty, struct file * filp) |
filp | 2078 | drivers/char/serial.c | static void rs_close(struct tty_struct *tty, struct file * filp) |
filp | 2089 | drivers/char/serial.c | if (tty_hung_up_p(filp)) { |
filp | 2212 | drivers/char/serial.c | static int block_til_ready(struct tty_struct *tty, struct file * filp, |
filp | 2223 | drivers/char/serial.c | if (tty_hung_up_p(filp) || |
filp | 2260 | drivers/char/serial.c | if ((filp->f_flags & O_NONBLOCK) || |
filp | 2290 | drivers/char/serial.c | if (!tty_hung_up_p(filp)) |
filp | 2302 | drivers/char/serial.c | if (tty_hung_up_p(filp) || |
filp | 2331 | drivers/char/serial.c | if (!tty_hung_up_p(filp)) |
filp | 2350 | drivers/char/serial.c | int rs_open(struct tty_struct *tty, struct file * filp) |
filp | 2388 | drivers/char/serial.c | retval = block_til_ready(tty, filp, info); |
filp | 476 | drivers/char/stallion.c | static int stl_open(struct tty_struct *tty, struct file *filp); |
filp | 477 | drivers/char/stallion.c | static void stl_close(struct tty_struct *tty, struct file *filp); |
filp | 515 | drivers/char/stallion.c | static int stl_waitcarrier(stlport_t *portp, struct file *filp); |
filp | 664 | drivers/char/stallion.c | static int stl_open(struct tty_struct *tty, struct file *filp) |
filp | 672 | drivers/char/stallion.c | printk("stl_open(tty=%x,filp=%x): device=%x\n", (int) tty, (int) filp, tty->device); |
filp | 755 | drivers/char/stallion.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 759 | drivers/char/stallion.c | if ((rc = stl_waitcarrier(portp, filp)) != 0) |
filp | 785 | drivers/char/stallion.c | static int stl_waitcarrier(stlport_t *portp, struct file *filp) |
filp | 791 | drivers/char/stallion.c | printk("stl_waitcarrier(portp=%x,filp=%x)\n", (int) portp, (int) filp); |
filp | 805 | drivers/char/stallion.c | if (tty_hung_up_p(filp) || ((portp->flags & ASYNC_INITIALIZED) == 0)) { |
filp | 825 | drivers/char/stallion.c | if (! tty_hung_up_p(filp)) |
filp | 835 | drivers/char/stallion.c | static void stl_close(struct tty_struct *tty, struct file *filp) |
filp | 841 | drivers/char/stallion.c | printk("stl_close(tty=%x,filp=%x)\n", (int) tty, (int) filp); |
filp | 850 | drivers/char/stallion.c | if (tty_hung_up_p(filp)) { |
filp | 1919 | drivers/char/tpqic02.c | static int qic02_tape_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 1923 | drivers/char/tpqic02.c | unsigned short flags = filp->f_flags; |
filp | 1935 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
filp | 2055 | drivers/char/tpqic02.c | filp->f_pos += bytes_done; |
filp | 2094 | drivers/char/tpqic02.c | static int qic02_tape_write(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 2098 | drivers/char/tpqic02.c | unsigned short flags = filp->f_flags; |
filp | 2109 | drivers/char/tpqic02.c | MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags); |
filp | 2222 | drivers/char/tpqic02.c | filp->f_pos += bytes_done; |
filp | 2246 | drivers/char/tpqic02.c | static int qic02_tape_open(struct inode * inode, struct file * filp) |
filp | 2249 | drivers/char/tpqic02.c | unsigned short flags = filp->f_flags; |
filp | 2270 | drivers/char/tpqic02.c | if (filp->f_count>1) { /* filp->f_count==1 for the first open() */ |
filp | 2432 | drivers/char/tpqic02.c | static void qic02_tape_release(struct inode * inode, struct file * filp) |
filp | 2554 | drivers/char/tpqic02.c | static int qic02_tape_ioctl(struct inode * inode, struct file * filp, |
filp | 120 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on); |
filp | 325 | drivers/char/tty_io.c | static int hung_up_tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 372 | drivers/char/tty_io.c | struct file * filp; |
filp | 378 | drivers/char/tty_io.c | for (filp = first_file, i=0; i<nr_files; i++, filp = filp->f_next) { |
filp | 379 | drivers/char/tty_io.c | if (!filp->f_count) |
filp | 381 | drivers/char/tty_io.c | if (filp->private_data != tty) |
filp | 383 | drivers/char/tty_io.c | if (filp->f_inode |
filp | 384 | drivers/char/tty_io.c | && filp->f_inode->i_rdev == CONSOLE_DEV) |
filp | 386 | drivers/char/tty_io.c | if (filp->f_op != &tty_fops) |
filp | 388 | drivers/char/tty_io.c | tty_fasync(filp->f_inode, filp, 0); |
filp | 389 | drivers/char/tty_io.c | filp->f_op = fops; |
filp | 456 | drivers/char/tty_io.c | int tty_hung_up_p(struct file * filp) |
filp | 458 | drivers/char/tty_io.c | return (filp->f_op == &hung_up_tty_fops); |
filp | 974 | drivers/char/tty_io.c | static void release_dev(struct file * filp) |
filp | 981 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
filp | 982 | drivers/char/tty_io.c | if (tty_paranoia_check(tty, filp->f_inode->i_rdev, "release_dev")) |
filp | 987 | drivers/char/tty_io.c | tty_fasync(filp->f_inode, filp, 0); |
filp | 1056 | drivers/char/tty_io.c | tty->driver.close(tty, filp); |
filp | 1145 | drivers/char/tty_io.c | filp->private_data = 0; |
filp | 1165 | drivers/char/tty_io.c | static int tty_open(struct inode * inode, struct file * filp) |
filp | 1173 | drivers/char/tty_io.c | noctty = filp->f_flags & O_NOCTTY; |
filp | 1190 | drivers/char/tty_io.c | filp->private_data = tty; |
filp | 1199 | drivers/char/tty_io.c | retval = tty->driver.open(tty, filp); |
filp | 1211 | drivers/char/tty_io.c | release_dev(filp); |
filp | 1220 | drivers/char/tty_io.c | filp->f_op = &tty_fops; |
filp | 1240 | drivers/char/tty_io.c | static void tty_release(struct inode * inode, struct file * filp) |
filp | 1242 | drivers/char/tty_io.c | release_dev(filp); |
filp | 1245 | drivers/char/tty_io.c | static int tty_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 1249 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
filp | 1254 | drivers/char/tty_io.c | return (tty->ldisc.select)(tty, inode, filp, sel_type, wait); |
filp | 1263 | drivers/char/tty_io.c | int fasync_helper(struct inode * inode, struct file * filp, int on, struct fasync_struct **fapp) |
filp | 1269 | drivers/char/tty_io.c | if (fa->fa_file == filp) |
filp | 1280 | drivers/char/tty_io.c | fa->fa_file = filp; |
filp | 1298 | drivers/char/tty_io.c | static int tty_fasync(struct inode * inode, struct file * filp, int on) |
filp | 1303 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
filp | 1307 | drivers/char/tty_io.c | retval = fasync_helper(inode, filp, on, &tty->fasync); |
filp | 1314 | drivers/char/tty_io.c | if (filp->f_owner == 0) { |
filp | 1316 | drivers/char/tty_io.c | filp->f_owner = -tty->pgrp; |
filp | 1318 | drivers/char/tty_io.c | filp->f_owner = current->pid; |
filp | 1630 | drivers/char/tty_io.c | struct file *filp; |
filp | 1647 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
filp | 1648 | drivers/char/tty_io.c | if (filp && (filp->f_op == &tty_fops) && |
filp | 1649 | 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 | 770 | drivers/isdn/isdn_tty.c | static int isdn_tty_block_til_ready(struct tty_struct *tty, struct file *filp, modem_info * info) |
filp | 781 | drivers/isdn/isdn_tty.c | if (tty_hung_up_p(filp) || |
filp | 816 | drivers/isdn/isdn_tty.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 844 | drivers/isdn/isdn_tty.c | if (!(tty_hung_up_p(filp))) |
filp | 850 | drivers/isdn/isdn_tty.c | if (tty_hung_up_p(filp) || |
filp | 881 | drivers/isdn/isdn_tty.c | if (!tty_hung_up_p(filp)) |
filp | 900 | drivers/isdn/isdn_tty.c | static int isdn_tty_open(struct tty_struct *tty, struct file *filp) |
filp | 928 | drivers/isdn/isdn_tty.c | retval = isdn_tty_block_til_ready(tty, filp, info); |
filp | 954 | drivers/isdn/isdn_tty.c | static void isdn_tty_close(struct tty_struct *tty, struct file *filp) |
filp | 964 | drivers/isdn/isdn_tty.c | if (tty_hung_up_p(filp)) { |
filp | 198 | drivers/net/ppp.c | struct file *filp, int sel_type, select_table * wait); |
filp | 2583 | drivers/net/ppp.c | struct file *filp, int sel_type, select_table * wait) |
filp | 2620 | drivers/net/ppp.c | if (tty_hung_up_p (filp)) |
filp | 3204 | drivers/scsi/53c7,8xx.c | debugger_user_write (struct inode *inode,struct file *filp, |
filp | 3257 | drivers/scsi/53c7,8xx.c | debugger_user_read (struct inode *inode,struct file *filp, |
filp | 94 | drivers/scsi/sd.c | static int sd_open(struct inode * inode, struct file * filp) |
filp | 125 | drivers/scsi/sd.c | if ( (rscsi_disks[target].write_prot) && (filp->f_mode & 2) ) { |
filp | 88 | drivers/scsi/sg.c | static int sg_open(struct inode * inode, struct file * filp) |
filp | 91 | drivers/scsi/sg.c | int flags=filp->f_flags; |
filp | 150 | drivers/scsi/sg.c | static void sg_close(struct inode * inode, struct file * filp) |
filp | 199 | drivers/scsi/sg.c | static int sg_read(struct inode *inode,struct file *filp,char *buf,int count) |
filp | 215 | drivers/scsi/sg.c | if (filp->f_flags & O_NONBLOCK) |
filp | 295 | drivers/scsi/sg.c | static int sg_write(struct inode *inode,struct file *filp,const char *buf,int count) |
filp | 322 | drivers/scsi/sg.c | if (filp->f_flags & O_NONBLOCK) |
filp | 404 | drivers/scsi/sg.c | if (!(SCpnt=allocate_device(NULL,device->device, !(filp->f_flags & O_NONBLOCK)))) |
filp | 523 | drivers/scsi/sr.c | static int sr_open(struct inode * inode, struct file * filp) |
filp | 528 | drivers/scsi/sr.c | if (filp->f_mode & 2) |
filp | 398 | drivers/scsi/st.c | flush_buffer(struct inode * inode, struct file * filp, int seek_next) |
filp | 440 | drivers/scsi/st.c | result = st_int_ioctl(inode, filp, MTBSR, backspace); |
filp | 454 | drivers/scsi/st.c | scsi_tape_open(struct inode * inode, struct file * filp) |
filp | 493 | drivers/scsi/st.c | flags = filp->f_flags; |
filp | 662 | drivers/scsi/st.c | scsi_tape_close(struct inode * inode, struct file * filp) |
filp | 681 | drivers/scsi/st.c | dev, (long)(filp->f_pos)); |
filp | 718 | drivers/scsi/st.c | flush_buffer(inode, filp, 0); |
filp | 726 | drivers/scsi/st.c | st_int_ioctl(inode, filp, MTREW, 1); |
filp | 729 | drivers/scsi/st.c | st_int_ioctl(inode, filp, MTUNLOCK, 0); |
filp | 747 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 785 | drivers/scsi/st.c | !st_int_ioctl(inode, filp, MTLOCK, 0)) |
filp | 789 | drivers/scsi/st.c | retval = flush_buffer(inode, filp, 0); |
filp | 889 | drivers/scsi/st.c | filp->f_pos += do_count - transfer; |
filp | 928 | drivers/scsi/st.c | filp->f_pos += do_count; |
filp | 944 | drivers/scsi/st.c | filp->f_pos += count; |
filp | 1001 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 1030 | drivers/scsi/st.c | !st_int_ioctl(inode, filp, MTLOCK, 0)) |
filp | 1034 | drivers/scsi/st.c | transfer = flush_buffer(inode, filp, 0); |
filp | 1205 | drivers/scsi/st.c | filp->f_pos += transfer; |
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 | 254 | fs/buffer.c | int file_fsync (struct inode *inode, struct file *filp) |
filp | 211 | fs/devices.c | int blkdev_open(struct inode * inode, struct file * filp) |
filp | 214 | fs/devices.c | filp->f_op = get_blkfops(MAJOR(inode->i_rdev)); |
filp | 215 | fs/devices.c | if (filp->f_op != NULL){ |
filp | 217 | fs/devices.c | if (filp->f_op->open != NULL) |
filp | 218 | fs/devices.c | ret = filp->f_op->open(inode,filp); |
filp | 271 | fs/devices.c | int chrdev_open(struct inode * inode, struct file * filp) |
filp | 274 | fs/devices.c | filp->f_op = get_chrfops(MAJOR(inode->i_rdev)); |
filp | 275 | fs/devices.c | if (filp->f_op != NULL){ |
filp | 277 | fs/devices.c | if (filp->f_op->open != NULL) |
filp | 278 | fs/devices.c | ret = filp->f_op->open(inode,filp); |
filp | 218 | fs/dquot.c | struct file *filp = dquot->dq_mnt->mnt_quotas[type]; |
filp | 221 | fs/dquot.c | if (!(dquot->dq_flags & DQ_MOD) || (filp == (struct file *)NULL)) |
filp | 225 | fs/dquot.c | if (filp->f_op->lseek) { |
filp | 226 | fs/dquot.c | if (filp->f_op->lseek(filp->f_inode, filp, |
filp | 233 | fs/dquot.c | filp->f_pos = dqoff(dquot->dq_id); |
filp | 236 | fs/dquot.c | if (filp->f_op->write(filp->f_inode, filp, |
filp | 248 | fs/dquot.c | struct file *filp = dquot->dq_mnt->mnt_quotas[type]; |
filp | 251 | fs/dquot.c | if (filp == (struct file *)NULL) |
filp | 255 | fs/dquot.c | if (filp->f_op->lseek) { |
filp | 256 | fs/dquot.c | if (filp->f_op->lseek(filp->f_inode, filp, |
filp | 263 | fs/dquot.c | filp->f_pos = dqoff(dquot->dq_id); |
filp | 266 | fs/dquot.c | filp->f_op->read(filp->f_inode, filp, (char *)&dquot->dq_dqb, sizeof(struct dqblk)); |
filp | 952 | fs/dquot.c | struct file *filp = (struct file *)NULL; |
filp | 973 | fs/dquot.c | if ((filp = get_empty_filp()) != (struct file *)NULL) { |
filp | 974 | fs/dquot.c | filp->f_mode = (O_RDWR + 1) & O_ACCMODE; |
filp | 975 | fs/dquot.c | filp->f_flags = O_RDWR; |
filp | 976 | fs/dquot.c | filp->f_inode = inode; |
filp | 977 | fs/dquot.c | filp->f_pos = 0; |
filp | 978 | fs/dquot.c | filp->f_reada = 0; |
filp | 979 | fs/dquot.c | filp->f_op = inode->i_op->default_file_ops; |
filp | 980 | fs/dquot.c | if (filp->f_op->read || filp->f_op->write) { |
filp | 982 | fs/dquot.c | if (filp->f_op && filp->f_op->open) |
filp | 983 | fs/dquot.c | error = filp->f_op->open(inode, filp); |
filp | 985 | fs/dquot.c | vfsmnt->mnt_quotas[type] = filp; |
filp | 998 | fs/dquot.c | filp->f_count--; |
filp | 23 | fs/ext/dir.c | static int ext_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 66 | fs/ext/dir.c | static int ext_readdir(struct inode * inode, struct file * filp, |
filp | 77 | fs/ext/dir.c | if ((filp->f_pos & 7) != 0) |
filp | 80 | fs/ext/dir.c | while (!error && filp->f_pos < inode->i_size) { |
filp | 81 | fs/ext/dir.c | offset = filp->f_pos & 1023; |
filp | 82 | fs/ext/dir.c | bh = ext_bread(inode,(filp->f_pos)>>BLOCK_SIZE_BITS,0); |
filp | 84 | fs/ext/dir.c | filp->f_pos += 1024-offset; |
filp | 95 | fs/ext/dir.c | while (offset < 1024 && filp->f_pos < inode->i_size) { |
filp | 98 | fs/ext/dir.c | (de->rec_len + (off_t) filp->f_pos - 1) / 1024 > ((off_t) filp->f_pos / 1024)) { |
filp | 104 | fs/ext/dir.c | filp->f_pos += 1024-offset; |
filp | 105 | fs/ext/dir.c | if (filp->f_pos > inode->i_size) |
filp | 106 | fs/ext/dir.c | filp->f_pos = inode->i_size; |
filp | 110 | fs/ext/dir.c | error = filldir(dirent, de->name, de->name_len, filp->f_pos, de->inode); |
filp | 115 | fs/ext/dir.c | filp->f_pos += de->rec_len; |
filp | 75 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 93 | fs/ext/file.c | offset = filp->f_pos; |
filp | 109 | fs/ext/file.c | if (filp->f_reada) { |
filp | 167 | fs/ext/file.c | filp->f_pos += chars; |
filp | 192 | fs/ext/file.c | filp->f_reada = 1; |
filp | 200 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 219 | fs/ext/file.c | if (filp->f_flags & O_APPEND) |
filp | 222 | fs/ext/file.c | pos = filp->f_pos; |
filp | 259 | 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 | 100 | fs/ext2/dir.c | static int ext2_readdir (struct inode * inode, struct file * filp, |
filp | 117 | fs/ext2/dir.c | offset = filp->f_pos & (sb->s_blocksize - 1); |
filp | 119 | fs/ext2/dir.c | while (!error && !stored && filp->f_pos < inode->i_size) { |
filp | 120 | fs/ext2/dir.c | blk = (filp->f_pos) >> EXT2_BLOCK_SIZE_BITS(sb); |
filp | 125 | fs/ext2/dir.c | inode->i_ino, (unsigned long)filp->f_pos); |
filp | 126 | fs/ext2/dir.c | filp->f_pos += sb->s_blocksize - offset; |
filp | 154 | fs/ext2/dir.c | if (filp->f_version != inode->i_version) { |
filp | 169 | fs/ext2/dir.c | filp->f_pos = (filp->f_pos & ~(sb->s_blocksize - 1)) |
filp | 171 | fs/ext2/dir.c | filp->f_version = inode->i_version; |
filp | 174 | fs/ext2/dir.c | while (!error && filp->f_pos < inode->i_size |
filp | 181 | fs/ext2/dir.c | filp->f_pos = (filp->f_pos & (sb->s_blocksize - 1)) |
filp | 197 | fs/ext2/dir.c | error = filldir(dirent, de->name, de->name_len, filp->f_pos, de->inode); |
filp | 204 | fs/ext2/dir.c | filp->f_pos += de->rec_len; |
filp | 83 | fs/ext2/file.c | static int ext2_file_write (struct inode * inode, struct file * filp, |
filp | 114 | fs/ext2/file.c | if (filp->f_flags & O_APPEND) |
filp | 117 | fs/ext2/file.c | pos = filp->f_pos; |
filp | 125 | fs/ext2/file.c | if (filp->f_flags & O_SYNC) |
filp | 164 | fs/ext2/file.c | if (filp->f_flags & O_SYNC) |
filp | 195 | fs/ext2/file.c | if (filp->f_flags & O_SYNC) |
filp | 198 | fs/ext2/file.c | filp->f_pos = pos; |
filp | 208 | fs/ext2/file.c | static void ext2_release_file (struct inode * inode, struct file * filp) |
filp | 210 | 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 | 32 | fs/fat/dir.c | static int fat_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
filp | 96 | fs/fat/dir.c | struct file *filp, |
filp | 109 | fs/fat/dir.c | unsigned long oldpos = filp->f_pos; |
filp | 127 | fs/fat/dir.c | filp->f_pos++; |
filp | 130 | fs/fat/dir.c | filp->f_pos = 0; |
filp | 132 | fs/fat/dir.c | if (filp->f_pos & (sizeof(struct msdos_dir_entry)-1)) |
filp | 138 | fs/fat/dir.c | ino = fat_get_entry(inode,&filp->f_pos,&bh,&de); |
filp | 143 | fs/fat/dir.c | oldpos = filp->f_pos; |
filp | 201 | fs/fat/dir.c | ino = fat_get_entry(inode,&filp->f_pos,&bh,&de); |
filp | 268 | fs/fat/dir.c | spos = filp->f_pos - sizeof(struct msdos_dir_entry); |
filp | 273 | fs/fat/dir.c | filp->f_pos = oldpos; |
filp | 283 | fs/fat/dir.c | spos = filp->f_pos - sizeof(struct msdos_dir_entry); |
filp | 285 | fs/fat/dir.c | filp->f_pos = oldpos; |
filp | 289 | fs/fat/dir.c | oldpos = filp->f_pos; |
filp | 294 | fs/fat/dir.c | oldpos = filp->f_pos; |
filp | 296 | fs/fat/dir.c | ino = fat_get_entry(inode,&filp->f_pos,&bh,&de); |
filp | 321 | fs/fat/dir.c | struct file *filp, |
filp | 325 | fs/fat/dir.c | return fat_readdirx(inode, filp, dirent, fat_filldir, filldir, |
filp | 380 | fs/fat/dir.c | int fat_dir_ioctl(struct inode * inode, struct file * filp, |
filp | 393 | fs/fat/dir.c | return fat_readdirx(inode,filp,(void *)arg, |
filp | 399 | fs/fat/dir.c | return fat_readdirx(inode,filp,(void *)arg, |
filp | 156 | fs/fat/file.c | struct file *filp, |
filp | 177 | fs/fat/file.c | if (filp->f_pos >= inode->i_size || count <= 0) return 0; |
filp | 187 | fs/fat/file.c | PRINTK (("#### ino %ld pos %ld size %ld count %d\n",inode->i_ino,filp->f_pos,inode->i_size,count)); |
filp | 193 | fs/fat/file.c | int count_max = (filp->f_pos & (SECTOR_SIZE-1)) + count; |
filp | 195 | fs/fat/file.c | pre.file_sector = filp->f_pos >> SECTOR_BITS; |
filp | 198 | fs/fat/file.c | if (filp->f_reada || !MSDOS_I(inode)->i_binary){ |
filp | 213 | fs/fat/file.c | while ((left_in_file = inode->i_size - filp->f_pos) > 0 |
filp | 228 | fs/fat/file.c | PRINTK (("file_read pos %ld nblist %d %d %d\n",filp->f_pos,pre.nblist,pre.fetched,count)); |
filp | 235 | fs/fat/file.c | offset = filp->f_pos & (SECTOR_SIZE-1); |
filp | 242 | fs/fat/file.c | filp->f_pos += size; |
filp | 246 | fs/fat/file.c | filp->f_pos++; |
filp | 248 | fs/fat/file.c | filp->f_pos = inode->i_size; |
filp | 261 | fs/fat/file.c | filp->f_reada = 1; /* Will be reset if a lseek is done */ |
filp | 270 | fs/fat/file.c | struct file *filp, |
filp | 297 | fs/fat/file.c | if (filp->f_flags & O_APPEND) filp->f_pos = inode->i_size; |
filp | 301 | fs/fat/file.c | while (!(sector = fat_smap(inode,filp->f_pos >> SECTOR_BITS))) |
filp | 307 | fs/fat/file.c | offset = filp->f_pos & (SECTOR_SIZE-1); |
filp | 312 | fs/fat/file.c | || filp->f_pos + size >= inode->i_size)){ |
filp | 330 | fs/fat/file.c | to = (char *) bh->b_data+(filp->f_pos & (SECTOR_SIZE-1)); |
filp | 349 | fs/fat/file.c | update_vm_cache(inode, filp->f_pos, bh->b_data + (filp->f_pos & (SECTOR_SIZE-1)), written); |
filp | 350 | fs/fat/file.c | filp->f_pos += written; |
filp | 351 | fs/fat/file.c | if (filp->f_pos > inode->i_size) { |
filp | 352 | fs/fat/file.c | inode->i_size = filp->f_pos; |
filp | 52 | fs/fat/mmap.c | struct file filp; |
filp | 56 | fs/fat/mmap.c | filp.f_reada = 0; |
filp | 57 | fs/fat/mmap.c | filp.f_pos = pos; |
filp | 62 | fs/fat/mmap.c | cur_read = fat_file_read (inode,&filp,(char*)page |
filp | 58 | fs/fcntl.c | struct file * filp; |
filp | 62 | fs/fcntl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
filp | 76 | fs/fcntl.c | return filp->f_flags; |
filp | 82 | fs/fcntl.c | if (IS_APPEND(filp->f_inode) && !(arg & O_APPEND)) |
filp | 84 | fs/fcntl.c | if ((arg & FASYNC) && !(filp->f_flags & FASYNC) && |
filp | 85 | fs/fcntl.c | filp->f_op->fasync) |
filp | 86 | fs/fcntl.c | filp->f_op->fasync(filp->f_inode, filp, 1); |
filp | 87 | fs/fcntl.c | if (!(arg & FASYNC) && (filp->f_flags & FASYNC) && |
filp | 88 | fs/fcntl.c | filp->f_op->fasync) |
filp | 89 | fs/fcntl.c | filp->f_op->fasync(filp->f_inode, filp, 0); |
filp | 90 | fs/fcntl.c | filp->f_flags &= ~(O_APPEND | O_NONBLOCK | FASYNC); |
filp | 91 | fs/fcntl.c | filp->f_flags |= arg & (O_APPEND | O_NONBLOCK | |
filp | 108 | fs/fcntl.c | return filp->f_owner; |
filp | 150 | fs/fcntl.c | filp->f_owner = arg; |
filp | 151 | fs/fcntl.c | if (S_ISSOCK (filp->f_inode->i_mode)) |
filp | 152 | fs/fcntl.c | sock_fcntl (filp, F_SETOWN, arg); |
filp | 156 | fs/fcntl.c | if (S_ISSOCK (filp->f_inode->i_mode)) |
filp | 158 | 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 | 129 | fs/file_table.c | struct file *filp; |
filp | 132 | fs/file_table.c | for (filp = first_file, cnt = 0; cnt < nr_files; cnt++, filp = filp->f_next) { |
filp | 133 | fs/file_table.c | if (!filp->f_count || !filp->f_inode || filp->f_inode->i_dev != dev) |
filp | 135 | fs/file_table.c | if (filp->f_mode & FMODE_WRITE && filp->f_inode->i_sb->dq_op) { |
filp | 136 | fs/file_table.c | filp->f_inode->i_sb->dq_op->initialize(filp->f_inode, type); |
filp | 137 | fs/file_table.c | filp->f_inode->i_flags |= S_WRITE; |
filp | 144 | fs/file_table.c | struct file *filp; |
filp | 147 | fs/file_table.c | for (filp = first_file, cnt = 0; cnt < nr_files; cnt++, filp = filp->f_next) { |
filp | 148 | fs/file_table.c | if (!filp->f_count || !filp->f_inode || filp->f_inode->i_dev != dev) |
filp | 150 | fs/file_table.c | if (IS_WRITABLE(filp->f_inode)) { |
filp | 151 | fs/file_table.c | filp->f_inode->i_dquot[type] = NODQUOT; |
filp | 152 | fs/file_table.c | filp->f_inode->i_flags &= ~S_WRITE; |
filp | 188 | fs/hpfs/hpfs_fs.c | static int hpfs_dir_read(struct inode *inode, struct file *filp, |
filp | 190 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, |
filp | 881 | fs/hpfs/hpfs_fs.c | static int hpfs_file_read(struct inode *inode, struct file *filp, |
filp | 895 | fs/hpfs/hpfs_fs.c | if (count > inode->i_size - (off_t) filp->f_pos) |
filp | 896 | fs/hpfs/hpfs_fs.c | count = inode->i_size - filp->f_pos; |
filp | 904 | fs/hpfs/hpfs_fs.c | q = filp->f_pos >> 9; |
filp | 905 | fs/hpfs/hpfs_fs.c | r = filp->f_pos & 511; |
filp | 941 | fs/hpfs/hpfs_fs.c | if (count > inode->i_size - (off_t) filp->f_pos - n + n0) |
filp | 942 | fs/hpfs/hpfs_fs.c | count = inode->i_size - filp->f_pos - n + n0; |
filp | 950 | fs/hpfs/hpfs_fs.c | filp->f_pos += n; |
filp | 1367 | fs/hpfs/hpfs_fs.c | static int hpfs_readdir(struct inode *inode, struct file *filp, void * dirent, |
filp | 1387 | fs/hpfs/hpfs_fs.c | switch ((long) filp->f_pos) { |
filp | 1392 | fs/hpfs/hpfs_fs.c | if (filldir(dirent, ".", 1, filp->f_pos, inode->i_ino) < 0) |
filp | 1394 | fs/hpfs/hpfs_fs.c | filp->f_pos = -1; |
filp | 1398 | fs/hpfs/hpfs_fs.c | if (filldir(dirent, "..", 2, filp->f_pos, inode->i_hpfs_parent_dir) < 0) |
filp | 1400 | fs/hpfs/hpfs_fs.c | filp->f_pos = 1; |
filp | 1405 | fs/hpfs/hpfs_fs.c | old_pos = filp->f_pos; |
filp | 1406 | fs/hpfs/hpfs_fs.c | de = map_pos_dirent(inode, &filp->f_pos, &qbh); |
filp | 1408 | fs/hpfs/hpfs_fs.c | filp->f_pos = -2; |
filp | 1419 | fs/hpfs/hpfs_fs.c | filp->f_pos = old_pos; |
filp | 1582 | 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 | 81 | fs/ioctl.c | filp->f_flags |= O_NONBLOCK; |
filp | 83 | fs/ioctl.c | filp->f_flags &= ~O_NONBLOCK; |
filp | 94 | fs/ioctl.c | filp->f_flags |= O_SYNC; |
filp | 96 | fs/ioctl.c | filp->f_flags &= ~O_SYNC; |
filp | 100 | fs/ioctl.c | if (filp->f_inode && S_ISREG(filp->f_inode->i_mode)) |
filp | 101 | fs/ioctl.c | return file_ioctl(filp, cmd, arg); |
filp | 103 | fs/ioctl.c | if (filp->f_op && filp->f_op->ioctl) |
filp | 104 | fs/ioctl.c | return filp->f_op->ioctl(filp->f_inode, filp, cmd, arg); |
filp | 108 | fs/isofs/dir.c | static int do_isofs_readdir(struct inode *inode, struct file *filp, |
filp | 122 | fs/isofs/dir.c | offset = filp->f_pos & (bufsize - 1); |
filp | 123 | fs/isofs/dir.c | block = isofs_bmap(inode, filp->f_pos >> bufbits); |
filp | 128 | fs/isofs/dir.c | if (!(bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size))) |
filp | 131 | fs/isofs/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 135 | fs/isofs/dir.c | block, offset, filp->f_pos); |
filp | 141 | fs/isofs/dir.c | block = isofs_bmap(inode, (filp->f_pos) >> bufbits); |
filp | 144 | fs/isofs/dir.c | bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size); |
filp | 161 | fs/isofs/dir.c | filp->f_pos = ((filp->f_pos & ~(ISOFS_BLOCK_SIZE - 1)) |
filp | 164 | fs/isofs/dir.c | block = isofs_bmap(inode, (filp->f_pos) >> bufbits); |
filp | 167 | fs/isofs/dir.c | bh = breada(inode->i_dev, block, bufsize, filp->f_pos, inode->i_size); |
filp | 181 | fs/isofs/dir.c | block = isofs_bmap(inode, (filp->f_pos + de_len) >> bufbits); |
filp | 184 | fs/isofs/dir.c | bh = breada(inode->i_dev, block, bufsize, filp->f_pos+de_len, inode->i_size); |
filp | 194 | fs/isofs/dir.c | if (filldir(dirent, ".", 1, filp->f_pos, inode->i_ino) < 0) |
filp | 196 | fs/isofs/dir.c | filp->f_pos += de_len; |
filp | 205 | fs/isofs/dir.c | if (filldir(dirent, "..", 2, filp->f_pos, inode_number) < 0) |
filp | 207 | fs/isofs/dir.c | filp->f_pos += de_len; |
filp | 218 | fs/isofs/dir.c | filp->f_pos += de_len; |
filp | 230 | fs/isofs/dir.c | rrflag = filldir(dirent, name, len, filp->f_pos, inode_number); |
filp | 236 | fs/isofs/dir.c | filp->f_pos += de_len; |
filp | 242 | fs/isofs/dir.c | if (filldir(dirent, tmpname, len, filp->f_pos, inode_number) < 0) |
filp | 245 | fs/isofs/dir.c | filp->f_pos += de_len; |
filp | 249 | fs/isofs/dir.c | if (filldir(dirent, name, len, filp->f_pos, inode_number) < 0) |
filp | 253 | fs/isofs/dir.c | filp->f_pos += de_len; |
filp | 265 | fs/isofs/dir.c | static int isofs_readdir(struct inode *inode, struct file *filp, |
filp | 280 | fs/isofs/dir.c | result = do_isofs_readdir(inode, filp, dirent, filldir, tmpname, tmpde); |
filp | 76 | fs/locks.c | static int flock_make_lock(struct file *filp, struct file_lock *fl, |
filp | 78 | fs/locks.c | static int posix_make_lock(struct file *filp, struct file_lock *fl, |
filp | 85 | fs/locks.c | static int flock_lock_file(struct file *filp, struct file_lock *caller, |
filp | 87 | fs/locks.c | static int posix_lock_file(struct file *filp, struct file_lock *caller, |
filp | 156 | fs/locks.c | struct file *filp; |
filp | 158 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
filp | 161 | fs/locks.c | if (!flock_make_lock(filp, &file_lock, cmd)) |
filp | 164 | fs/locks.c | if ((file_lock.fl_type != F_UNLCK) && !(filp->f_mode & 3)) |
filp | 167 | fs/locks.c | return (flock_lock_file(filp, &file_lock, cmd & LOCK_UN ? 0 : cmd & LOCK_NB ? 0 : 1)); |
filp | 177 | fs/locks.c | struct file *filp; |
filp | 180 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
filp | 191 | fs/locks.c | if (!posix_make_lock(filp, &file_lock, &flock)) |
filp | 194 | fs/locks.c | for (fl = filp->f_inode->i_flock; fl != NULL; fl = fl->fl_next) { |
filp | 219 | fs/locks.c | struct file *filp; |
filp | 227 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
filp | 235 | fs/locks.c | if (!posix_make_lock(filp, &file_lock, &flock)) |
filp | 240 | fs/locks.c | if (!(filp->f_mode & 1)) |
filp | 244 | fs/locks.c | if (!(filp->f_mode & 2)) |
filp | 249 | fs/locks.c | if (!(filp->f_mode & 3)) |
filp | 256 | fs/locks.c | return (posix_lock_file(filp, &file_lock, cmd == F_SETLKW)); |
filp | 261 | fs/locks.c | void locks_remove_locks(struct task_struct *task, struct file *filp) |
filp | 270 | fs/locks.c | before = &filp->f_inode->i_flock; |
filp | 273 | fs/locks.c | ((fl->fl_flags == F_FLOCK) && (fl->fl_file == filp) && |
filp | 274 | fs/locks.c | (filp->f_count == 1))) |
filp | 286 | fs/locks.c | static int posix_make_lock(struct file *filp, struct file_lock *fl, |
filp | 291 | fs/locks.c | if (!filp->f_inode) /* just in case */ |
filp | 315 | fs/locks.c | start = filp->f_pos; |
filp | 318 | fs/locks.c | start = filp->f_inode->i_size; |
filp | 331 | fs/locks.c | fl->fl_file = filp; |
filp | 341 | fs/locks.c | static int flock_make_lock(struct file *filp, struct file_lock *fl, |
filp | 344 | fs/locks.c | if (!filp->f_inode) /* just in case */ |
filp | 364 | fs/locks.c | fl->fl_file = filp; |
filp | 473 | fs/locks.c | static int flock_lock_file(struct file *filp, struct file_lock *caller, |
filp | 484 | fs/locks.c | before = &filp->f_inode->i_flock; |
filp | 504 | fs/locks.c | for (fl = filp->f_inode->i_flock; fl != NULL; fl = fl->fl_next) { |
filp | 539 | fs/locks.c | locks_insert_lock(&filp->f_inode->i_flock, new_fl); |
filp | 555 | fs/locks.c | static int posix_lock_file(struct file *filp, struct file_lock *caller, |
filp | 567 | fs/locks.c | for (fl = filp->f_inode->i_flock; fl != NULL; fl = fl->fl_next) { |
filp | 588 | fs/locks.c | before = &filp->f_inode->i_flock; |
filp | 17 | fs/minix/dir.c | static int minix_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 60 | fs/minix/dir.c | static int minix_readdir(struct inode * inode, struct file * filp, |
filp | 71 | fs/minix/dir.c | if (filp->f_pos & (info->s_dirsize - 1)) |
filp | 73 | fs/minix/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 74 | fs/minix/dir.c | offset = filp->f_pos & 1023; |
filp | 75 | fs/minix/dir.c | bh = minix_bread(inode,(filp->f_pos)>>BLOCK_SIZE_BITS,0); |
filp | 77 | fs/minix/dir.c | filp->f_pos += 1024-offset; |
filp | 84 | fs/minix/dir.c | if (filldir(dirent, de->name, size, filp->f_pos, de->inode) < 0) { |
filp | 90 | fs/minix/dir.c | filp->f_pos += info->s_dirsize; |
filp | 91 | fs/minix/dir.c | } while (offset < 1024 && filp->f_pos < inode->i_size); |
filp | 69 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 84 | fs/minix/file.c | if (filp->f_flags & O_APPEND) |
filp | 87 | fs/minix/file.c | pos = filp->f_pos; |
filp | 122 | fs/minix/file.c | filp->f_pos = pos; |
filp | 26 | fs/ncpfs/dir.c | ncp_dir_read(struct inode *inode, struct file *filp, char *buf, int count); |
filp | 29 | fs/ncpfs/dir.c | ncp_readdir(struct inode *inode, struct file *filp, |
filp | 181 | fs/ncpfs/dir.c | ncp_dir_read(struct inode *inode, struct file *filp, char *buf, int count) |
filp | 194 | fs/ncpfs/dir.c | ncp_readdir(struct inode *inode, struct file *filp, |
filp | 203 | fs/ncpfs/dir.c | DDPRINTK("ncp_readdir: filp->f_pos = %d\n", (int)filp->f_pos); |
filp | 229 | fs/ncpfs/dir.c | if (filp->f_pos == 0) |
filp | 232 | fs/ncpfs/dir.c | if (filldir(dirent,".",1, filp->f_pos, |
filp | 237 | fs/ncpfs/dir.c | filp->f_pos += 1; |
filp | 240 | fs/ncpfs/dir.c | if (filp->f_pos == 1) |
filp | 242 | fs/ncpfs/dir.c | if (filldir(dirent,"..",2, filp->f_pos, |
filp | 247 | fs/ncpfs/dir.c | filp->f_pos += 1; |
filp | 254 | fs/ncpfs/dir.c | if (filp->f_pos == c_entry[i].f_pos) |
filp | 274 | fs/ncpfs/dir.c | result = ncp_read_volume_list(server, filp->f_pos, |
filp | 281 | fs/ncpfs/dir.c | result = ncp_do_readdir(server, inode, filp->f_pos, |
filp | 356 | fs/ncpfs/dir.c | || (entry->f_pos != filp->f_pos)) |
filp | 362 | fs/ncpfs/dir.c | filp->f_pos += 1; |
filp | 29 | fs/ncpfs/inode.c | extern int close_fp(struct file *filp); |
filp | 18 | fs/ncpfs/ioctl.c | ncp_ioctl (struct inode * inode, struct file * filp, |
filp | 21 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *, struct file *filp, char *buf, |
filp | 74 | fs/nfs/dir.c | static int nfs_dir_read(struct inode *inode, struct file *filp, char *buf, |
filp | 90 | fs/nfs/dir.c | static int nfs_readdir(struct inode *inode, struct file *filp, |
filp | 134 | fs/nfs/dir.c | if (filp->f_pos == c_entry[i].cookie) { |
filp | 150 | fs/nfs/dir.c | filp->f_pos, NFS_READDIR_CACHE_SIZE, c_entry); |
filp | 168 | fs/nfs/dir.c | if (filldir(dirent, entry->name, strlen(entry->name), filp->f_pos, entry->fileid) < 0) |
filp | 170 | fs/nfs/dir.c | filp->f_pos = nextpos; |
filp | 36 | fs/nfs/inode.c | extern int close_fp(struct file *filp); |
filp | 99 | fs/nfs/inode.c | struct file *filp; |
filp | 115 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
filp | 121 | fs/nfs/inode.c | if (!S_ISSOCK(filp->f_inode->i_mode)) { |
filp | 127 | fs/nfs/inode.c | filp->f_count++; |
filp | 136 | fs/nfs/inode.c | server->file = filp; |
filp | 172 | fs/nfs/inode.c | sock = &((filp->f_inode)->u.socket_i); |
filp | 183 | fs/nfs/inode.c | if ((server->rsock = rpc_makesock(filp)) == NULL) { |
filp | 567 | fs/open.c | int close_fp(struct file *filp) |
filp | 571 | fs/open.c | if (filp->f_count == 0) { |
filp | 575 | fs/open.c | inode = filp->f_inode; |
filp | 577 | fs/open.c | locks_remove_locks(current, filp); |
filp | 578 | fs/open.c | if (filp->f_count > 1) { |
filp | 579 | fs/open.c | filp->f_count--; |
filp | 582 | fs/open.c | if (filp->f_op && filp->f_op->release) |
filp | 583 | fs/open.c | filp->f_op->release(inode,filp); |
filp | 584 | fs/open.c | filp->f_count--; |
filp | 585 | fs/open.c | filp->f_inode = NULL; |
filp | 586 | fs/open.c | if (filp->f_mode & FMODE_WRITE) |
filp | 594 | fs/open.c | struct file * filp; |
filp | 599 | fs/open.c | if (!(filp = current->files->fd[fd])) |
filp | 602 | fs/open.c | return (close_fp (filp)); |
filp | 30 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 35 | fs/pipe.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 77 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 99 | fs/pipe.c | if (filp->f_flags & O_NONBLOCK) |
filp | 129 | fs/pipe.c | static int bad_pipe_r(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 134 | fs/pipe.c | static int bad_pipe_w(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 139 | fs/pipe.c | static int pipe_ioctl(struct inode *pino, struct file * filp, |
filp | 155 | fs/pipe.c | static int pipe_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 182 | fs/pipe.c | static int fifo_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 214 | fs/pipe.c | static int connect_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 219 | fs/pipe.c | if (filp->f_flags & O_NONBLOCK) |
filp | 226 | fs/pipe.c | filp->f_op = &read_fifo_fops; |
filp | 227 | fs/pipe.c | return pipe_read(inode,filp,buf,count); |
filp | 230 | fs/pipe.c | static int connect_select(struct inode * inode, struct file * filp, int sel_type, select_table * wait) |
filp | 235 | fs/pipe.c | filp->f_op = &read_fifo_fops; |
filp | 254 | fs/pipe.c | static void pipe_read_release(struct inode * inode, struct file * filp) |
filp | 260 | fs/pipe.c | static void pipe_write_release(struct inode * inode, struct file * filp) |
filp | 266 | fs/pipe.c | static void pipe_rdwr_release(struct inode * inode, struct file * filp) |
filp | 268 | fs/pipe.c | if (filp->f_mode & FMODE_READ) |
filp | 270 | fs/pipe.c | if (filp->f_mode & FMODE_WRITE) |
filp | 275 | fs/pipe.c | static int pipe_read_open(struct inode * inode, struct file * filp) |
filp | 281 | fs/pipe.c | static int pipe_write_open(struct inode * inode, struct file * filp) |
filp | 287 | fs/pipe.c | static int pipe_rdwr_open(struct inode * inode, struct file * filp) |
filp | 289 | fs/pipe.c | if (filp->f_mode & FMODE_READ) |
filp | 291 | fs/pipe.c | if (filp->f_mode & FMODE_WRITE) |
filp | 121 | fs/proc/fd.c | static int proc_readfd(struct inode * inode, struct file * filp, |
filp | 138 | fs/proc/fd.c | for (fd = filp->f_pos; fd < 2; fd++, filp->f_pos++) { |
filp | 154 | fs/proc/fd.c | for (fd -= 2 ; fd < NR_OPEN; fd++, filp->f_pos++) { |
filp | 498 | fs/proc/root.c | int proc_readdir(struct inode * inode, struct file * filp, |
filp | 511 | fs/proc/root.c | i = filp->f_pos; |
filp | 517 | fs/proc/root.c | filp->f_pos++; |
filp | 523 | fs/proc/root.c | filp->f_pos++; |
filp | 539 | fs/proc/root.c | if (filldir(dirent, de->name, de->namelen, filp->f_pos, ino | de->low_ino) < 0) |
filp | 541 | fs/proc/root.c | filp->f_pos++; |
filp | 550 | fs/proc/root.c | static int proc_root_readdir(struct inode * inode, struct file * filp, |
filp | 557 | fs/proc/root.c | nr = filp->f_pos; |
filp | 559 | fs/proc/root.c | int error = proc_readdir(inode, filp, dirent, filldir); |
filp | 562 | fs/proc/root.c | filp->f_pos = nr = FIRST_PROCESS_ENTRY; |
filp | 565 | fs/proc/root.c | for (nr -= FIRST_PROCESS_ENTRY; nr < NR_TASKS; nr++, filp->f_pos++) { |
filp | 579 | fs/proc/root.c | if (filldir(dirent, buf+j, NUMBUF-j, filp->f_pos, (pid << 16) + PROC_PID_INO) < 0) |
filp | 22 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count); |
filp | 25 | fs/smbfs/dir.c | smb_readdir(struct inode *inode, struct file *filp, |
filp | 121 | fs/smbfs/dir.c | smb_dir_read(struct inode *inode, struct file *filp, char *buf, int count) |
filp | 158 | fs/smbfs/dir.c | smb_readdir(struct inode *inode, struct file *filp, |
filp | 166 | fs/smbfs/dir.c | DDPRINTK("smb_readdir: filp->f_pos = %d\n", (int)filp->f_pos); |
filp | 198 | fs/smbfs/dir.c | if (filp->f_pos == 0) { |
filp | 204 | fs/smbfs/dir.c | if (filp->f_pos == c_entry[i].f_pos) { |
filp | 218 | fs/smbfs/dir.c | filp->f_pos, SMB_READDIR_CACHE_SIZE, |
filp | 289 | fs/smbfs/dir.c | || (entry->f_pos != filp->f_pos)) { |
filp | 294 | fs/smbfs/dir.c | filp->f_pos += 1; |
filp | 25 | fs/smbfs/inode.c | extern int close_fp(struct file *filp); |
filp | 179 | fs/smbfs/inode.c | struct file *filp; |
filp | 194 | fs/smbfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
filp | 199 | fs/smbfs/inode.c | if (!S_ISSOCK(filp->f_inode->i_mode)) { |
filp | 214 | fs/smbfs/inode.c | filp->f_count += 1; |
filp | 227 | fs/smbfs/inode.c | server->sock_file = filp; |
filp | 301 | fs/smbfs/inode.c | filp->f_count -= 1; |
filp | 17 | fs/smbfs/ioctl.c | smb_ioctl (struct inode * inode, struct file * filp, |
filp | 835 | fs/super.c | struct file filp; |
filp | 881 | fs/super.c | memset(&filp, 0, sizeof(filp)); |
filp | 884 | fs/super.c | filp.f_inode = &d_inode; |
filp | 886 | fs/super.c | filp.f_mode = 1; /* read only */ |
filp | 888 | fs/super.c | filp.f_mode = 3; /* read write */ |
filp | 889 | fs/super.c | retval = blkdev_open(&d_inode, &filp); |
filp | 892 | fs/super.c | filp.f_mode = 1; |
filp | 893 | fs/super.c | retval = blkdev_open(&d_inode, &filp); |
filp | 24 | fs/sysv/dir.c | static int sysv_dir_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 67 | fs/sysv/dir.c | static int sysv_readdir(struct inode * inode, struct file * filp, |
filp | 78 | fs/sysv/dir.c | if ((unsigned long)(filp->f_pos) % SYSV_DIRSIZE) |
filp | 80 | fs/sysv/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 81 | fs/sysv/dir.c | offset = filp->f_pos & sb->sv_block_size_1; |
filp | 82 | fs/sysv/dir.c | bh = sysv_file_bread(inode, filp->f_pos >> sb->sv_block_size_bits, 0); |
filp | 84 | fs/sysv/dir.c | filp->f_pos += sb->sv_block_size - offset; |
filp | 88 | fs/sysv/dir.c | while (offset < sb->sv_block_size && filp->f_pos < inode->i_size) { |
filp | 100 | fs/sysv/dir.c | inode->i_ino, (off_t) filp->f_pos, sde.inode); |
filp | 103 | fs/sysv/dir.c | if (filldir(dirent, sde.name, i, filp->f_pos, sde.inode) < 0) { |
filp | 109 | fs/sysv/dir.c | filp->f_pos += SYSV_DIRSIZE; |
filp | 75 | fs/sysv/file.c | int sysv_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 95 | fs/sysv/file.c | offset = filp->f_pos; |
filp | 111 | fs/sysv/file.c | if (filp->f_reada) { |
filp | 169 | fs/sysv/file.c | filp->f_pos += chars; |
filp | 194 | fs/sysv/file.c | filp->f_reada = 1; |
filp | 202 | fs/sysv/file.c | static int sysv_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 225 | fs/sysv/file.c | if (filp->f_flags & O_APPEND) |
filp | 228 | fs/sysv/file.c | pos = filp->f_pos; |
filp | 266 | fs/sysv/file.c | filp->f_pos = pos; |
filp | 30 | fs/umsdos/dir.c | int UMSDOS_dir_read(struct inode *inode,struct file *filp,char *buf, |
filp | 81 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
filp | 92 | fs/umsdos/dir.c | if (filp->f_pos == UMSDOS_SPECIAL_DIRFPOS |
filp | 107 | fs/umsdos/dir.c | filp->f_pos++; |
filp | 109 | fs/umsdos/dir.c | }else if (filp->f_pos < 2 |
filp | 110 | fs/umsdos/dir.c | || (dir != dir->i_sb->s_mounted && filp->f_pos == 32)){ |
filp | 150 | fs/umsdos/dir.c | int last_f_pos = filp->f_pos; |
filp | 155 | fs/umsdos/dir.c | ret = fat_readdir(dir,filp,&bufk,umsdos_dir_once); |
filp | 156 | fs/umsdos/dir.c | if (last_f_pos > 0 && filp->f_pos > last_f_pos) filp->f_pos = UMSDOS_SPECIAL_DIRFPOS; |
filp | 161 | fs/umsdos/dir.c | off_t start_fpos = filp->f_pos; |
filp | 162 | fs/umsdos/dir.c | if (filp->f_pos <= UMSDOS_SPECIAL_DIRFPOS+1) filp->f_pos = 0; |
filp | 163 | fs/umsdos/dir.c | PRINTK (("f_pos %lu i_size %ld\n",filp->f_pos,emd_dir->i_size)); |
filp | 165 | fs/umsdos/dir.c | while (filp->f_pos < emd_dir->i_size){ |
filp | 167 | fs/umsdos/dir.c | off_t cur_f_pos = filp->f_pos; |
filp | 168 | fs/umsdos/dir.c | if (umsdos_emd_dir_readentry (emd_dir,filp,&entry)!=0){ |
filp | 221 | fs/umsdos/dir.c | filp->f_pos = cur_f_pos; |
filp | 248 | fs/umsdos/dir.c | if (filp->f_pos == 0) filp->f_pos = start_fpos; |
filp | 253 | fs/umsdos/dir.c | PRINTK (("read dir %p pos %Ld ret %d\n",dir,filp->f_pos,ret)); |
filp | 263 | fs/umsdos/dir.c | struct file *filp, /* Point to a directory which is read */ |
filp | 277 | fs/umsdos/dir.c | ret = umsdos_readdir_x (dir,filp,&bufk,0,&entry,1,umsdos_dir_once); |
filp | 282 | fs/umsdos/dir.c | ,filp->f_pos)); |
filp | 482 | fs/umsdos/dir.c | struct file filp; |
filp | 483 | fs/umsdos/dir.c | filp.f_reada = 1; |
filp | 484 | fs/umsdos/dir.c | filp.f_pos = 0; |
filp | 487 | fs/umsdos/dir.c | fat_readdir (dir,&filp,&bufk,umsdos_dir_search); |
filp | 496 | fs/umsdos/dir.c | struct file filp; |
filp | 497 | fs/umsdos/dir.c | filp.f_reada = 1; |
filp | 498 | fs/umsdos/dir.c | filp.f_pos = UMSDOS_SPECIAL_DIRFPOS; |
filp | 501 | fs/umsdos/dir.c | if (umsdos_readdir_x(dir,&filp,&bufk |
filp | 749 | fs/umsdos/dir.c | struct file filp; |
filp | 750 | fs/umsdos/dir.c | filp.f_reada = 1; |
filp | 751 | fs/umsdos/dir.c | filp.f_pos = 0; |
filp | 753 | fs/umsdos/dir.c | if (umsdos_file_read_kmem (hlink,&filp,path,hlink->i_size) |
filp | 28 | fs/umsdos/emd.c | struct file *filp, |
filp | 35 | fs/umsdos/emd.c | ret = fat_file_read(inode,filp,buf,count); |
filp | 44 | fs/umsdos/emd.c | struct file *filp, |
filp | 51 | fs/umsdos/emd.c | ret = fat_file_write(inode,filp,buf,count); |
filp | 65 | fs/umsdos/emd.c | struct file *filp, |
filp | 70 | fs/umsdos/emd.c | filp->f_flags = 0; |
filp | 71 | fs/umsdos/emd.c | written = umsdos_file_write_kmem (emd_dir,filp,buf,count); |
filp | 81 | fs/umsdos/emd.c | struct file *filp, |
filp | 87 | fs/umsdos/emd.c | filp->f_flags = 0; |
filp | 88 | fs/umsdos/emd.c | sizeread = umsdos_file_read_kmem (emd_dir,filp,buf,count); |
filp | 91 | fs/umsdos/emd.c | ,filp->f_pos,sizeread,count); |
filp | 143 | fs/umsdos/emd.c | struct file *filp, |
filp | 146 | fs/umsdos/emd.c | int ret = umsdos_emd_dir_read(emd_dir,filp,(char*)entry,UMSDOS_REC_SIZE); |
filp | 151 | fs/umsdos/emd.c | ret = umsdos_emd_dir_read(emd_dir,filp |
filp | 169 | fs/umsdos/emd.c | struct file filp; |
filp | 192 | fs/umsdos/emd.c | filp.f_pos = info->f_pos; |
filp | 193 | fs/umsdos/emd.c | filp.f_reada = 0; |
filp | 194 | fs/umsdos/emd.c | ret = umsdos_emd_dir_write(emd_dir,&filp,(char*)entry,info->recsize); |
filp | 209 | fs/umsdos/emd.c | struct file filp; |
filp | 231 | fs/umsdos/emd.c | remain = inode->i_size - buf->filp.f_pos; |
filp | 234 | fs/umsdos/emd.c | ret = umsdos_emd_dir_read (inode,&buf->filp,buf->buffer+mustmove |
filp | 292 | fs/umsdos/emd.c | buf.filp.f_pos = 0; |
filp | 293 | fs/umsdos/emd.c | buf.filp.f_reada = 1; |
filp | 300 | fs/umsdos/emd.c | int file_pos = buf.filp.f_pos - buf.size + buf.pos; |
filp | 449 | fs/umsdos/emd.c | struct file filp; |
filp | 451 | fs/umsdos/emd.c | filp.f_pos = 0; |
filp | 452 | fs/umsdos/emd.c | filp.f_reada = 1; |
filp | 453 | fs/umsdos/emd.c | filp.f_flags = O_RDONLY; |
filp | 455 | fs/umsdos/emd.c | while (filp.f_pos < emd_dir->i_size){ |
filp | 457 | fs/umsdos/emd.c | if (umsdos_emd_dir_readentry(emd_dir,&filp,&entry)!=0){ |
filp | 29 | fs/umsdos/file.c | struct file *filp, |
filp | 34 | fs/umsdos/file.c | int ret = fat_file_read(inode,filp,buf,count); |
filp | 46 | fs/umsdos/file.c | struct file *filp, |
filp | 50 | fs/umsdos/file.c | return fat_file_write(inode,filp,buf,count); |
filp | 314 | fs/umsdos/inode.c | struct file filp; |
filp | 316 | fs/umsdos/inode.c | filp.f_pos = inode->u.umsdos_i.pos; |
filp | 317 | fs/umsdos/inode.c | filp.f_reada = 0; |
filp | 318 | fs/umsdos/inode.c | PRINTK (("pos = %d ",filp.f_pos)); |
filp | 321 | fs/umsdos/inode.c | ret = umsdos_emd_dir_read (emd_owner,&filp,(char*)&entry |
filp | 338 | fs/umsdos/inode.c | filp.f_pos = inode->u.umsdos_i.pos; |
filp | 339 | fs/umsdos/inode.c | ret = umsdos_emd_dir_write (emd_owner,&filp,(char*)&entry |
filp | 57 | fs/umsdos/ioctl.c | struct file *filp, |
filp | 123 | fs/umsdos/ioctl.c | fat_readdir(dir,filp,&bufk,umsdos_ioctl_fill); |
filp | 140 | fs/umsdos/ioctl.c | if (filp->f_pos >= emd_dir->i_size){ |
filp | 145 | fs/umsdos/ioctl.c | off_t f_pos = filp->f_pos; |
filp | 146 | fs/umsdos/ioctl.c | ret = umsdos_emd_dir_readentry (emd_dir,filp,&entry); |
filp | 446 | fs/umsdos/namei.c | struct file filp; |
filp | 447 | fs/umsdos/namei.c | filp.f_pos = 0; |
filp | 449 | fs/umsdos/namei.c | ret = umsdos_file_write_kmem (inode,&filp,symname,len); |
filp | 65 | fs/umsdos/rdir.c | struct file *filp, |
filp | 75 | fs/umsdos/rdir.c | return fat_readdir(dir,filp,&bufk,rdir_filldir); |
filp | 36 | fs/umsdos/symlink.c | struct file filp; |
filp | 37 | fs/umsdos/symlink.c | filp.f_pos = 0; |
filp | 38 | fs/umsdos/symlink.c | filp.f_reada = 0; |
filp | 40 | fs/umsdos/symlink.c | if ((*msdos_read) (inode, &filp, buffer,ret) != ret){ |
filp | 63 | fs/xiafs/dir.c | struct file * filp, char * buf, int count) |
filp | 68 | fs/xiafs/dir.c | static int xiafs_readdir(struct inode * inode, struct file * filp, |
filp | 79 | fs/xiafs/dir.c | while (filp->f_pos < inode->i_size) { |
filp | 80 | fs/xiafs/dir.c | offset = filp->f_pos & (XIAFS_ZSIZE(inode->i_sb) - 1); |
filp | 81 | fs/xiafs/dir.c | bh = xiafs_bread(inode, filp->f_pos >> XIAFS_ZSIZE_BITS(inode->i_sb),0); |
filp | 83 | fs/xiafs/dir.c | filp->f_pos += XIAFS_ZSIZE(inode->i_sb)-offset; |
filp | 95 | fs/xiafs/dir.c | while (offset < XIAFS_ZSIZE(inode->i_sb) && filp->f_pos < inode->i_size) { |
filp | 111 | fs/xiafs/dir.c | if (filldir(dirent, de->d_name, de->d_name_len, filp->f_pos, de->d_ino) < 0) { |
filp | 117 | fs/xiafs/dir.c | filp->f_pos += de->d_rec_len; |
filp | 73 | fs/xiafs/file.c | xiafs_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 90 | fs/xiafs/file.c | offset = filp->f_pos; |
filp | 102 | fs/xiafs/file.c | if (filp->f_reada) { |
filp | 159 | fs/xiafs/file.c | filp->f_pos += chars; |
filp | 184 | fs/xiafs/file.c | filp->f_reada = 1; |
filp | 193 | fs/xiafs/file.c | xiafs_file_write(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 212 | fs/xiafs/file.c | if (filp->f_flags & O_APPEND) |
filp | 215 | 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 | 482 | include/linux/fs.h | extern int blkdev_open(struct inode * inode, struct file * filp); |
filp | 489 | include/linux/fs.h | extern int chrdev_open(struct inode * inode, struct file * filp); |
filp | 576 | 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 | 213 | include/linux/msdos_fs.h | extern int fat_readdirx(struct inode *inode, struct file *filp, void *dirent, |
filp | 216 | include/linux/msdos_fs.h | extern int fat_readdir(struct inode *inode, struct file *filp, |
filp | 218 | include/linux/msdos_fs.h | extern int fat_dir_ioctl(struct inode * inode, struct file * filp, |
filp | 141 | include/linux/ncp_fs.h | int ncp_ioctl (struct inode * inode, struct file * filp, |
filp | 67 | include/linux/skbuff.h | void *filp; |
filp | 111 | include/linux/smb_fs.h | int smb_ioctl (struct inode * inode, struct file * filp, |
filp | 119 | include/linux/sysctl.h | typedef int proc_handler (ctl_table *ctl, int write, struct file * filp, |
filp | 313 | include/linux/tty.h | extern void tty_unhangup(struct file *filp); |
filp | 314 | include/linux/tty.h | extern int tty_hung_up_p(struct file * filp); |
filp | 327 | include/linux/tty.h | extern int rs_open(struct tty_struct * tty, struct file * filp); |
filp | 331 | include/linux/tty.h | extern int pty_open(struct tty_struct * tty, struct file * filp); |
filp | 332 | include/linux/tty.h | extern int pcxe_open(struct tty_struct *tty, struct file *filp); |
filp | 336 | 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 | 377 | kernel/exit.c | struct file * filp = files->fd[i]; |
filp | 378 | kernel/exit.c | if (!filp) |
filp | 381 | kernel/exit.c | close_fp(filp); |
filp | 496 | kernel/sysctl.c | int proc_dostring(ctl_table *table, int write, struct file *filp, |
filp | 503 | kernel/sysctl.c | (filp->f_pos && !write)) { |
filp | 518 | kernel/sysctl.c | filp->f_pos += *lenp; |
filp | 534 | kernel/sysctl.c | filp->f_pos += len; |
filp | 539 | kernel/sysctl.c | int proc_dointvec(ctl_table *table, int write, struct file *filp, |
filp | 547 | kernel/sysctl.c | (filp->f_pos && !write)) { |
filp | 610 | kernel/sysctl.c | filp->f_pos += *lenp; |
filp | 614 | kernel/sysctl.c | int proc_dointvec_minmax(ctl_table *table, int write, struct file *filp, |
filp | 622 | kernel/sysctl.c | (filp->f_pos && !write)) { |
filp | 692 | kernel/sysctl.c | filp->f_pos += *lenp; |
filp | 698 | kernel/sysctl.c | int proc_dostring(ctl_table *table, int write, struct file *filp, |
filp | 704 | kernel/sysctl.c | int proc_dointvec(ctl_table *table, int write, struct file *filp, |
filp | 710 | kernel/sysctl.c | int proc_dointvec_minmax(ctl_table *table, int write, struct file *filp, |
filp | 299 | mm/filemap.c | int generic_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 310 | mm/filemap.c | pos = filp->f_pos; |
filp | 364 | mm/filemap.c | if (filp->f_reada || max_ahead > MAX_READAHEAD) |
filp | 421 | mm/filemap.c | filp->f_pos = pos; |
filp | 422 | mm/filemap.c | filp->f_reada = 1; |
filp | 318 | mm/swapfile.c | struct file filp; |
filp | 363 | mm/swapfile.c | memset(&filp, 0, sizeof(filp)); |
filp | 364 | mm/swapfile.c | filp.f_inode = inode; |
filp | 365 | mm/swapfile.c | filp.f_mode = 3; /* read write */ |
filp | 367 | mm/swapfile.c | if( !blkdev_open(inode, &filp) && |
filp | 368 | mm/swapfile.c | filp.f_op && filp.f_op->release){ |
filp | 369 | mm/swapfile.c | filp.f_op->release(inode,&filp); |
filp | 370 | mm/swapfile.c | filp.f_op->release(inode,&filp); |
filp | 399 | mm/swapfile.c | struct file filp; |
filp | 402 | mm/swapfile.c | memset(&filp, 0, sizeof(filp)); |
filp | 442 | mm/swapfile.c | filp.f_inode = swap_inode; |
filp | 443 | mm/swapfile.c | filp.f_mode = 3; /* read write */ |
filp | 444 | mm/swapfile.c | error = blkdev_open(swap_inode, &filp); |
filp | 525 | mm/swapfile.c | if(filp.f_op && filp.f_op->release) |
filp | 526 | mm/swapfile.c | filp.f_op->release(filp.f_inode,&filp); |
filp | 93 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on); |
filp | 425 | net/socket.c | void sock_close(struct inode *inode, struct file *filp) |
filp | 433 | net/socket.c | sock_fasync(inode, filp, 0); |
filp | 441 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on) |
filp | 462 | net/socket.c | if(fa->fa_file==filp) |
filp | 473 | net/socket.c | fna->fa_file=filp; |
filp | 1197 | net/socket.c | int sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |
filp | 1201 | net/socket.c | sock = socki_lookup (filp->f_inode); |
filp | 826 | net/unix/af_unix.c | memcpy(&fdnum,skb->h.filp,sizeof(int)); |
filp | 827 | net/unix/af_unix.c | fp=(struct file **)(skb->h.filp+sizeof(int)); |
filp | 858 | net/unix/af_unix.c | kfree(skb->h.filp); |
filp | 859 | net/unix/af_unix.c | skb->h.filp=NULL; |
filp | 876 | net/unix/af_unix.c | skb->h.filp=kmalloc(sizeof(int)+fpnum*sizeof(struct file *), |
filp | 879 | net/unix/af_unix.c | memcpy(skb->h.filp,&fpnum,sizeof(int)); |
filp | 881 | net/unix/af_unix.c | memcpy(skb->h.filp+sizeof(int),fp,fpnum*sizeof(struct file *)); |
filp | 1009 | net/unix/af_unix.c | skb->h.filp=NULL; |
filp | 1157 | net/unix/af_unix.c | if (skb->h.filp!=NULL) |
filp | 71 | net/unix/garbage.c | extern inline unix_socket *unix_get_socket(struct file *filp) |
filp | 77 | net/unix/garbage.c | if(filp->f_inode->i_mode!=S_IFSOCK) |
filp | 79 | net/unix/garbage.c | s=&(filp->f_inode->u.socket_i); |
filp | 209 | net/unix/garbage.c | if(skb->h.filp) |
filp | 214 | net/unix/garbage.c | int nfd=*(int *)skb->h.filp; |
filp | 215 | net/unix/garbage.c | struct file **fp=(struct file **)(skb->h.filp+sizeof(int)); |