Home
last modified time | relevance | path

Searched refs:f_op (Results 1 – 25 of 42) sorted by relevance

12

/fs/coda/
Dfile.c39 if (!host_file->f_op || !host_file->f_op->read) in coda_file_read()
42 return host_file->f_op->read(host_file, buf, count, ppos); in coda_file_read()
57 if (!host_file->f_op || !host_file->f_op->splice_read) in coda_file_splice_read()
60 return host_file->f_op->splice_read(host_file, ppos, pipe, count,flags); in coda_file_splice_read()
75 if (!host_file->f_op || !host_file->f_op->write) in coda_file_write()
81 ret = host_file->f_op->write(host_file, buf, count, ppos); in coda_file_write()
103 if (!host_file->f_op || !host_file->f_op->mmap) in coda_file_mmap()
122 return host_file->f_op->mmap(host_file, vma); in coda_file_mmap()
Ddir.c442 if (!host_file->f_op) in coda_readdir()
445 if (host_file->f_op->readdir) in coda_readdir()
458 ret = host_file->f_op->readdir(host_file, buf, filldir); in coda_readdir()
/fs/
Dread_write.c143 if (file->f_op && file->f_op->llseek) in vfs_llseek()
144 fn = file->f_op->llseek; in vfs_llseek()
263 ret = filp->f_op->aio_read(&kiocb, &iov, 1, kiocb.ki_pos); in do_sync_read()
283 if (!file->f_op || (!file->f_op->read && !file->f_op->aio_read)) in vfs_read()
291 if (file->f_op->read) in vfs_read()
292 ret = file->f_op->read(file, buf, count, pos); in vfs_read()
318 ret = filp->f_op->aio_write(&kiocb, &iov, 1, kiocb.ki_pos); in do_sync_write()
338 if (!file->f_op || (!file->f_op->write && !file->f_op->aio_write)) in vfs_write()
346 if (file->f_op->write) in vfs_write()
347 ret = file->f_op->write(file, buf, count, pos); in vfs_write()
[all …]
Dfile_table.c206 file->f_op = fop; in init_file()
276 if (file->f_op && file->f_op->fasync) in __fput()
277 file->f_op->fasync(-1, file, 0); in __fput()
279 if (file->f_op && file->f_op->release) in __fput()
280 file->f_op->release(inode, file); in __fput()
284 fops_put(file->f_op); in __fput()
Dbinfmt_aout.c69 return file->f_op->write(file, addr, nr, &file->f_pos) == nr; in dump_write()
77 if (file->f_op->llseek) { \
78 if (file->f_op->llseek(file,(offset),0) != (offset)) \
240 if (!bprm->file->f_op || !bprm->file->f_op->mmap) in load_aout_binary()
300 error = bprm->file->f_op->read(bprm->file, in load_aout_binary()
323 if (!bprm->file->f_op->mmap||((fd_offset & ~PAGE_MASK) != 0)) { in load_aout_binary()
328 bprm->file->f_op->read(bprm->file, in load_aout_binary()
411 if (!file->f_op || !file->f_op->mmap) in load_aout_library()
435 file->f_op->read(file, (char __user *)start_addr, in load_aout_library()
Dioctl.c41 if (!filp->f_op) in vfs_ioctl()
44 if (filp->f_op->unlocked_ioctl) { in vfs_ioctl()
45 error = filp->f_op->unlocked_ioctl(filp, cmd, arg); in vfs_ioctl()
49 } else if (filp->f_op->ioctl) { in vfs_ioctl()
51 error = filp->f_op->ioctl(filp->f_path.dentry->d_inode, in vfs_ioctl()
427 if (filp->f_op && filp->f_op->fasync) in ioctl_fioasync()
428 error = filp->f_op->fasync(fd, filp, on); in ioctl_fioasync()
Dfifo.c60 filp->f_op = &read_pipefifo_fops; in fifo_open()
89 filp->f_op = &write_pipefifo_fops; in fifo_open()
108 filp->f_op = &rdwr_pipefifo_fops; in fifo_open()
Dlocks.c1469 if (filp->f_op && filp->f_op->setlease) in vfs_setlease()
1470 error = filp->f_op->setlease(filp, arg, lease); in vfs_setlease()
1597 if (filp->f_op && filp->f_op->flock) in SYSCALL_DEFINE2()
1598 error = filp->f_op->flock(filp, in SYSCALL_DEFINE2()
1623 if (filp->f_op && filp->f_op->lock) in vfs_test_lock()
1624 return filp->f_op->lock(filp, F_GETLK, fl); in vfs_test_lock()
1735 if (filp->f_op && filp->f_op->lock) in vfs_lock_file()
1736 return filp->f_op->lock(filp, cmd, fl); in vfs_lock_file()
2008 if (filp->f_op && filp->f_op->flock) { in locks_remove_flock()
2016 filp->f_op->flock(filp, F_SETLKW, &fl); in locks_remove_flock()
[all …]
Dselect.c401 const struct file_operations *f_op = NULL; in do_select() local
419 f_op = file->f_op; in do_select()
421 if (f_op && f_op->poll) in do_select()
422 mask = (*f_op->poll)(file, retval ? NULL : wait); in do_select()
688 if (file->f_op && file->f_op->poll) in do_pollfd()
689 mask = file->f_op->poll(file, pwait); in do_pollfd()
Dbinfmt_em86.c42 (!bprm->file->f_op || !bprm->file->f_op->mmap)) { in load_em86()
Dfcntl.c174 if (filp->f_op && filp->f_op->check_flags) in setfl()
175 error = filp->f_op->check_flags(arg); in setfl()
185 if (filp->f_op && filp->f_op->fasync) { in setfl()
186 error = filp->f_op->fasync(fd, filp, (arg & FASYNC) != 0); in setfl()
Daio.c1374 rw_op = file->f_op->aio_read; in aio_rw_vect_retry()
1377 rw_op = file->f_op->aio_write; in aio_rw_vect_retry()
1418 if (file->f_op->aio_fsync) in aio_fdsync()
1419 ret = file->f_op->aio_fsync(iocb, 1); in aio_fdsync()
1428 if (file->f_op->aio_fsync) in aio_fsync()
1429 ret = file->f_op->aio_fsync(iocb, 0); in aio_fsync()
1490 if (file->f_op->aio_read) in aio_setup_iocb()
1508 if (file->f_op->aio_write) in aio_setup_iocb()
1522 if (file->f_op->aio_read) in aio_setup_iocb()
1536 if (file->f_op->aio_write) in aio_setup_iocb()
[all …]
Dnfsctl.c109 err = file->f_op->write(file, p, map[cmd].wsize, &file->f_pos); in SYSCALL_DEFINE3()
111 err = file->f_op->read(file, res, map[cmd].rsize, &file->f_pos); in SYSCALL_DEFINE3()
Dchar_dev.c391 filp->f_op = fops_get(p->ops); in chrdev_open()
392 if (!filp->f_op) in chrdev_open()
395 if (filp->f_op->open) { in chrdev_open()
396 ret = filp->f_op->open(inode,filp); in chrdev_open()
Dreaddir.c26 if (!file->f_op || !file->f_op->readdir) in vfs_readdir()
39 res = file->f_op->readdir(file, buf, filler); in vfs_readdir()
Dsplice.c530 ret = file->f_op->sendpage(file, buf->page, buf->offset, in pipe_to_sendpage()
896 if (unlikely(!out->f_op || !out->f_op->splice_write)) in do_splice_from()
909 return out->f_op->splice_write(pipe, out, ppos, len, flags); in do_splice_from()
921 if (unlikely(!in->f_op || !in->f_op->splice_read)) in do_splice_to()
931 return in->f_op->splice_read(in, ppos, pipe, len, flags); in do_splice_to()
1127 if (out->f_op->llseek == no_llseek) in do_splice()
1148 if (in->f_op->llseek == no_llseek) in do_splice()
Dbinfmt_flat.c197 ret = bprm->file->f_op->read(bprm->file, buf, LBUFSIZE, &fpos); in decompress_exec()
267 ret = bprm->file->f_op->read(bprm->file, buf, LBUFSIZE, &fpos); in decompress_exec()
574 result = bprm->file->f_op->read(bprm->file, (char *) datapos, in load_flat_file()
626 result = bprm->file->f_op->read(bprm->file, in load_flat_file()
636 result = bprm->file->f_op->read(bprm->file, in load_flat_file()
640 result = bprm->file->f_op->read(bprm->file, (char *) datapos, in load_flat_file()
Dopen.c829 f->f_op = fops_get(inode->i_fop); in __dentry_open()
836 if (!open && f->f_op) in __dentry_open()
837 open = f->f_op->open; in __dentry_open()
861 fops_put(f->f_op); in __dentry_open()
1102 if (filp->f_op && filp->f_op->flush) in filp_close()
1103 retval = filp->f_op->flush(filp, id); in filp_close()
Deventpoll.c526 return f->f_op == &eventpoll_fops; in is_file_epoll()
776 revents = tfile->f_op->poll(tfile, &epq.pt); in ep_insert()
866 revents = epi->ffd.file->f_op->poll(epi->ffd.file, NULL); in ep_modify()
942 revents = epi->ffd.file->f_op->poll(epi->ffd.file, NULL); in ep_send_events()
1180 if (!tfile->f_op || !tfile->f_op->poll) in SYSCALL_DEFINE4()
Dbinfmt_elf.c408 if (!interpreter->f_op || !interpreter->f_op->mmap) in load_elf_interp()
611 if (!bprm->file->f_op||!bprm->file->f_op->mmap) in load_elf_binary()
1058 !elf_check_arch(&elf_ex) || !file->f_op || !file->f_op->mmap) in load_elf_library()
1140 return file->f_op->write(file, addr, nr, &file->f_pos) == nr; in dump_write()
1145 if (file->f_op->llseek && file->f_op->llseek != no_llseek) { in dump_seek()
1146 if (file->f_op->llseek(file, off, SEEK_CUR) < 0) in dump_seek()
Dcompat.c1091 if (!file->f_op) in compat_do_readv_writev()
1144 fn = file->f_op->read; in compat_do_readv_writev()
1145 fnv = file->f_op->aio_read; in compat_do_readv_writev()
1147 fn = (io_fn_t)file->f_op->write; in compat_do_readv_writev()
1148 fnv = file->f_op->aio_write; in compat_do_readv_writev()
1184 if (!file->f_op || (!file->f_op->aio_read && !file->f_op->read)) in compat_sys_readv()
1210 if (!file->f_op || (!file->f_op->aio_write && !file->f_op->write)) in compat_sys_writev()
/fs/ecryptfs/
Dfile.c263 if (lower_file->f_op && lower_file->f_op->flush) in ecryptfs_flush()
264 rc = lower_file->f_op->flush(lower_file, td); in ecryptfs_flush()
290 if (lower_file->f_op && lower_file->f_op->fasync) in ecryptfs_fasync()
291 rc = lower_file->f_op->fasync(fd, lower_file, flag); in ecryptfs_fasync()
337 if (lower_file && lower_file->f_op && lower_file->f_op->ioctl) in ecryptfs_ioctl()
338 rc = lower_file->f_op->ioctl(ecryptfs_inode_to_lower(inode), in ecryptfs_ioctl()
/fs/9p/
Dvfs_file.c86 if(file->f_op == &v9fs_file_operations) in v9fs_file_open()
87 file->f_op = &v9fs_cached_file_operations; in v9fs_file_open()
/fs/autofs/
Dinode.c206 if (!pipe->f_op || !pipe->f_op->write) in autofs_fill_super()
/fs/notify/inotify/
Dinotify_user.c638 filp->f_op = &inotify_fops; in SYSCALL_DEFINE1()
691 if (unlikely(filp->f_op != &inotify_fops)) { in SYSCALL_DEFINE3()
732 if (unlikely(filp->f_op != &inotify_fops)) { in SYSCALL_DEFINE2()

12