tag | line | file | source code |
filp | 25 | arch/sparc/kernel/sunos_ioctl.c | struct file *filp; |
filp | 27 | arch/sparc/kernel/sunos_ioctl.c | if (fd >= NR_OPEN || !(filp = current->files->fd [fd])) |
filp | 3163 | drivers/block/floppy.c | static int fd_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, |
filp | 3168 | drivers/block/floppy.c | #define IOCTL_ALLOWED (filp && (filp->f_mode & IOCTL_MODE_BIT)) |
filp | 3360 | drivers/block/floppy.c | static int floppy_read(struct inode * inode, struct file * filp, |
filp | 3368 | drivers/block/floppy.c | return block_read(inode, filp, buf, count); |
filp | 3371 | drivers/block/floppy.c | static int floppy_write(struct inode * inode, struct file * filp, |
filp | 3385 | drivers/block/floppy.c | block = (filp->f_pos + count) >> 9; |
filp | 3387 | drivers/block/floppy.c | ret= block_write(inode, filp, buf, count); |
filp | 3391 | drivers/block/floppy.c | static void floppy_release(struct inode * inode, struct file * filp) |
filp | 3397 | drivers/block/floppy.c | if (!filp || (filp->f_mode & (2 | OPEN_WRITE_BIT))) |
filp | 3400 | drivers/block/floppy.c | block_fsync(inode,filp); |
filp | 3416 | drivers/block/floppy.c | #define RETERR(x) do{floppy_release(inode,filp); return -(x);}while(0) |
filp | 3418 | drivers/block/floppy.c | static int floppy_open(struct inode * inode, struct file * filp) |
filp | 3425 | drivers/block/floppy.c | if (!filp) { |
filp | 3448 | drivers/block/floppy.c | (UDRS->fd_ref && (filp->f_flags & O_EXCL))) |
filp | 3454 | drivers/block/floppy.c | if (filp->f_flags & O_EXCL) |
filp | 3494 | drivers/block/floppy.c | if ((filp->f_mode & 2) || (permission(inode,2) == 0)) |
filp | 3495 | drivers/block/floppy.c | filp->f_mode |= IOCTL_MODE_BIT; |
filp | 3496 | drivers/block/floppy.c | if (filp->f_mode & 2) |
filp | 3497 | drivers/block/floppy.c | filp->f_mode |= OPEN_WRITE_BIT; |
filp | 3502 | drivers/block/floppy.c | if (filp->f_flags & O_NDELAY) |
filp | 3504 | drivers/block/floppy.c | if (filp->f_mode & 3) { |
filp | 3510 | 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 | 3572 | drivers/block/ide-tape.c | int idetape_blkdev_open (struct inode *inode, struct file *filp, ide_drive_t *drive) |
filp | 3595 | drivers/block/ide-tape.c | void idetape_blkdev_release (struct inode *inode, struct file *filp, ide_drive_t *drive) |
filp | 4077 | drivers/block/ide-tape.c | int idetape_chrdev_open (struct inode *inode, struct file *filp) |
filp | 4139 | drivers/block/ide-tape.c | void idetape_chrdev_release (struct inode *inode, struct file *filp) |
filp | 1704 | drivers/block/ide.c | static int ide_open(struct inode * inode, struct file * filp) |
filp | 1719 | drivers/block/ide.c | return ide_cdrom_open (inode, filp, drive); |
filp | 1723 | drivers/block/ide.c | return idetape_blkdev_open (inode, filp, drive); |
filp | 641 | drivers/block/ide.h | int idetape_blkdev_open (struct inode *inode, struct file *filp, ide_drive_t *drive); |
filp | 642 | drivers/block/ide.h | void idetape_blkdev_release (struct inode *inode, struct file *filp, ide_drive_t *drive); |
filp | 164 | drivers/block/rd.c | static int rd_open(struct inode * inode, struct file * filp) |
filp | 175 | 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 | 818 | drivers/char/apm_bios.c | static int do_ioctl(struct inode * inode, struct file *filp, |
filp | 823 | drivers/char/apm_bios.c | as = filp->private_data; |
filp | 849 | drivers/char/apm_bios.c | static void do_release(struct inode * inode, struct file * filp) |
filp | 853 | drivers/char/apm_bios.c | as = filp->private_data; |
filp | 854 | drivers/char/apm_bios.c | filp->private_data = NULL; |
filp | 884 | drivers/char/apm_bios.c | static int do_open(struct inode * inode, struct file * filp) |
filp | 900 | 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 | 2247 | drivers/char/console.c | int con_open(struct tty_struct *tty, struct file * filp) |
filp | 2310 | drivers/char/cyclades.c | cy_close(struct tty_struct * tty, struct file * filp) |
filp | 2331 | drivers/char/cyclades.c | if (tty_hung_up_p(filp)) { |
filp | 2437 | drivers/char/cyclades.c | block_til_ready(struct tty_struct *tty, struct file * filp, |
filp | 2486 | drivers/char/cyclades.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 2534 | drivers/char/cyclades.c | if (tty_hung_up_p(filp) |
filp | 2566 | drivers/char/cyclades.c | if (!tty_hung_up_p(filp)){ |
filp | 2588 | drivers/char/cyclades.c | cy_open(struct tty_struct *tty, struct file * filp) |
filp | 2639 | drivers/char/cyclades.c | retval = block_til_ready(tty, filp, info); |
filp | 619 | drivers/char/istallion.c | static int stli_open(struct tty_struct *tty, struct file *filp); |
filp | 620 | drivers/char/istallion.c | static void stli_close(struct tty_struct *tty, struct file *filp); |
filp | 651 | drivers/char/istallion.c | static int stli_waitcarrier(stlibrd_t *brdp, stliport_t *portp, struct file *filp); |
filp | 852 | drivers/char/istallion.c | static int stli_open(struct tty_struct *tty, struct file *filp) |
filp | 860 | drivers/char/istallion.c | printk("stli_open(tty=%x,filp=%x): device=%x\n", (int) tty, (int) filp, tty->device); |
filp | 954 | drivers/char/istallion.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 958 | drivers/char/istallion.c | if ((rc = stli_waitcarrier(brdp, portp, filp)) != 0) |
filp | 979 | drivers/char/istallion.c | static void stli_close(struct tty_struct *tty, struct file *filp) |
filp | 986 | drivers/char/istallion.c | printk("stli_close(tty=%x,filp=%x)\n", (int) tty, (int) filp); |
filp | 995 | drivers/char/istallion.c | if (tty_hung_up_p(filp)) { |
filp | 1363 | drivers/char/istallion.c | static int stli_waitcarrier(stlibrd_t *brdp, stliport_t *portp, struct file *filp) |
filp | 1369 | drivers/char/istallion.c | printk("stli_waitcarrier(brdp=%x,portp=%x,filp=%x)\n", (int) brdp, (int) portp, (int) filp); |
filp | 1386 | drivers/char/istallion.c | if (tty_hung_up_p(filp) || ((portp->flags & ASYNC_INITIALIZED) == 0)) { |
filp | 1406 | drivers/char/istallion.c | if (! tty_hung_up_p(filp)) |
filp | 329 | drivers/char/mem.c | static int memory_open(struct inode * inode, struct file * filp) |
filp | 333 | drivers/char/mem.c | filp->f_op = &ram_fops; |
filp | 336 | drivers/char/mem.c | filp->f_op = &mem_fops; |
filp | 339 | drivers/char/mem.c | filp->f_op = &kmem_fops; |
filp | 342 | drivers/char/mem.c | filp->f_op = &null_fops; |
filp | 345 | drivers/char/mem.c | filp->f_op = &port_fops; |
filp | 348 | drivers/char/mem.c | filp->f_op = &zero_fops; |
filp | 351 | drivers/char/mem.c | filp->f_op = &full_fops; |
filp | 354 | drivers/char/mem.c | filp->f_op = &random_fops; |
filp | 357 | drivers/char/mem.c | filp->f_op = &urandom_fops; |
filp | 362 | drivers/char/mem.c | if (filp->f_op && filp->f_op->open) |
filp | 363 | 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 | 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 | 207 | 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 | 2074 | drivers/char/serial.c | static void rs_close(struct tty_struct *tty, struct file * filp) |
filp | 2085 | drivers/char/serial.c | if (tty_hung_up_p(filp)) { |
filp | 2208 | drivers/char/serial.c | static int block_til_ready(struct tty_struct *tty, struct file * filp, |
filp | 2219 | drivers/char/serial.c | if (tty_hung_up_p(filp) || |
filp | 2256 | drivers/char/serial.c | if ((filp->f_flags & O_NONBLOCK) || |
filp | 2286 | drivers/char/serial.c | if (!tty_hung_up_p(filp)) |
filp | 2298 | drivers/char/serial.c | if (tty_hung_up_p(filp) || |
filp | 2327 | drivers/char/serial.c | if (!tty_hung_up_p(filp)) |
filp | 2346 | drivers/char/serial.c | int rs_open(struct tty_struct *tty, struct file * filp) |
filp | 2384 | drivers/char/serial.c | retval = block_til_ready(tty, filp, info); |
filp | 455 | drivers/char/stallion.c | static int stl_open(struct tty_struct *tty, struct file *filp); |
filp | 456 | drivers/char/stallion.c | static void stl_close(struct tty_struct *tty, struct file *filp); |
filp | 490 | drivers/char/stallion.c | static int stl_waitcarrier(stlport_t *portp, struct file *filp); |
filp | 617 | drivers/char/stallion.c | static int stl_open(struct tty_struct *tty, struct file *filp) |
filp | 625 | drivers/char/stallion.c | printk("stl_open(tty=%x,filp=%x): device=%x\n", (int) tty, (int) filp, tty->device); |
filp | 708 | drivers/char/stallion.c | if (filp->f_flags & O_NONBLOCK) { |
filp | 712 | drivers/char/stallion.c | if ((rc = stl_waitcarrier(portp, filp)) != 0) |
filp | 738 | drivers/char/stallion.c | static int stl_waitcarrier(stlport_t *portp, struct file *filp) |
filp | 744 | drivers/char/stallion.c | printk("stl_waitcarrier(portp=%x,filp=%x)\n", (int) portp, (int) filp); |
filp | 758 | drivers/char/stallion.c | if (tty_hung_up_p(filp) || ((portp->flags & ASYNC_INITIALIZED) == 0)) { |
filp | 778 | drivers/char/stallion.c | if (! tty_hung_up_p(filp)) |
filp | 788 | drivers/char/stallion.c | static void stl_close(struct tty_struct *tty, struct file *filp) |
filp | 794 | drivers/char/stallion.c | printk("stl_close(tty=%x,filp=%x)\n", (int) tty, (int) filp); |
filp | 803 | 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 | 238 | drivers/net/ppp.c | struct file *filp, int sel_type, select_table * wait); |
filp | 2624 | drivers/net/ppp.c | struct file *filp, int sel_type, select_table * wait) |
filp | 2661 | drivers/net/ppp.c | if (tty_hung_up_p (filp)) |
filp | 3193 | drivers/scsi/53c7,8xx.c | debugger_user_write (struct inode *inode,struct file *filp, |
filp | 3246 | 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 | 519 | drivers/scsi/sr.c | static int sr_open(struct inode * inode, struct file * filp) |
filp | 524 | drivers/scsi/sr.c | if (filp->f_mode & 2) |
filp | 397 | drivers/scsi/st.c | flush_buffer(struct inode * inode, struct file * filp, int seek_next) |
filp | 439 | drivers/scsi/st.c | result = st_int_ioctl(inode, filp, MTBSR, backspace); |
filp | 453 | drivers/scsi/st.c | scsi_tape_open(struct inode * inode, struct file * filp) |
filp | 490 | drivers/scsi/st.c | flags = filp->f_flags; |
filp | 659 | drivers/scsi/st.c | scsi_tape_close(struct inode * inode, struct file * filp) |
filp | 678 | drivers/scsi/st.c | dev, (long)(filp->f_pos)); |
filp | 715 | drivers/scsi/st.c | flush_buffer(inode, filp, 0); |
filp | 723 | drivers/scsi/st.c | st_int_ioctl(inode, filp, MTREW, 1); |
filp | 726 | drivers/scsi/st.c | st_int_ioctl(inode, filp, MTUNLOCK, 0); |
filp | 744 | drivers/scsi/st.c | st_write(struct inode * inode, struct file * filp, const char * buf, int count) |
filp | 782 | drivers/scsi/st.c | !st_int_ioctl(inode, filp, MTLOCK, 0)) |
filp | 786 | drivers/scsi/st.c | retval = flush_buffer(inode, filp, 0); |
filp | 886 | drivers/scsi/st.c | filp->f_pos += do_count - transfer; |
filp | 925 | drivers/scsi/st.c | filp->f_pos += do_count; |
filp | 941 | drivers/scsi/st.c | filp->f_pos += count; |
filp | 998 | drivers/scsi/st.c | st_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 1027 | drivers/scsi/st.c | !st_int_ioctl(inode, filp, MTLOCK, 0)) |
filp | 1031 | drivers/scsi/st.c | transfer = flush_buffer(inode, filp, 0); |
filp | 1202 | 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 | 86 | fs/block_dev.c | if(!filp->f_reada || |
filp | 123 | fs/block_dev.c | filp->f_pos += chars; |
filp | 131 | fs/block_dev.c | if (filp->f_flags & O_SYNC) |
filp | 157 | fs/block_dev.c | filp->f_reada = 1; |
filp | 163 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 193 | fs/block_dev.c | offset = filp->f_pos; |
filp | 218 | fs/block_dev.c | if (filp->f_reada) { |
filp | 290 | fs/block_dev.c | filp->f_pos += chars; |
filp | 315 | fs/block_dev.c | filp->f_reada = 1; |
filp | 319 | fs/block_dev.c | int block_fsync(struct inode *inode, struct file *filp) |
filp | 255 | 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 | 30 | fs/fat/dir.c | static int fat_dir_read(struct inode * inode,struct file * filp, char * buf,int count) |
filp | 50 | fs/fat/dir.c | struct file *filp, |
filp | 60 | fs/fat/dir.c | unsigned long oldpos = filp->f_pos; |
filp | 75 | fs/fat/dir.c | filp->f_pos++; |
filp | 78 | fs/fat/dir.c | filp->f_pos = 0; |
filp | 80 | fs/fat/dir.c | if (filp->f_pos & (sizeof(struct msdos_dir_entry)-1)) |
filp | 86 | fs/fat/dir.c | ino = fat_get_entry(inode,&filp->f_pos,&bh,&de); |
filp | 104 | fs/fat/dir.c | oldpos = filp->f_pos; |
filp | 182 | fs/fat/dir.c | ino = fat_get_entry(inode,&filp->f_pos,&bh,&de); |
filp | 249 | fs/fat/dir.c | filp->f_pos = oldpos; |
filp | 259 | fs/fat/dir.c | filp->f_pos = oldpos; |
filp | 263 | fs/fat/dir.c | oldpos = filp->f_pos; |
filp | 268 | fs/fat/dir.c | oldpos = filp->f_pos; |
filp | 270 | fs/fat/dir.c | ino = fat_get_entry(inode,&filp->f_pos,&bh,&de); |
filp | 278 | fs/fat/dir.c | struct file *filp, |
filp | 282 | fs/fat/dir.c | return fat_readdirx(inode, filp, dirent, filldir, 0); |
filp | 331 | fs/fat/dir.c | int fat_dir_ioctl(struct inode * inode, struct file * filp, |
filp | 344 | fs/fat/dir.c | return fat_readdirx(inode,filp,(void *)arg,vfat_ioctl_fill,1); |
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 | 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 | 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 | 127 | fs/ncpfs/dir.c | ncp_dir_read(struct inode *inode, struct file *filp, char *buf, int count) |
filp | 143 | fs/ncpfs/dir.c | ncp_readdir(struct inode *inode, struct file *filp, |
filp | 152 | fs/ncpfs/dir.c | DDPRINTK("ncp_readdir: filp->f_pos = %d\n", (int)filp->f_pos); |
filp | 178 | fs/ncpfs/dir.c | if (filp->f_pos == 0) |
filp | 181 | fs/ncpfs/dir.c | if (filldir(dirent,".",1, filp->f_pos, (int)dir) < 0) |
filp | 185 | fs/ncpfs/dir.c | filp->f_pos += 1; |
filp | 188 | fs/ncpfs/dir.c | if (filp->f_pos == 1) |
filp | 190 | fs/ncpfs/dir.c | if (filldir(dirent,"..",2, filp->f_pos, (int)(dir->dir)) < 0) |
filp | 194 | fs/ncpfs/dir.c | filp->f_pos += 1; |
filp | 201 | fs/ncpfs/dir.c | if (filp->f_pos == c_entry[i].f_pos) |
filp | 221 | fs/ncpfs/dir.c | result = ncp_read_volume_list(server, filp->f_pos, |
filp | 228 | fs/ncpfs/dir.c | result = ncp_do_readdir(server, inode, filp->f_pos, |
filp | 290 | fs/ncpfs/dir.c | || (entry->f_pos != filp->f_pos)) |
filp | 296 | 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 | 30 | fs/nfs/inode.c | extern int close_fp(struct file *filp); |
filp | 91 | fs/nfs/inode.c | struct file *filp; |
filp | 107 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
filp | 113 | fs/nfs/inode.c | if (!S_ISSOCK(filp->f_inode->i_mode)) { |
filp | 119 | fs/nfs/inode.c | filp->f_count++; |
filp | 128 | fs/nfs/inode.c | server->file = filp; |
filp | 164 | fs/nfs/inode.c | sock = &((filp->f_inode)->u.socket_i); |
filp | 175 | fs/nfs/inode.c | if ((server->rsock = rpc_makesock(filp)) == NULL) { |
filp | 686 | fs/nfs/nfsroot.c | struct file *filp; |
filp | 699 | fs/nfs/nfsroot.c | filp = current->files->fd[nfs_data.fd]; |
filp | 700 | fs/nfs/nfsroot.c | memcpy(&nfs_file, filp, sizeof(struct file)); |
filp | 703 | fs/nfs/nfsroot.c | filp->f_count = 0; /* Free the file descriptor */ |
filp | 783 | fs/nfs/nfsroot.c | struct file *filp; |
filp | 801 | fs/nfs/nfsroot.c | filp = &nfs_file; |
filp | 802 | fs/nfs/nfsroot.c | sock = &((filp->f_inode)->u.socket_i); |
filp | 810 | fs/nfs/nfsroot.c | s.rsock = rpc_makesock(filp); |
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 | 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 | 243 | fs/pipe.c | static void pipe_read_release(struct inode * inode, struct file * filp) |
filp | 249 | fs/pipe.c | static void pipe_write_release(struct inode * inode, struct file * filp) |
filp | 255 | fs/pipe.c | static void pipe_rdwr_release(struct inode * inode, struct file * filp) |
filp | 257 | fs/pipe.c | if (filp->f_mode & FMODE_READ) |
filp | 259 | fs/pipe.c | if (filp->f_mode & FMODE_WRITE) |
filp | 264 | fs/pipe.c | static int pipe_read_open(struct inode * inode, struct file * filp) |
filp | 270 | fs/pipe.c | static int pipe_write_open(struct inode * inode, struct file * filp) |
filp | 276 | fs/pipe.c | static int pipe_rdwr_open(struct inode * inode, struct file * filp) |
filp | 278 | fs/pipe.c | if (filp->f_mode & FMODE_READ) |
filp | 280 | 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 | 827 | fs/super.c | struct file filp; |
filp | 867 | fs/super.c | memset(&filp, 0, sizeof(filp)); |
filp | 870 | fs/super.c | filp.f_inode = &d_inode; |
filp | 872 | fs/super.c | filp.f_mode = 1; /* read only */ |
filp | 874 | fs/super.c | filp.f_mode = 3; /* read write */ |
filp | 875 | fs/super.c | retval = blkdev_open(&d_inode, &filp); |
filp | 878 | fs/super.c | filp.f_mode = 1; |
filp | 879 | 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 | 122 | fs/umsdos/ioctl.c | fat_readdir(dir,filp,&bufk,umsdos_ioctl_fill); |
filp | 139 | fs/umsdos/ioctl.c | if (filp->f_pos >= emd_dir->i_size){ |
filp | 144 | fs/umsdos/ioctl.c | off_t f_pos = filp->f_pos; |
filp | 145 | 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 | 488 | include/linux/fs.h | extern int chrdev_open(struct inode * inode, struct file * filp); |
filp | 575 | 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 | 210 | include/linux/msdos_fs.h | extern int fat_readdir(struct inode *inode, struct file *filp, |
filp | 212 | 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 | struct file *filp; |
filp | 111 | include/linux/smb_fs.h | int smb_ioctl (struct inode * inode, struct file * filp, |
filp | 88 | include/linux/sysctl.h | typedef int proc_handler (ctl_table *ctl, int write, struct file * filp, |
filp | 308 | include/linux/tty.h | extern void tty_unhangup(struct file *filp); |
filp | 309 | include/linux/tty.h | extern int tty_hung_up_p(struct file * filp); |
filp | 322 | include/linux/tty.h | extern int rs_open(struct tty_struct * tty, struct file * filp); |
filp | 326 | include/linux/tty.h | extern int pty_open(struct tty_struct * tty, struct file * filp); |
filp | 330 | 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 | 473 | kernel/sysctl.c | int proc_dostring(ctl_table *table, int write, struct file *filp, |
filp | 480 | kernel/sysctl.c | (filp->f_pos && !write)) { |
filp | 495 | kernel/sysctl.c | filp->f_pos += *lenp; |
filp | 511 | kernel/sysctl.c | filp->f_pos += len; |
filp | 516 | kernel/sysctl.c | int proc_dointvec(ctl_table *table, int write, struct file *filp, |
filp | 524 | kernel/sysctl.c | (filp->f_pos && !write)) { |
filp | 587 | kernel/sysctl.c | filp->f_pos += *lenp; |
filp | 591 | kernel/sysctl.c | int proc_dointvec_minmax(ctl_table *table, int write, struct file *filp, |
filp | 599 | kernel/sysctl.c | (filp->f_pos && !write)) { |
filp | 669 | kernel/sysctl.c | filp->f_pos += *lenp; |
filp | 675 | kernel/sysctl.c | int proc_dostring(ctl_table *table, int write, struct file *filp, |
filp | 681 | kernel/sysctl.c | int proc_dointvec(ctl_table *table, int write, struct file *filp, |
filp | 687 | kernel/sysctl.c | int proc_dointvec_minmax(ctl_table *table, int write, struct file *filp, |
filp | 301 | mm/filemap.c | int generic_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
filp | 312 | mm/filemap.c | pos = filp->f_pos; |
filp | 366 | mm/filemap.c | if (filp->f_reada || max_ahead > MAX_READAHEAD) |
filp | 420 | mm/filemap.c | filp->f_pos = pos; |
filp | 421 | mm/filemap.c | filp->f_reada = 1; |
filp | 317 | mm/swapfile.c | struct file filp; |
filp | 362 | mm/swapfile.c | memset(&filp, 0, sizeof(filp)); |
filp | 363 | mm/swapfile.c | filp.f_inode = inode; |
filp | 364 | mm/swapfile.c | filp.f_mode = 3; /* read write */ |
filp | 366 | mm/swapfile.c | if( !blkdev_open(inode, &filp) && |
filp | 367 | mm/swapfile.c | filp.f_op && filp.f_op->release){ |
filp | 368 | mm/swapfile.c | filp.f_op->release(inode,&filp); |
filp | 369 | mm/swapfile.c | filp.f_op->release(inode,&filp); |
filp | 398 | mm/swapfile.c | struct file filp; |
filp | 401 | mm/swapfile.c | memset(&filp, 0, sizeof(filp)); |
filp | 441 | mm/swapfile.c | filp.f_inode = swap_inode; |
filp | 442 | mm/swapfile.c | filp.f_mode = 3; /* read write */ |
filp | 443 | mm/swapfile.c | error = blkdev_open(swap_inode, &filp); |
filp | 524 | mm/swapfile.c | if(filp.f_op && filp.f_op->release) |
filp | 525 | mm/swapfile.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 | 414 | net/socket.c | void sock_close(struct inode *inode, struct file *filp) |
filp | 422 | net/socket.c | sock_fasync(inode, filp, 0); |
filp | 430 | net/socket.c | static int sock_fasync(struct inode *inode, struct file *filp, int on) |
filp | 451 | net/socket.c | if(fa->fa_file==filp) |
filp | 462 | net/socket.c | fna->fa_file=filp; |
filp | 1164 | net/socket.c | int sock_fcntl(struct file *filp, unsigned int cmd, unsigned long arg) |
filp | 1168 | net/socket.c | sock = socki_lookup (filp->f_inode); |
filp | 698 | net/unix/af_unix.c | struct file *filp; |
filp | 730 | net/unix/af_unix.c | filp = NULL; |
filp | 737 | net/unix/af_unix.c | filp = file_from_fd(fd); |
filp | 738 | net/unix/af_unix.c | if(!filp) |
filp | 827 | net/unix/af_unix.c | skb->h.filp = filp; |
filp | 828 | net/unix/af_unix.c | if (filp) { |
filp | 829 | net/unix/af_unix.c | filp->f_count++; |
filp | 835 | net/unix/af_unix.c | filp = NULL; |
filp | 861 | net/unix/af_unix.c | static int stick_fd(struct file *filp, int *uaddr, int size) |
filp | 878 | net/unix/af_unix.c | current->files->fd[slot] = filp; |
filp | 898 | net/unix/af_unix.c | struct file *filp; |
filp | 956 | net/unix/af_unix.c | if ((filp = skb->h.filp) != NULL) { |
filp | 957 | net/unix/af_unix.c | skb->h.filp = NULL; |
filp | 958 | net/unix/af_unix.c | if (stick_fd(filp, msg->msg_accrights, msg->msg_accrightslen) < 0) |
filp | 959 | net/unix/af_unix.c | close_fp(filp); |