/Linux-v6.1/io_uring/ |
D | rw.c | 25 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() 132 static inline void io_rw_done(struct kiocb *kiocb, ssize_t ret) in io_rw_done() argument 149 kiocb->ki_complete(kiocb, ret); in io_rw_done() 157 if (rw->kiocb.ki_pos != -1) in io_kiocb_update_pos() 158 return &rw->kiocb.ki_pos; in io_kiocb_update_pos() 162 rw->kiocb.ki_pos = req->file->f_pos; in io_kiocb_update_pos() 163 return &rw->kiocb.ki_pos; in io_kiocb_update_pos() [all …]
|
/Linux-v6.1/include/linux/ |
D | aio.h | 8 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()
|
D | fs.h | 58 struct kiocb; 92 typedef int (dio_iodone_t)(struct kiocb *iocb, loff_t offset, 341 struct kiocb { struct 344 void (*ki_complete)(struct kiocb *iocb, long ret); argument 351 static inline bool is_sync_kiocb(struct kiocb *kiocb) in is_sync_kiocb() argument 353 return kiocb->ki_complete == NULL; in is_sync_kiocb() 380 ssize_t (*direct_IO)(struct kiocb *, struct iov_iter *iter); 397 int (*swap_rw)(struct kiocb *iocb, struct iov_iter *iter); 2108 ssize_t (*read_iter) (struct kiocb *, struct iov_iter *); 2109 ssize_t (*write_iter) (struct kiocb *, struct iov_iter *); [all …]
|
D | iomap.h | 19 struct kiocb; 227 ssize_t iomap_file_buffered_write(struct kiocb *iocb, struct iov_iter *from, 311 int (*end_io)(struct kiocb *iocb, ssize_t size, int error, 353 ssize_t iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, 356 struct iomap_dio *__iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter,
|
D | nfs_fs.h | 510 int nfs_swap_rw(struct kiocb *iocb, struct iov_iter *iter); 511 ssize_t nfs_file_direct_read(struct kiocb *iocb, 513 ssize_t nfs_file_direct_write(struct kiocb *iocb,
|
/Linux-v6.1/fs/cifs/ |
D | cifsfs.h | 97 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-v6.1/fs/ |
D | read_write.c | 381 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 …]
|
D | aio.c | 200 struct kiocb rw; 588 void kiocb_set_cancel_fn(struct kiocb *iocb, kiocb_cancel_fn *cancel) in kiocb_set_cancel_fn() 1444 static void aio_complete_rw(struct kiocb *kiocb, long res) in aio_complete_rw() argument 1446 struct aio_kiocb *iocb = container_of(kiocb, struct aio_kiocb, rw); in aio_complete_rw() 1451 if (kiocb->ki_flags & IOCB_WRITE) { in aio_complete_rw() 1452 struct inode *inode = file_inode(kiocb->ki_filp); in aio_complete_rw() 1460 file_end_write(kiocb->ki_filp); in aio_complete_rw() 1468 static int aio_prep_rw(struct kiocb *req, const struct iocb *iocb) in aio_prep_rw() 1518 static inline void aio_rw_done(struct kiocb *req, ssize_t ret) in aio_rw_done() 1538 static int aio_read(struct kiocb *req, const struct iocb *iocb, in aio_read() [all …]
|
D | seq_file.c | 154 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-v6.1/fs/ext2/ |
D | file.c | 33 static ssize_t ext2_dax_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext2_dax_read_iter() 49 static ssize_t ext2_dax_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext2_dax_write_iter() 164 static ssize_t ext2_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext2_file_read_iter() 173 static ssize_t ext2_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext2_file_write_iter()
|
/Linux-v6.1/fs/ext4/ |
D | file.c | 55 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() 228 static ssize_t ext4_generic_write_checks(struct kiocb *iocb, in ext4_generic_write_checks() 256 static ssize_t ext4_write_checks(struct kiocb *iocb, struct iov_iter *from) in ext4_write_checks() 270 static ssize_t ext4_buffered_write_iter(struct kiocb *iocb, in ext4_buffered_write_iter() 386 static int ext4_dio_write_end_io(struct kiocb *iocb, ssize_t size, in ext4_dio_write_end_io() 437 static ssize_t ext4_dio_write_checks(struct kiocb *iocb, struct iov_iter *from, in ext4_dio_write_checks() 486 static ssize_t ext4_dio_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext4_dio_write_iter() [all …]
|
/Linux-v6.1/block/ |
D | fops.c | 35 static blk_opf_t dio_bio_write_op(struct kiocb *iocb) in dio_bio_write_op() 54 static ssize_t __blkdev_direct_IO_simple(struct kiocb *iocb, in __blkdev_direct_IO_simple() 119 struct kiocb *iocb; 140 struct kiocb *iocb = dio->iocb; in blkdev_bio_end_io() 170 static ssize_t __blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter, in __blkdev_direct_IO() 272 struct kiocb *iocb = dio->iocb; in blkdev_bio_end_io_async() 294 static ssize_t __blkdev_direct_IO_async(struct kiocb *iocb, in __blkdev_direct_IO_async() 358 static ssize_t blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter) in blkdev_direct_IO() 510 static ssize_t blkdev_write_iter(struct kiocb *iocb, struct iov_iter *from) in blkdev_write_iter() 549 static ssize_t blkdev_read_iter(struct kiocb *iocb, struct iov_iter *to) in blkdev_read_iter()
|
/Linux-v6.1/fs/xfs/ |
D | xfs_file.c | 202 struct kiocb *iocb, in xfs_ilock_iocb() 219 struct kiocb *iocb, in xfs_file_dio_read() 243 struct kiocb *iocb, in xfs_file_dax_read() 266 struct kiocb *iocb, in xfs_file_buffered_read() 285 struct kiocb *iocb, in xfs_file_read_iter() 318 struct kiocb *iocb, in xfs_file_write_checks() 425 struct kiocb *iocb, in xfs_dio_write_end_io() 520 struct kiocb *iocb, in xfs_file_dio_write_aligned() 571 struct kiocb *iocb, in xfs_file_dio_write_unaligned() 643 struct kiocb *iocb, in xfs_file_dio_write() [all …]
|
/Linux-v6.1/fs/overlayfs/ |
D | file.c | 19 struct kiocb iocb; 21 struct kiocb *orig_iocb; 269 struct kiocb *iocb = &aio_req->iocb; in ovl_aio_cleanup_handler() 270 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_cleanup_handler() 286 static void ovl_aio_rw_complete(struct kiocb *iocb, long res) in ovl_aio_rw_complete() 290 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_rw_complete() 296 static ssize_t ovl_read_iter(struct kiocb *iocb, struct iov_iter *iter) in ovl_read_iter() 347 static ssize_t ovl_write_iter(struct kiocb *iocb, struct iov_iter *iter) in ovl_write_iter()
|
/Linux-v6.1/fs/fuse/ |
D | cuse.c | 94 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-v6.1/net/qrtr/ |
D | tun.c | 59 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-v6.1/drivers/usb/gadget/function/ |
D | f_fs.c | 214 struct kiocb *kiocb; member 830 bool kiocb_has_eventfd = io_data->kiocb->ki_flags & IOCB_EVENTFD; in ffs_user_copy_worker() 838 io_data->kiocb->ki_complete(io_data->kiocb, ret); in ffs_user_copy_worker() 1170 static int ffs_aio_cancel(struct kiocb *kiocb) in ffs_aio_cancel() argument 1172 struct ffs_io_data *io_data = kiocb->private; in ffs_aio_cancel() 1173 struct ffs_epfile *epfile = kiocb->ki_filp->private_data; in ffs_aio_cancel() 1191 static ssize_t ffs_epfile_write_iter(struct kiocb *kiocb, struct iov_iter *from) in ffs_epfile_write_iter() argument 1198 if (!is_sync_kiocb(kiocb)) { in ffs_epfile_write_iter() 1209 p->kiocb = kiocb; in ffs_epfile_write_iter() 1213 kiocb->private = p; in ffs_epfile_write_iter() [all …]
|
/Linux-v6.1/drivers/nvme/target/ |
D | io-cmd-file.c | 96 struct kiocb *iocb = &req->f.iocb; in nvmet_file_submit_bvec() 97 ssize_t (*call_iter)(struct kiocb *iocb, struct iov_iter *iter); in nvmet_file_submit_bvec() 120 static void nvmet_file_io_done(struct kiocb *iocb, long ret) in nvmet_file_io_done() 157 memset(&req->f.iocb, 0, sizeof(struct kiocb)); in nvmet_file_execute_io()
|
/Linux-v6.1/fs/configfs/ |
D | file.c | 80 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-v6.1/fs/cachefiles/ |
D | ondemand.c | 40 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-v6.1/fs/iomap/ |
D | direct-io.c | 29 struct kiocb *iocb; 83 struct kiocb *iocb = dio->iocb; in iomap_dio_complete() 142 struct kiocb *iocb = dio->iocb; in iomap_dio_complete_work() 484 __iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, in __iomap_dio_rw() 684 iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, in iomap_dio_rw()
|
/Linux-v6.1/drivers/char/ |
D | random.c | 1334 static ssize_t random_write_iter(struct kiocb *kiocb, struct iov_iter *iter) in random_write_iter() argument 1339 static ssize_t urandom_read_iter(struct kiocb *kiocb, struct iov_iter *iter) in urandom_read_iter() argument 1363 static ssize_t random_read_iter(struct kiocb *kiocb, struct iov_iter *iter) in random_read_iter() argument 1368 ((kiocb->ki_flags & (IOCB_NOWAIT | IOCB_NOIO)) || in random_read_iter() 1369 (kiocb->ki_filp->f_flags & O_NONBLOCK))) in random_read_iter()
|
/Linux-v6.1/fs/9p/ |
D | vfs_file.c | 366 v9fs_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in v9fs_file_read_iter() 392 v9fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in v9fs_file_write_iter() 573 v9fs_mmap_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in v9fs_mmap_file_read_iter() 586 v9fs_mmap_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in v9fs_mmap_file_write_iter()
|
/Linux-v6.1/fs/udf/ |
D | file.c | 107 static ssize_t udf_adinicb_direct_IO(struct kiocb *iocb, struct iov_iter *iter) in udf_adinicb_direct_IO() 137 static ssize_t udf_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in udf_file_write_iter()
|
/Linux-v6.1/fs/ocfs2/ |
D | aops.h | 53 static inline void ocfs2_iocb_set_rw_locked(struct kiocb *iocb, int level) in ocfs2_iocb_set_rw_locked()
|