/kernel/linux/linux-5.10/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 | iomap.h | 19 struct kiocb; 156 ssize_t iomap_file_buffered_write(struct kiocb *iocb, struct iov_iter *from, 253 int (*end_io)(struct kiocb *iocb, ssize_t size, int error, 259 ssize_t iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, 262 struct iomap_dio *__iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, 266 int iomap_dio_iopoll(struct kiocb *kiocb, bool spin);
|
D | fs.h | 54 struct kiocb; 93 typedef int (dio_iodone_t)(struct kiocb *iocb, loff_t offset, 321 struct kiocb { struct 328 void (*ki_complete)(struct kiocb *iocb, long ret, long ret2); argument 341 static inline bool is_sync_kiocb(struct kiocb *kiocb) in is_sync_kiocb() argument 343 return kiocb->ki_complete == NULL; in is_sync_kiocb() 398 ssize_t (*direct_IO)(struct kiocb *, struct iov_iter *iter); 1842 ssize_t (*read_iter) (struct kiocb *, struct iov_iter *); 1843 ssize_t (*write_iter) (struct kiocb *, struct iov_iter *); 1844 int (*iopoll)(struct kiocb *kiocb, bool spin); [all …]
|
D | nfs_fs.h | 480 extern ssize_t nfs_direct_IO(struct kiocb *, struct iov_iter *); 481 ssize_t nfs_file_direct_read(struct kiocb *iocb, 483 ssize_t nfs_file_direct_write(struct kiocb *iocb,
|
/kernel/linux/linux-5.10/fs/pstore/ |
D | blk.c | 292 struct kiocb kiocb; in psblk_generic_blk_read() local 305 init_sync_kiocb(&kiocb, &file); in psblk_generic_blk_read() 306 kiocb.ki_pos = pos; in psblk_generic_blk_read() 309 return generic_file_read_iter(&kiocb, &iter); in psblk_generic_blk_read() 317 struct kiocb kiocb; in psblk_generic_blk_write() local 334 init_sync_kiocb(&kiocb, &file); in psblk_generic_blk_write() 335 kiocb.ki_pos = pos; in psblk_generic_blk_write() 339 ret = generic_write_checks(&kiocb, &iter); in psblk_generic_blk_write() 348 kiocb.ki_pos += ret; in psblk_generic_blk_write() 349 ret = generic_write_sync(&kiocb, ret); in psblk_generic_blk_write()
|
/kernel/linux/linux-5.10/fs/cifs/ |
D | cifsfs.h | 105 extern ssize_t cifs_user_readv(struct kiocb *iocb, struct iov_iter *to); 106 extern ssize_t cifs_direct_readv(struct kiocb *iocb, struct iov_iter *to); 107 extern ssize_t cifs_strict_readv(struct kiocb *iocb, struct iov_iter *to); 108 extern ssize_t cifs_user_writev(struct kiocb *iocb, struct iov_iter *from); 109 extern ssize_t cifs_direct_writev(struct kiocb *iocb, struct iov_iter *from); 110 extern ssize_t cifs_strict_writev(struct kiocb *iocb, struct iov_iter *from);
|
/kernel/linux/linux-5.10/fs/ |
D | read_write.c | 402 struct kiocb kiocb; in new_sync_read() local 406 init_sync_kiocb(&kiocb, filp); in new_sync_read() 407 kiocb.ki_pos = (ppos ? *ppos : 0); in new_sync_read() 410 ret = call_read_iter(filp, &kiocb, &iter); in new_sync_read() 413 *ppos = kiocb.ki_pos; in new_sync_read() 431 struct kiocb kiocb; in __kernel_read() local 446 init_sync_kiocb(&kiocb, file); in __kernel_read() 447 kiocb.ki_pos = pos ? *pos : 0; in __kernel_read() 449 ret = file->f_op->read_iter(&kiocb, &iter); in __kernel_read() 452 *pos = kiocb.ki_pos; in __kernel_read() [all …]
|
D | aio.c | 201 struct kiocb rw; 562 void kiocb_set_cancel_fn(struct kiocb *iocb, kiocb_cancel_fn *cancel) in kiocb_set_cancel_fn() 1422 static void aio_complete_rw(struct kiocb *kiocb, long res, long res2) in aio_complete_rw() argument 1424 struct aio_kiocb *iocb = container_of(kiocb, struct aio_kiocb, rw); in aio_complete_rw() 1429 if (kiocb->ki_flags & IOCB_WRITE) { in aio_complete_rw() 1430 struct inode *inode = file_inode(kiocb->ki_filp); in aio_complete_rw() 1438 file_end_write(kiocb->ki_filp); in aio_complete_rw() 1446 static int aio_prep_rw(struct kiocb *req, const struct iocb *iocb) in aio_prep_rw() 1497 static inline void aio_rw_done(struct kiocb *req, ssize_t ret) in aio_rw_done() 1517 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()
|
D | block_dev.c | 216 static unsigned int dio_bio_write_op(struct kiocb *iocb) in dio_bio_write_op() 237 __blkdev_direct_IO_simple(struct kiocb *iocb, struct iov_iter *iter, in __blkdev_direct_IO_simple() 314 struct kiocb *iocb; 327 static int blkdev_iopoll(struct kiocb *kiocb, bool wait) in blkdev_iopoll() argument 329 struct block_device *bdev = I_BDEV(kiocb->ki_filp->f_mapping->host); in blkdev_iopoll() 332 return blk_poll(q, READ_ONCE(kiocb->ki_cookie), wait); in blkdev_iopoll() 345 struct kiocb *iocb = dio->iocb; in blkdev_bio_end_io() 375 __blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter, int nr_pages) in __blkdev_direct_IO() 505 blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter) in blkdev_direct_IO() 1903 ssize_t blkdev_write_iter(struct kiocb *iocb, struct iov_iter *from) in blkdev_write_iter() [all …]
|
/kernel/linux/linux-5.10/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() 165 static ssize_t ext2_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext2_file_read_iter() 174 static ssize_t ext2_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext2_file_write_iter()
|
/kernel/linux/linux-5.10/fs/iomap/ |
D | direct-io.c | 27 struct kiocb *iocb; 52 int iomap_dio_iopoll(struct kiocb *kiocb, bool spin) in iomap_dio_iopoll() argument 54 struct request_queue *q = READ_ONCE(kiocb->private); in iomap_dio_iopoll() 58 return blk_poll(q, READ_ONCE(kiocb->ki_cookie), spin); in iomap_dio_iopoll() 82 struct kiocb *iocb = dio->iocb; in iomap_dio_complete() 138 struct kiocb *iocb = dio->iocb; in iomap_dio_complete_work() 421 __iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, in __iomap_dio_rw() 599 iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, in iomap_dio_rw()
|
/kernel/linux/linux-5.10/fs/ext4/ |
D | file.c | 52 static ssize_t ext4_dio_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext4_dio_read_iter() 86 static ssize_t ext4_dax_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext4_dax_read_iter() 114 static ssize_t ext4_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in ext4_file_read_iter() 212 static ssize_t ext4_generic_write_checks(struct kiocb *iocb, in ext4_generic_write_checks() 240 static ssize_t ext4_write_checks(struct kiocb *iocb, struct iov_iter *from) in ext4_write_checks() 254 static ssize_t ext4_buffered_write_iter(struct kiocb *iocb, in ext4_buffered_write_iter() 372 static int ext4_dio_write_end_io(struct kiocb *iocb, ssize_t size, in ext4_dio_write_end_io() 423 static ssize_t ext4_dio_write_checks(struct kiocb *iocb, struct iov_iter *from, in ext4_dio_write_checks() 472 static ssize_t ext4_dio_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext4_dio_write_iter() 620 ext4_dax_write_iter(struct kiocb *iocb, struct iov_iter *from) in ext4_dax_write_iter() [all …]
|
/kernel/linux/linux-5.10/mm/ |
D | page_io.c | 262 struct kiocb kiocb; in __swap_writepage() local 273 init_sync_kiocb(&kiocb, swap_file); in __swap_writepage() 274 kiocb.ki_pos = page_file_offset(page); in __swap_writepage() 278 ret = mapping->a_ops->direct_IO(&kiocb, &from); in __swap_writepage()
|
/kernel/linux/linux-5.10/fs/overlayfs/ |
D | file.c | 19 struct kiocb iocb; 21 struct kiocb *orig_iocb; 271 struct kiocb *iocb = &aio_req->iocb; in ovl_aio_cleanup_handler() 272 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_cleanup_handler() 288 static void ovl_aio_rw_complete(struct kiocb *iocb, long res, long res2) in ovl_aio_rw_complete() 292 struct kiocb *orig_iocb = aio_req->orig_iocb; in ovl_aio_rw_complete() 298 static ssize_t ovl_read_iter(struct kiocb *iocb, struct iov_iter *iter) in ovl_read_iter() 350 static ssize_t ovl_write_iter(struct kiocb *iocb, struct iov_iter *iter) in ovl_write_iter()
|
/kernel/linux/linux-5.10/io_uring/ |
D | io_uring.c | 560 struct kiocb kiocb; member 2529 struct kiocb *kiocb = &req->rw.kiocb; in io_do_iopoll() local 2544 ret = kiocb->ki_filp->f_op->iopoll(kiocb, spin); in io_do_iopoll() 2712 if (rw->kiocb.ki_flags & IOCB_WRITE) { in io_req_io_end() 2777 static void io_complete_rw(struct kiocb *kiocb, long res, long res2) in io_complete_rw() argument 2779 struct io_kiocb *req = container_of(kiocb, struct io_kiocb, rw.kiocb); in io_complete_rw() 2788 static void io_complete_rw_iopoll(struct kiocb *kiocb, long res, long res2) in io_complete_rw_iopoll() argument 2790 struct io_kiocb *req = container_of(kiocb, struct io_kiocb, rw.kiocb); in io_complete_rw_iopoll() 2792 if (kiocb->ki_flags & IOCB_WRITE) in io_complete_rw_iopoll() 2839 queue_num0 = blk_qc_t_to_queue_num(list_req->rw.kiocb.ki_cookie); in io_iopoll_req_issued() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/fs/xfs/ |
D | xfs_file.c | 221 struct kiocb *iocb, in xfs_file_dio_aio_read() 250 struct kiocb *iocb, in xfs_file_dax_read() 278 struct kiocb *iocb, in xfs_file_buffered_aio_read() 300 struct kiocb *iocb, in xfs_file_read_iter() 333 struct kiocb *iocb, in xfs_file_aio_write_checks() 422 struct kiocb *iocb, in xfs_dio_write_end_io() 528 struct kiocb *iocb, in xfs_file_dio_aio_write() 620 struct kiocb *iocb, in xfs_file_dax_write() 666 struct kiocb *iocb, in xfs_file_buffered_aio_write() 743 struct kiocb *iocb, in xfs_file_write_iter()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
D | f_fs.c | 216 struct kiocb *kiocb; member 824 bool kiocb_has_eventfd = io_data->kiocb->ki_flags & IOCB_EVENTFD; in ffs_user_copy_worker() 832 io_data->kiocb->ki_complete(io_data->kiocb, ret, ret); in ffs_user_copy_worker() 1158 static int ffs_aio_cancel(struct kiocb *kiocb) in ffs_aio_cancel() argument 1160 struct ffs_io_data *io_data = kiocb->private; in ffs_aio_cancel() 1161 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 1186 if (!is_sync_kiocb(kiocb)) { in ffs_epfile_write_iter() 1197 p->kiocb = kiocb; in ffs_epfile_write_iter() 1201 kiocb->private = p; in ffs_epfile_write_iter() [all …]
|
/kernel/linux/linux-5.10/drivers/nvme/target/ |
D | io-cmd-file.c | 105 struct kiocb *iocb = &req->f.iocb; in nvmet_file_submit_bvec() 106 ssize_t (*call_iter)(struct kiocb *iocb, struct iov_iter *iter); in nvmet_file_submit_bvec() 129 static void nvmet_file_io_done(struct kiocb *iocb, long ret, long ret2) in nvmet_file_io_done() 166 memset(&req->f.iocb, 0, sizeof(struct kiocb)); in nvmet_file_execute_io()
|
/kernel/linux/linux-5.10/drivers/char/ |
D | random.c | 1280 static ssize_t random_write_iter(struct kiocb *kiocb, struct iov_iter *iter) in random_write_iter() argument 1285 static ssize_t urandom_read_iter(struct kiocb *kiocb, struct iov_iter *iter) in urandom_read_iter() argument 1302 static ssize_t random_read_iter(struct kiocb *kiocb, struct iov_iter *iter) in random_read_iter() argument 1307 ((kiocb->ki_flags & (IOCB_NOWAIT | IOCB_NOIO)) || in random_read_iter() 1308 (kiocb->ki_filp->f_flags & O_NONBLOCK))) in random_read_iter()
|
/kernel/linux/linux-5.10/fs/hmdfs/ |
D | file_remote.h | 23 ssize_t hmdfs_file_write_iter_remote_nocheck(struct kiocb *iocb,
|
/kernel/linux/linux-5.10/fs/sharefs/ |
D | file.c | 149 sharefs_read_iter(struct kiocb *iocb, struct iov_iter *iter) in sharefs_read_iter() 180 sharefs_write_iter(struct kiocb *iocb, struct iov_iter *iter) in sharefs_write_iter()
|
/kernel/linux/linux-5.10/fs/9p/ |
D | vfs_file.c | 383 v9fs_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in v9fs_file_read_iter() 411 v9fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in v9fs_file_write_iter() 584 v9fs_mmap_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in v9fs_mmap_file_read_iter() 599 v9fs_mmap_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in v9fs_mmap_file_write_iter()
|