/linux/fs/ |
H A D | read_write.c | 39 return file->f_op->fop_flags & FOP_UNSIGNED_OFFSET; in unsigned_offsets() 382 return file->f_op->llseek(file, offset, whence); in vfs_llseek() 488 ret = filp->f_op->read_iter(&kiocb, &iter); in new_sync_read() 521 if (unlikely(!file->f_op->read_iter || file->f_op->read)) in __kernel_read() 527 ret = file->f_op->read_iter(&kiocb, &iter); in __kernel_read() 566 if (file->f_op->read) in vfs_read() 567 ret = file->f_op->read(file, buf, count, pos); in vfs_read() 568 else if (file->f_op->read_iter) in vfs_read() 590 ret = filp->f_op->write_iter(&kiocb, &iter); in new_sync_write() 611 if (unlikely(!file->f_op->write_iter || file->f_op->write)) in __kernel_write_iter() [all …]
|
H A D | file_table.c | 309 file->f_op = fop; in file_init_path() 427 if (file->f_op->fasync) in __fput() 428 file->f_op->fasync(-1, file, 0); in __fput() 430 if (file->f_op->release) in __fput() 431 file->f_op->release(inode, file); in __fput() 436 fops_put(file->f_op); in __fput()
|
H A D | ioctl.c | 48 if (!filp->f_op->unlocked_ioctl) in vfs_ioctl() 51 error = filp->f_op->unlocked_ioctl(filp, cmd, arg); in vfs_ioctl() 378 if (filp->f_op->fasync) in ioctl_fioasync() 380 error = filp->f_op->fasync(fd, filp, on); in ioctl_fioasync() 943 if (!file->f_op->unlocked_ioctl) in compat_ptr_ioctl() 946 return file->f_op->unlocked_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); in compat_ptr_ioctl() 1006 if (fd_file(f)->f_op->compat_ioctl) in COMPAT_SYSCALL_DEFINE3() 1007 error = fd_file(f)->f_op->compat_ioctl(fd_file(f), cmd, arg); in COMPAT_SYSCALL_DEFINE3()
|
H A D | remap_range.c | 391 if (!file_in->f_op->remap_file_range) in vfs_clone_file_range() 403 ret = file_in->f_op->remap_file_range(file_in, pos_in, in vfs_clone_file_range() 475 if (!dst_file->f_op->remap_file_range) in vfs_dedupe_file_range_one() 483 ret = dst_file->f_op->remap_file_range(src_file, src_pos, dst_file, in vfs_dedupe_file_range_one() 518 if (!file->f_op->remap_file_range) in vfs_dedupe_file_range()
|
H A D | backing-file.c | 306 if (!out->f_op->splice_write) in backing_file_splice_write() 315 ret = out->f_op->splice_write(pipe, out, ppos, len, flags); in backing_file_splice_write() 336 if (!file->f_op->mmap) in backing_file_mmap()
|
H A D | splice.c | 365 ret = in->f_op->read_iter(&kiocb, &to); in copy_splice_read() 680 if (!out->f_op->write_iter) in iter_file_splice_write() 743 ret = out->f_op->write_iter(&kiocb, &from); in iter_file_splice_write() 939 if (unlikely(!out->f_op->splice_write)) in do_splice_from() 941 return out->f_op->splice_write(pipe, out, ppos, len, flags); in do_splice_from() 977 if (unlikely(!in->f_op->splice_read)) in do_splice_read() 985 return in->f_op->splice_read(in, ppos, pipe, len, flags); in do_splice_read() 1181 if (file->f_op->splice_eof) in direct_file_splice_eof() 1182 file->f_op->splice_eof(file); in direct_file_splice_eof()
|
H A D | sync.c | 184 if (!file->f_op->fsync) in vfs_fsync_range() 188 return file->f_op->fsync(file, start, end, datasync); in vfs_fsync_range()
|
H A D | locks.c | 1988 if (filp->f_op->setlease) in kernel_setlease() 1989 return filp->f_op->setlease(filp, arg, lease, priv); in kernel_setlease() 2176 if (fd_file(f)->f_op->flock) in SYSCALL_DEFINE2() 2177 error = fd_file(f)->f_op->flock(fd_file(f), in SYSCALL_DEFINE2() 2201 if (filp->f_op->lock) in vfs_test_lock() 2202 return filp->f_op->lock(filp, F_GETLK, fl); in vfs_test_lock() 2357 if (filp->f_op->lock) in vfs_lock_file() 2358 return filp->f_op->lock(filp, cmd, fl); in vfs_lock_file() 2657 if (filp->f_op->flock) in locks_remove_flock() 2658 filp->f_op->flock(filp, F_SETLKW, &fl); in locks_remove_flock() [all …]
|
/linux/fs/ecryptfs/ |
H A D | file.c | 196 if (!lower_file->f_op->mmap) in ecryptfs_mmap() 313 if (lower_file->f_op->flush) { in ecryptfs_flush() 315 return lower_file->f_op->flush(lower_file, td); in ecryptfs_flush() 360 if (lower_file->f_op->fasync) in ecryptfs_fasync() 361 rc = lower_file->f_op->fasync(fd, lower_file, flag); in ecryptfs_fasync() 371 if (!lower_file->f_op->unlocked_ioctl) in ecryptfs_unlocked_ioctl() 380 rc = lower_file->f_op->unlocked_ioctl(lower_file, cmd, arg); in ecryptfs_unlocked_ioctl() 396 if (!lower_file->f_op->compat_ioctl) in ecryptfs_compat_ioctl() 405 rc = lower_file->f_op->compat_ioctl(lower_file, cmd, arg); in ecryptfs_compat_ioctl()
|
/linux/drivers/hv/ |
H A D | hv_utils_transport.c | 33 hvt = container_of(file->f_op, struct hvutil_transport, fops); in hvt_op_read() 81 hvt = container_of(file->f_op, struct hvutil_transport, fops); in hvt_op_write() 101 hvt = container_of(file->f_op, struct hvutil_transport, fops); in hvt_op_poll() 120 hvt = container_of(file->f_op, struct hvutil_transport, fops); in hvt_op_open() 164 hvt = container_of(file->f_op, struct hvutil_transport, fops); in hvt_op_release()
|
/linux/io_uring/ |
H A D | rw.c | 667 nr = file->f_op->read(file, addr, len, ppos); in loop_rw_iter() 669 nr = file->f_op->write(file, addr, len, ppos); in loop_rw_iter() 753 !(req->file->f_op->fop_flags & FOP_BUFFER_RASYNC)) in io_rw_should_retry() 770 if (likely(file->f_op->read_iter)) in io_iter_do_read() 771 return file->f_op->read_iter(&rw->kiocb, iter); in io_iter_do_read() 772 else if (file->f_op->read) in io_iter_do_read() 814 if (!(kiocb->ki_flags & IOCB_DIRECT) || !file->f_op->iopoll) in io_rw_init_file() 1057 !(req->file->f_op->fop_flags & FOP_BUFFER_WASYNC) && in io_write() 1077 if (likely(req->file->f_op->write_iter)) in io_write() 1078 ret2 = req->file->f_op->write_iter(kiocb, &io->iter); in io_write() [all …]
|
H A D | uring_cmd.c | 71 file->f_op->uring_cmd(cmd, IO_URING_F_CANCEL | in io_uring_try_cancel_uring_cmd() 233 if (!file->f_op->uring_cmd) in io_uring_cmd() 247 if (!file->f_op->uring_cmd_iopoll) in io_uring_cmd() 253 ret = file->f_op->uring_cmd(ioucmd, issue_flags); in io_uring_cmd()
|
/linux/include/linux/ |
H A D | poll.h | 77 return file->f_op->poll; in file_can_poll() 82 if (unlikely(!file->f_op->poll)) in vfs_poll() 84 return file->f_op->poll(file, pt); in vfs_poll()
|
/linux/tools/bpf/bpftool/skeleton/ |
H A D | pid_iter.bpf.c | 89 file->f_op == &bpf_link_fops_poll) in iter() 98 if (file->f_op != fops) in iter()
|
/linux/drivers/usb/core/ |
H A D | file.c | 46 if (file->f_op->open) in usb_open() 47 err = file->f_op->open(inode, file); in usb_open()
|
/linux/drivers/accel/ |
H A D | drm_accel.c | 177 if (filp->f_op->open) in accel_stub_open() 178 err = filp->f_op->open(inode, filp); in accel_stub_open()
|
/linux/mm/ |
H A D | fadvise.c | 182 if (file->f_op->fadvise) in vfs_fadvise() 183 return file->f_op->fadvise(file, offset, len, advice); in vfs_fadvise()
|
/linux/drivers/char/ |
H A D | misc.c | 164 if (file->f_op->open) in misc_open() 165 err = file->f_op->open(inode, file); in misc_open()
|
/linux/fs/overlayfs/ |
H A D | file.c | 78 if (file->f_op->check_flags) { in ovl_change_flags() 79 err = file->f_op->check_flags(flags); in ovl_change_flags() 593 if (fd_file(real)->f_op->flush) { in ovl_flush() 595 err = fd_file(real)->f_op->flush(fd_file(real), id); in ovl_flush()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_task_file.c | 38 (long)file->f_op); in dump_task_file()
|
/linux/fs/nfs/ |
H A D | localio.c | 378 status = filp->f_op->read_iter(&iocb->kiocb, &iter); in nfs_local_call_read() 549 status = filp->f_op->write_iter(&iocb->kiocb, &iter); in nfs_local_call_write() 605 if (!filp->f_op->read_iter || !filp->f_op->write_iter) { in nfs_local_doio()
|
/linux/sound/core/ |
H A D | sound.c | 165 if (file->f_op->open) in snd_open() 166 err = file->f_op->open(inode, file); in snd_open()
|
/linux/security/landlock/ |
H A D | syscalls.c | 252 if (fd_file(ruleset_f)->f_op != &ruleset_fops) { in get_ruleset_from_fd() 294 if ((fd_file(f)->f_op == &ruleset_fops) || in get_path_from_fd()
|
/linux/arch/powerpc/platforms/cell/spufs/ |
H A D | syscalls.c | 48 if (filp->f_op != &spufs_context_fops) in do_spu_run()
|
/linux/sound/ |
H A D | sound_core.c | 591 if (!file->f_op->open) in soundcore_open() 594 return file->f_op->open(inode, file); in soundcore_open()
|