Home
last modified time | relevance | path

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

12345

/linux/fs/
H A Dread_write.c39 return file->f_op->fop_flags & FOP_UNSIGNED_OFFSET; in unsigned_offsets()
382 return file->f_op->llseek(file, offset, whence); in vfs_llseek()
484 ret = filp->f_op->read_iter(&kiocb, &iter); in new_sync_read()
517 if (unlikely(!file->f_op->read_iter || file->f_op->read)) in __kernel_read()
523 ret = file->f_op->read_iter(&kiocb, &iter); in __kernel_read()
562 if (file->f_op->read) in vfs_read()
563 ret = file->f_op->read(file, buf, count, pos); in vfs_read()
564 else if (file->f_op->read_iter) in vfs_read()
586 ret = filp->f_op->write_iter(&kiocb, &iter); in new_sync_write()
607 if (unlikely(!file->f_op->write_iter || file->f_op->write)) in __kernel_write_iter()
[all …]
H A Dfile_table.c177 f->f_op = NULL; in init_file()
328 file->f_op = fop; in file_init_path()
446 if (file->f_op->fasync) in __fput()
447 file->f_op->fasync(-1, file, 0); in __fput()
449 if (file->f_op->release) in __fput()
450 file->f_op->release(inode, file); in __fput()
455 fops_put(file->f_op); in __fput()
H A Dopen.c323 if (!file->f_op->fallocate) in vfs_fallocate()
327 ret = file->f_op->fallocate(file, mode, offset, len); in vfs_fallocate()
905 f->f_op = &empty_fops; in do_dentry_open()
922 f->f_op = fops_get(inode->i_fop); in do_dentry_open()
923 if (WARN_ON(!f->f_op)) { in do_dentry_open()
943 open = f->f_op->open; in do_dentry_open()
951 likely(f->f_op->read || f->f_op->read_iter)) in do_dentry_open()
954 likely(f->f_op->write || f->f_op->write_iter)) in do_dentry_open()
956 if ((f->f_mode & FMODE_LSEEK) && !f->f_op->llseek) in do_dentry_open()
1001 fops_put(f->f_op); in do_dentry_open()
[all …]
H A Dremap_range.c391 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 Dioctl.c48 if (!filp->f_op->unlocked_ioctl) in vfs_ioctl()
51 error = filp->f_op->unlocked_ioctl(filp, cmd, arg); in vfs_ioctl()
377 if (filp->f_op->fasync) in ioctl_fioasync()
379 error = filp->f_op->fasync(fd, filp, on); in ioctl_fioasync()
940 if (!file->f_op->unlocked_ioctl) in compat_ptr_ioctl()
943 return file->f_op->unlocked_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); in compat_ptr_ioctl()
1003 if (fd_file(f)->f_op->compat_ioctl) in COMPAT_SYSCALL_DEFINE3()
1004 error = fd_file(f)->f_op->compat_ioctl(fd_file(f), cmd, arg); in COMPAT_SYSCALL_DEFINE3()
H A Dsplice.c365 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 Dsync.c183 if (!file->f_op->fsync) in vfs_fsync_range()
187 return file->f_op->fsync(file, start, end, datasync); in vfs_fsync_range()
H A Dlocks.c1988 if (filp->f_op->setlease) in kernel_setlease()
1989 return filp->f_op->setlease(filp, arg, lease, priv); in kernel_setlease()
2174 if (fd_file(f)->f_op->flock) in SYSCALL_DEFINE2()
2175 error = fd_file(f)->f_op->flock(fd_file(f), in SYSCALL_DEFINE2()
2196 if (filp->f_op->lock) in vfs_test_lock()
2197 return filp->f_op->lock(filp, F_GETLK, fl); in vfs_test_lock()
2352 if (filp->f_op->lock) in vfs_lock_file()
2353 return filp->f_op->lock(filp, cmd, fl); in vfs_lock_file()
2652 if (filp->f_op->flock) in locks_remove_flock()
2653 filp->f_op->flock(filp, F_SETLKW, &fl); in locks_remove_flock()
[all …]
H A Deventfd.c330 if (file->f_op != &eventfd_fops) { in eventfd_fget()
370 if (file->f_op != &eventfd_fops) in eventfd_ctx_fileget()
/linux/fs/ecryptfs/
H A Dfile.c196 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 Dhv_utils_transport.c33 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 Drw.c666 nr = file->f_op->read(file, addr, len, ppos); in loop_rw_iter()
668 nr = file->f_op->write(file, addr, len, ppos); in loop_rw_iter()
752 !(req->file->f_op->fop_flags & FOP_BUFFER_RASYNC)) in io_rw_should_retry()
769 if (likely(file->f_op->read_iter)) in io_iter_do_read()
770 return file->f_op->read_iter(&rw->kiocb, iter); in io_iter_do_read()
771 else if (file->f_op->read) in io_iter_do_read()
813 if (!(kiocb->ki_flags & IOCB_DIRECT) || !file->f_op->iopoll) in io_rw_init_file()
1061 !(req->file->f_op->fop_flags & FOP_BUFFER_WASYNC) && in io_write()
1081 if (likely(req->file->f_op->write_iter)) in io_write()
1082 ret2 = req->file->f_op->write_iter(kiocb, &io->iter); in io_write()
[all …]
H A During_cmd.c71 file->f_op->uring_cmd(cmd, IO_URING_F_CANCEL | in io_uring_try_cancel_uring_cmd()
241 if (!file->f_op->uring_cmd) in io_uring_cmd()
255 if (!file->f_op->uring_cmd_iopoll) in io_uring_cmd()
261 ret = file->f_op->uring_cmd(ioucmd, issue_flags); in io_uring_cmd()
/linux/include/linux/
H A Dpoll.h77 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 Dpid_iter.bpf.c89 file->f_op == &bpf_link_fops_poll) in iter()
98 if (file->f_op != fops) in iter()
/linux/drivers/usb/core/
H A Dfile.c46 if (file->f_op->open) in usb_open()
47 err = file->f_op->open(inode, file); in usb_open()
/linux/drivers/accel/
H A Ddrm_accel.c177 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 Dfadvise.c182 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 Dmisc.c164 if (file->f_op->open) in misc_open()
165 err = file->f_op->open(inode, file); in misc_open()
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_task_file.c38 (long)file->f_op); in dump_task_file()
/linux/arch/powerpc/platforms/cell/spufs/
H A Dsyscalls.c48 if (filp->f_op != &spufs_context_fops) in do_spu_run()
/linux/fs/nfs/
H A Dlocalio.c381 status = filp->f_op->read_iter(&iocb->kiocb, &iter); in nfs_local_call_read()
399 if (!file->f_op->read_iter) in nfs_do_local_read()
553 status = filp->f_op->write_iter(&iocb->kiocb, &iter); in nfs_local_call_write()
574 if (!file->f_op->write_iter) in nfs_do_local_write()
/linux/security/landlock/
H A Dsyscalls.c251 if (fd_file(ruleset_f)->f_op != &ruleset_fops) in get_ruleset_from_fd()
281 if ((fd_file(f)->f_op == &ruleset_fops) || in get_path_from_fd()
/linux/sound/
H A Dsound_core.c591 if (!file->f_op->open) in soundcore_open()
594 return file->f_op->open(inode, file); in soundcore_open()
/linux/drivers/target/
H A Dtarget_core_file.c302 ret = file->f_op->write_iter(&aio_cmd->iocb, &iter); in fd_execute_rw_aio()
304 ret = file->f_op->read_iter(&aio_cmd->iocb, &iter); in fd_execute_rw_aio()
570 if (!file->f_op->fallocate) in fd_execute_unmap()
573 ret = file->f_op->fallocate(file, mode, pos, len); in fd_execute_unmap()

12345