/linux-6.12.1/io_uring/ |
D | rw.c | 28 struct kiocb kiocb; member 267 rw->kiocb.ki_pos = READ_ONCE(sqe->off); in io_prep_rw() 277 rw->kiocb.ki_ioprio = ioprio; in io_prep_rw() 279 rw->kiocb.ki_ioprio = get_current_ioprio(); in io_prep_rw() 281 rw->kiocb.dio_complete = NULL; in io_prep_rw() 396 if (rw->kiocb.ki_pos != -1) in io_kiocb_update_pos() 397 return &rw->kiocb.ki_pos; in io_kiocb_update_pos() 401 rw->kiocb.ki_pos = req->file->f_pos; in io_kiocb_update_pos() 402 return &rw->kiocb.ki_pos; in io_kiocb_update_pos() 405 rw->kiocb.ki_pos = 0; in io_kiocb_update_pos() [all …]
|
/linux-6.12.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 | netfs.h | 232 struct kiocb *iocb; /* AIO completion vector */ 398 ssize_t netfs_unbuffered_read_iter_locked(struct kiocb *iocb, struct iov_iter *iter); 399 ssize_t netfs_unbuffered_read_iter(struct kiocb *iocb, struct iov_iter *iter); 400 ssize_t netfs_buffered_read_iter(struct kiocb *iocb, struct iov_iter *iter); 401 ssize_t netfs_file_read_iter(struct kiocb *iocb, struct iov_iter *iter); 404 ssize_t netfs_perform_write(struct kiocb *iocb, struct iov_iter *iter, 406 ssize_t netfs_buffered_write_iter_locked(struct kiocb *iocb, struct iov_iter *from, 408 ssize_t netfs_unbuffered_write_iter(struct kiocb *iocb, struct iov_iter *from); 409 ssize_t netfs_unbuffered_write_iter_locked(struct kiocb *iocb, struct iov_iter *iter, 411 ssize_t netfs_file_write_iter(struct kiocb *iocb, struct iov_iter *from);
|
D | fs.h | 60 struct kiocb; 96 typedef int (dio_iodone_t)(struct kiocb *iocb, loff_t offset, 366 struct kiocb { struct 369 void (*ki_complete)(struct kiocb *iocb, long ret); argument 392 static inline bool is_sync_kiocb(struct kiocb *kiocb) in is_sync_kiocb() argument 394 return kiocb->ki_complete == NULL; in is_sync_kiocb() 421 ssize_t (*direct_IO)(struct kiocb *, struct iov_iter *iter); 438 int (*swap_rw)(struct kiocb *iocb, struct iov_iter *iter); 2068 ssize_t (*read_iter) (struct kiocb *, struct iov_iter *); 2069 ssize_t (*write_iter) (struct kiocb *, struct iov_iter *); [all …]
|
D | iomap.h | 20 struct kiocb; 292 ssize_t iomap_file_buffered_write(struct kiocb *iocb, struct iov_iter *from, 396 int (*end_io)(struct kiocb *iocb, ssize_t size, int error, 432 ssize_t iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, 435 struct iomap_dio *__iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter,
|
D | backing-file.h | 29 struct kiocb *iocb, int flags, 32 struct kiocb *iocb, int flags,
|
/linux-6.12.1/fs/ |
D | backing-file.c | 79 struct kiocb iocb; 81 struct kiocb *orig_iocb; 108 struct kiocb *iocb = &aio->iocb; in backing_aio_cleanup() 109 struct kiocb *orig_iocb = aio->orig_iocb; in backing_aio_cleanup() 118 static void backing_aio_rw_complete(struct kiocb *iocb, long res) in backing_aio_rw_complete() 121 struct kiocb *orig_iocb = aio->orig_iocb; in backing_aio_rw_complete() 137 static void backing_aio_queue_completion(struct kiocb *iocb, long res) in backing_aio_queue_completion() 150 static int backing_aio_init_wq(struct kiocb *iocb) in backing_aio_init_wq() 162 struct kiocb *iocb, int flags, in backing_file_read_iter() 210 struct kiocb *iocb, int flags, in backing_file_write_iter()
|
D | read_write.c | 480 struct kiocb kiocb; in new_sync_read() local 484 init_sync_kiocb(&kiocb, filp); in new_sync_read() 485 kiocb.ki_pos = (ppos ? *ppos : 0); in new_sync_read() 488 ret = filp->f_op->read_iter(&kiocb, &iter); in new_sync_read() 491 *ppos = kiocb.ki_pos; in new_sync_read() 509 struct kiocb kiocb; in __kernel_read() local 524 init_sync_kiocb(&kiocb, file); in __kernel_read() 525 kiocb.ki_pos = pos ? *pos : 0; in __kernel_read() 527 ret = file->f_op->read_iter(&kiocb, &iter); in __kernel_read() 530 *pos = kiocb.ki_pos; in __kernel_read() [all …]
|
D | aio.c | 200 struct kiocb rw; 584 void kiocb_set_cancel_fn(struct kiocb *iocb, kiocb_cancel_fn *cancel) in kiocb_set_cancel_fn() 1491 static void aio_complete_rw(struct kiocb *kiocb, long res) in aio_complete_rw() argument 1493 struct aio_kiocb *iocb = container_of(kiocb, struct aio_kiocb, rw); in aio_complete_rw() 1498 if (kiocb->ki_flags & IOCB_WRITE) { in aio_complete_rw() 1499 struct inode *inode = file_inode(kiocb->ki_filp); in aio_complete_rw() 1502 kiocb_end_write(kiocb); in aio_complete_rw() 1510 static int aio_prep_rw(struct kiocb *req, const struct iocb *iocb, int rw_type) in aio_prep_rw() 1560 static inline void aio_rw_done(struct kiocb *req, ssize_t ret) in aio_rw_done() 1580 static int aio_read(struct kiocb *req, const struct iocb *iocb, in aio_read() [all …]
|
D | splice.c | 327 struct kiocb kiocb; in copy_splice_read() local 363 init_sync_kiocb(&kiocb, in); in copy_splice_read() 364 kiocb.ki_pos = *ppos; in copy_splice_read() 365 ret = in->f_op->read_iter(&kiocb, &to); in copy_splice_read() 369 *ppos = kiocb.ki_pos; in copy_splice_read() 691 struct kiocb kiocb; in iter_file_splice_write() local 741 init_sync_kiocb(&kiocb, out); in iter_file_splice_write() 742 kiocb.ki_pos = sd.pos; in iter_file_splice_write() 743 ret = out->f_op->write_iter(&kiocb, &from); in iter_file_splice_write() 744 sd.pos = kiocb.ki_pos; in iter_file_splice_write()
|
/linux-6.12.1/fs/btrfs/ |
D | file.h | 10 struct kiocb; 34 ssize_t btrfs_do_write_iter(struct kiocb *iocb, struct iov_iter *from, 47 int btrfs_write_check(struct kiocb *iocb, struct iov_iter *from, size_t count); 48 ssize_t btrfs_buffered_write(struct kiocb *iocb, struct iov_iter *i);
|
D | direct-io.h | 11 ssize_t btrfs_direct_write(struct kiocb *iocb, struct iov_iter *from); 12 ssize_t btrfs_direct_read(struct kiocb *iocb, struct iov_iter *to);
|
/linux-6.12.1/fs/ext2/ |
D | file.c | 35 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()
|
D | trace.h | 12 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.12.1/fs/nfs/ |
D | localio.c | 34 struct kiocb kiocb; member 290 init_sync_kiocb(&iocb->kiocb, nfs_to->nfsd_file_file(localio)); in nfs_local_iocb_alloc() 291 iocb->kiocb.ki_pos = hdr->args.offset; in nfs_local_iocb_alloc() 294 iocb->kiocb.ki_flags &= ~IOCB_APPEND; in nfs_local_iocb_alloc() 353 struct file *filp = iocb->kiocb.ki_filp; in nfs_local_read_done() 369 struct file *filp = iocb->kiocb.ki_filp; in nfs_local_call_read() 378 status = filp->f_op->read_iter(&iocb->kiocb, &iter); in nfs_local_call_read() 476 struct file *filp = iocb->kiocb.ki_filp; in nfs_local_vfs_getattr() 537 struct file *filp = iocb->kiocb.ki_filp; in nfs_local_call_write() 549 status = filp->f_op->write_iter(&iocb->kiocb, &iter); in nfs_local_call_write() [all …]
|
/linux-6.12.1/fs/bcachefs/ |
D | fs-io-direct.h | 6 ssize_t bch2_direct_write(struct kiocb *, struct iov_iter *); 7 ssize_t bch2_read_iter(struct kiocb *, struct iov_iter *);
|
D | fs-io-direct.c | 22 struct kiocb *req; 65 static int bch2_direct_IO_read(struct kiocb *req, struct iov_iter *iter) in bch2_direct_IO_read() 176 ssize_t bch2_read_iter(struct kiocb *iocb, struct iov_iter *iter) in bch2_read_iter() 218 struct kiocb *req; 373 struct kiocb *req = dio->req; in bch2_dio_write_done() 409 struct kiocb *req = dio->req; in bch2_dio_write_end() 439 struct kiocb *req = dio->req; in bch2_dio_write_loop() 580 ssize_t bch2_direct_write(struct kiocb *req, struct iov_iter *iter) in bch2_direct_write()
|
/linux-6.12.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() 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.12.1/fs/smb/client/ |
D | cifsfs.h | 97 extern ssize_t cifs_strict_readv(struct kiocb *iocb, struct iov_iter *to); 98 extern ssize_t cifs_strict_writev(struct kiocb *iocb, struct iov_iter *from); 99 ssize_t cifs_file_write_iter(struct kiocb *iocb, struct iov_iter *from); 100 ssize_t cifs_loose_read_iter(struct kiocb *iocb, struct iov_iter *iter);
|
/linux-6.12.1/block/ |
D | fops.c | 28 static blk_opf_t dio_bio_write_op(struct kiocb *iocb) in dio_bio_write_op() 50 static ssize_t __blkdev_direct_IO_simple(struct kiocb *iocb, in __blkdev_direct_IO_simple() 115 struct kiocb *iocb; 136 struct kiocb *iocb = dio->iocb; in blkdev_bio_end_io() 166 static ssize_t __blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter, in __blkdev_direct_IO() 280 struct kiocb *iocb = dio->iocb; in blkdev_bio_end_io_async() 302 static ssize_t __blkdev_direct_IO_async(struct kiocb *iocb, in __blkdev_direct_IO_async() 368 static ssize_t blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter) in blkdev_direct_IO() 644 blkdev_direct_write(struct kiocb *iocb, struct iov_iter *from) in blkdev_direct_write() 667 static ssize_t blkdev_buffered_write(struct kiocb *iocb, struct iov_iter *from) in blkdev_buffered_write() [all …]
|
/linux-6.12.1/fs/xfs/ |
D | xfs_file.c | 189 struct kiocb *iocb, in xfs_ilock_iocb() 206 struct kiocb *iocb, in xfs_ilock_iocb_for_write() 232 struct kiocb *iocb, in xfs_file_dio_read() 256 struct kiocb *iocb, in xfs_file_dax_read() 279 struct kiocb *iocb, in xfs_file_buffered_read() 298 struct kiocb *iocb, in xfs_file_read_iter() 359 struct kiocb *iocb, in xfs_file_write_zero_eof() 432 struct kiocb *iocb, in xfs_file_write_checks() 496 struct kiocb *iocb, in xfs_dio_write_end_io() 591 struct kiocb *iocb, in xfs_file_dio_write_aligned() [all …]
|
/linux-6.12.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-6.12.1/fs/iomap/ |
D | direct-io.c | 38 struct kiocb *iocb; 74 struct kiocb *iocb = dio->iocb; in iomap_dio_submit_bio() 93 struct kiocb *iocb = dio->iocb; in iomap_dio_complete() 151 struct kiocb *iocb = dio->iocb; in iomap_dio_complete_work() 170 struct kiocb *iocb = dio->iocb; in iomap_dio_bio_end_io() 559 __iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, in __iomap_dio_rw() 761 iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter, in iomap_dio_rw()
|
/linux-6.12.1/fs/zonefs/ |
D | file.c | 345 static int zonefs_file_write_dio_end_io(struct kiocb *iocb, ssize_t size, in zonefs_file_write_dio_end_io() 413 static ssize_t zonefs_write_checks(struct kiocb *iocb, struct iov_iter *from) in zonefs_write_checks() 457 static ssize_t zonefs_file_dio_write(struct kiocb *iocb, struct iov_iter *from) in zonefs_file_dio_write() 542 static ssize_t zonefs_file_buffered_write(struct kiocb *iocb, in zonefs_file_buffered_write() 578 static ssize_t zonefs_file_write_iter(struct kiocb *iocb, struct iov_iter *from) in zonefs_file_write_iter() 603 static int zonefs_file_read_dio_end_io(struct kiocb *iocb, ssize_t size, in zonefs_file_read_dio_end_io() 618 static ssize_t zonefs_file_read_iter(struct kiocb *iocb, struct iov_iter *to) in zonefs_file_read_iter()
|
/linux-6.12.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()
|