Home
last modified time | relevance | path

Searched refs:kiocb (Results 1 – 25 of 131) sorted by relevance

123456

/linux-6.6.21/io_uring/
Drw.c25 struct kiocb kiocb; member
82 rw->kiocb.ki_pos = READ_ONCE(sqe->off); in io_prep_rw()
104 rw->kiocb.ki_ioprio = ioprio; in io_prep_rw()
106 rw->kiocb.ki_ioprio = get_current_ioprio(); in io_prep_rw()
108 rw->kiocb.dio_complete = NULL; in io_prep_rw()
133 static inline void io_rw_done(struct kiocb *kiocb, ssize_t ret) in io_rw_done() argument
150 kiocb->ki_complete(kiocb, ret); in io_rw_done()
158 if (rw->kiocb.ki_pos != -1) in io_kiocb_update_pos()
159 return &rw->kiocb.ki_pos; in io_kiocb_update_pos()
163 rw->kiocb.ki_pos = req->file->f_pos; in io_kiocb_update_pos()
[all …]
/linux-6.6.21/include/linux/
Daio.h8 struct kiocb;
11 typedef int (kiocb_cancel_fn)(struct kiocb *);
16 void kiocb_set_cancel_fn(struct kiocb *req, kiocb_cancel_fn *cancel);
19 static inline void kiocb_set_cancel_fn(struct kiocb *req, in kiocb_set_cancel_fn()
Dfs.h58 struct kiocb;
92 typedef int (dio_iodone_t)(struct kiocb *iocb, loff_t offset,
373 struct kiocb { struct
376 void (*ki_complete)(struct kiocb *iocb, long ret); argument
399 static inline bool is_sync_kiocb(struct kiocb *kiocb) in is_sync_kiocb() argument
401 return kiocb->ki_complete == NULL; in is_sync_kiocb()
428 ssize_t (*direct_IO)(struct kiocb *, struct iov_iter *iter);
445 int (*swap_rw)(struct kiocb *iocb, struct iov_iter *iter);
1918 ssize_t (*read_iter) (struct kiocb *, struct iov_iter *);
1919 ssize_t (*write_iter) (struct kiocb *, struct iov_iter *);
[all …]
Diomap.h20 struct kiocb;
259 ssize_t iomap_file_buffered_write(struct kiocb *iocb, struct iov_iter *from,
349 int (*end_io)(struct kiocb *iocb, ssize_t size, int error,
385 ssize_t iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter,
388 struct iomap_dio *__iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter,
/linux-6.6.21/fs/
Dread_write.c381 struct kiocb kiocb; in new_sync_read() local
385 init_sync_kiocb(&kiocb, filp); in new_sync_read()
386 kiocb.ki_pos = (ppos ? *ppos : 0); in new_sync_read()
389 ret = call_read_iter(filp, &kiocb, &iter); in new_sync_read()
392 *ppos = kiocb.ki_pos; in new_sync_read()
410 struct kiocb kiocb; in __kernel_read() local
425 init_sync_kiocb(&kiocb, file); in __kernel_read()
426 kiocb.ki_pos = pos ? *pos : 0; in __kernel_read()
428 ret = file->f_op->read_iter(&kiocb, &iter); in __kernel_read()
431 *pos = kiocb.ki_pos; in __kernel_read()
[all …]
Daio.c200 struct kiocb rw;
591 void kiocb_set_cancel_fn(struct kiocb *iocb, kiocb_cancel_fn *cancel) in kiocb_set_cancel_fn()
1447 static void aio_complete_rw(struct kiocb *kiocb, long res) in aio_complete_rw() argument
1449 struct aio_kiocb *iocb = container_of(kiocb, struct aio_kiocb, rw); in aio_complete_rw()
1454 if (kiocb->ki_flags & IOCB_WRITE) { in aio_complete_rw()
1455 struct inode *inode = file_inode(kiocb->ki_filp); in aio_complete_rw()
1458 kiocb_end_write(kiocb); in aio_complete_rw()
1466 static int aio_prep_rw(struct kiocb *req, const struct iocb *iocb) in aio_prep_rw()
1516 static inline void aio_rw_done(struct kiocb *req, ssize_t ret) in aio_rw_done()
1536 static int aio_read(struct kiocb *req, const struct iocb *iocb, in aio_read()
[all …]
Dseq_file.c154 struct kiocb kiocb; in seq_read() local
158 init_sync_kiocb(&kiocb, file); in seq_read()
161 kiocb.ki_pos = *ppos; in seq_read()
162 ret = seq_read_iter(&kiocb, &iter); in seq_read()
163 *ppos = kiocb.ki_pos; in seq_read()
171 ssize_t seq_read_iter(struct kiocb *iocb, struct iov_iter *iter) in seq_read_iter()
/linux-6.6.21/fs/smb/client/
Dcifsfs.h97 extern ssize_t cifs_user_readv(struct kiocb *iocb, struct iov_iter *to);
98 extern ssize_t cifs_direct_readv(struct kiocb *iocb, struct iov_iter *to);
99 extern ssize_t cifs_strict_readv(struct kiocb *iocb, struct iov_iter *to);
100 extern ssize_t cifs_user_writev(struct kiocb *iocb, struct iov_iter *from);
101 extern ssize_t cifs_direct_writev(struct kiocb *iocb, struct iov_iter *from);
102 extern ssize_t cifs_strict_writev(struct kiocb *iocb, struct iov_iter *from);
/linux-6.6.21/fs/ext2/
Dfile.c35 static ssize_t ext2_dax_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext2_dax_read_iter()
51 static ssize_t ext2_dax_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext2_dax_write_iter()
166 static ssize_t ext2_dio_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext2_dio_read_iter()
181 static int ext2_dio_write_end_io(struct kiocb *iocb, ssize_t size, in ext2_dio_write_end_io()
212 static ssize_t ext2_dio_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext2_dio_write_iter()
281 static ssize_t ext2_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext2_file_read_iter()
293 static ssize_t ext2_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext2_file_write_iter()
Dtrace.h12 TP_PROTO(struct kiocb *iocb, struct iov_iter *iter, ssize_t ret),
47 TP_PROTO(struct kiocb *iocb, struct iov_iter *iter, ssize_t ret), \
56 TP_PROTO(struct kiocb *iocb, ssize_t size, int ret),
/linux-6.6.21/fs/ext4/
Dfile.c55 static bool ext4_should_use_dio(struct kiocb *iocb, struct iov_iter *iter) in ext4_should_use_dio()
69 static ssize_t ext4_dio_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext4_dio_read_iter()
102 static ssize_t ext4_dax_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext4_dax_read_iter()
130 static ssize_t ext4_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext4_file_read_iter()
243 static ssize_t ext4_generic_write_checks(struct kiocb *iocb, in ext4_generic_write_checks()
271 static ssize_t ext4_write_checks(struct kiocb *iocb, struct iov_iter *from) in ext4_write_checks()
285 static ssize_t ext4_buffered_write_iter(struct kiocb *iocb, in ext4_buffered_write_iter()
374 static int ext4_dio_write_end_io(struct kiocb *iocb, ssize_t size, in ext4_dio_write_end_io()
421 static ssize_t ext4_dio_write_checks(struct kiocb *iocb, struct iov_iter *from, in ext4_dio_write_checks()
498 static ssize_t ext4_dio_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext4_dio_write_iter()
[all …]
/linux-6.6.21/block/
Dfops.c27 static blk_opf_t dio_bio_write_op(struct kiocb *iocb) in dio_bio_write_op()
46 static ssize_t __blkdev_direct_IO_simple(struct kiocb *iocb, in __blkdev_direct_IO_simple()
111 struct kiocb *iocb;
132 struct kiocb *iocb = dio->iocb; in blkdev_bio_end_io()
162 static ssize_t __blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter, in __blkdev_direct_IO()
279 struct kiocb *iocb = dio->iocb; in blkdev_bio_end_io_async()
301 static ssize_t __blkdev_direct_IO_async(struct kiocb *iocb, in __blkdev_direct_IO_async()
366 static ssize_t blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter) in blkdev_direct_IO()
609 blkdev_direct_write(struct kiocb *iocb, struct iov_iter *from) in blkdev_direct_write()
632 static ssize_t blkdev_buffered_write(struct kiocb *iocb, struct iov_iter *from) in blkdev_buffered_write()
[all …]
/linux-6.6.21/fs/xfs/
Dxfs_file.c202 struct kiocb *iocb, in xfs_ilock_iocb()
219 struct kiocb *iocb, in xfs_ilock_iocb_for_write()
256 struct kiocb *iocb, in xfs_file_dio_read()
280 struct kiocb *iocb, in xfs_file_dax_read()
303 struct kiocb *iocb, in xfs_file_buffered_read()
322 struct kiocb *iocb, in xfs_file_read_iter()
383 struct kiocb *iocb, in xfs_file_write_checks()
490 struct kiocb *iocb, in xfs_dio_write_end_io()
585 struct kiocb *iocb, in xfs_file_dio_write_aligned()
636 struct kiocb *iocb, in xfs_file_dio_write_unaligned()
[all …]
/linux-6.6.21/fs/overlayfs/
Dfile.c19 struct kiocb iocb;
21 struct kiocb *orig_iocb;
289 struct kiocb *iocb = &aio_req->iocb; in ovl_aio_cleanup_handler()
290 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_cleanup_handler()
303 static void ovl_aio_rw_complete(struct kiocb *iocb, long res) in ovl_aio_rw_complete()
307 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_rw_complete()
313 static ssize_t ovl_read_iter(struct kiocb *iocb, struct iov_iter *iter) in ovl_read_iter()
362 static ssize_t ovl_write_iter(struct kiocb *iocb, struct iov_iter *iter) in ovl_write_iter()
/linux-6.6.21/fs/fuse/
Dcuse.c94 static ssize_t cuse_read_iter(struct kiocb *kiocb, struct iov_iter *to) in cuse_read_iter() argument
96 struct fuse_io_priv io = FUSE_IO_PRIV_SYNC(kiocb); in cuse_read_iter()
102 static ssize_t cuse_write_iter(struct kiocb *kiocb, struct iov_iter *from) in cuse_write_iter() argument
104 struct fuse_io_priv io = FUSE_IO_PRIV_SYNC(kiocb); in cuse_write_iter()
/linux-6.6.21/fs/iomap/
Ddirect-io.c31 struct kiocb *iocb;
67 struct kiocb *iocb = dio->iocb; in iomap_dio_submit_bio()
86 struct kiocb *iocb = dio->iocb; in iomap_dio_complete()
144 struct kiocb *iocb = dio->iocb; in iomap_dio_complete_work()
163 struct kiocb *iocb = dio->iocb; in iomap_dio_bio_end_io()
540 __iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, in __iomap_dio_rw()
742 iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, in iomap_dio_rw()
/linux-6.6.21/fs/zonefs/
Dfile.c344 static int zonefs_file_write_dio_end_io(struct kiocb *iocb, ssize_t size, in zonefs_file_write_dio_end_io()
412 static ssize_t zonefs_write_checks(struct kiocb *iocb, struct iov_iter *from) in zonefs_write_checks()
456 static ssize_t zonefs_file_dio_write(struct kiocb *iocb, struct iov_iter *from) in zonefs_file_dio_write()
541 static ssize_t zonefs_file_buffered_write(struct kiocb *iocb, in zonefs_file_buffered_write()
577 static ssize_t zonefs_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in zonefs_file_write_iter()
602 static int zonefs_file_read_dio_end_io(struct kiocb *iocb, ssize_t size, in zonefs_file_read_dio_end_io()
617 static ssize_t zonefs_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in zonefs_file_read_iter()
/linux-6.6.21/fs/btrfs/
Dbtrfs_inode.h509 ssize_t btrfs_encoded_read(struct kiocb *iocb, struct iov_iter *iter,
511 ssize_t btrfs_do_encoded_write(struct kiocb *iocb, struct iov_iter *from,
514 ssize_t btrfs_dio_read(struct kiocb *iocb, struct iov_iter *iter,
516 struct iomap_dio *btrfs_dio_write(struct kiocb *iocb, struct iov_iter *iter,
Dfile.h19 ssize_t btrfs_do_write_iter(struct kiocb *iocb, struct iov_iter *from,
/linux-6.6.21/net/qrtr/
Dtun.c59 static ssize_t qrtr_tun_read_iter(struct kiocb *iocb, struct iov_iter *to) in qrtr_tun_read_iter()
85 static ssize_t qrtr_tun_write_iter(struct kiocb *iocb, struct iov_iter *from) in qrtr_tun_write_iter()
/linux-6.6.21/drivers/usb/gadget/function/
Df_fs.c214 struct kiocb *kiocb; member
823 bool kiocb_has_eventfd = io_data->kiocb->ki_flags & IOCB_EVENTFD; in ffs_user_copy_worker()
831 io_data->kiocb->ki_complete(io_data->kiocb, ret); in ffs_user_copy_worker()
1160 static int ffs_aio_cancel(struct kiocb *kiocb) in ffs_aio_cancel() argument
1162 struct ffs_io_data *io_data = kiocb->private; in ffs_aio_cancel()
1163 struct ffs_epfile *epfile = kiocb->ki_filp->private_data; in ffs_aio_cancel()
1179 static ssize_t ffs_epfile_write_iter(struct kiocb *kiocb, struct iov_iter *from) in ffs_epfile_write_iter() argument
1184 if (!is_sync_kiocb(kiocb)) { in ffs_epfile_write_iter()
1195 p->kiocb = kiocb; in ffs_epfile_write_iter()
1199 kiocb->private = p; in ffs_epfile_write_iter()
[all …]
/linux-6.6.21/drivers/nvme/target/
Dio-cmd-file.c79 struct kiocb *iocb = &req->f.iocb; in nvmet_file_submit_bvec()
80 ssize_t (*call_iter)(struct kiocb *iocb, struct iov_iter *iter); in nvmet_file_submit_bvec()
103 static void nvmet_file_io_done(struct kiocb *iocb, long ret) in nvmet_file_io_done()
140 memset(&req->f.iocb, 0, sizeof(struct kiocb)); in nvmet_file_execute_io()
/linux-6.6.21/fs/cachefiles/
Dondemand.c40 static ssize_t cachefiles_ondemand_fd_write_iter(struct kiocb *kiocb, in cachefiles_ondemand_fd_write_iter() argument
43 struct cachefiles_object *object = kiocb->ki_filp->private_data; in cachefiles_ondemand_fd_write_iter()
47 loff_t pos = kiocb->ki_pos; in cachefiles_ondemand_fd_write_iter()
/linux-6.6.21/fs/configfs/
Dfile.c80 static ssize_t configfs_read_iter(struct kiocb *iocb, struct iov_iter *to) in configfs_read_iter()
106 static ssize_t configfs_bin_read_iter(struct kiocb *iocb, struct iov_iter *to) in configfs_bin_read_iter()
220 static ssize_t configfs_write_iter(struct kiocb *iocb, struct iov_iter *from) in configfs_write_iter()
236 static ssize_t configfs_bin_write_iter(struct kiocb *iocb, in configfs_bin_write_iter()
/linux-6.6.21/drivers/char/
Drandom.c1428 static ssize_t random_write_iter(struct kiocb *kiocb, struct iov_iter *iter) in random_write_iter() argument
1433 static ssize_t urandom_read_iter(struct kiocb *kiocb, struct iov_iter *iter) in urandom_read_iter() argument
1457 static ssize_t random_read_iter(struct kiocb *kiocb, struct iov_iter *iter) in random_read_iter() argument
1462 ((kiocb->ki_flags & (IOCB_NOWAIT | IOCB_NOIO)) || in random_read_iter()
1463 (kiocb->ki_filp->f_flags & O_NONBLOCK))) in random_read_iter()

123456