diff options
| author | 2025-03-07 16:00:29 +0000 | |
|---|---|---|
| committer | 2025-03-07 09:07:29 -0700 | |
| commit | e1d499590977a492ae120d9263bd55076aabd460 (patch) | |
| tree | 11d97d8462945c701fc09aeb98ced7a340cbb41b /include/linux | |
| parent | Merge branch 'for-6.15/io_uring-epoll-wait' into for-6.15/io_uring-reg-vec (diff) | |
io_uring: introduce struct iou_vec
I need a convenient way to pass around and work with iovec+size pair,
put them into a structure and makes use of it in rw.c
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/d39fadafc9e9047b0a292e5be6db3cf2f48bb1f7.1741362889.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/io_uring_types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/io_uring_types.h b/include/linux/io_uring_types.h index 35fc241c4672..9101f12d21ef 100644 --- a/include/linux/io_uring_types.h +++ b/include/linux/io_uring_types.h @@ -110,6 +110,11 @@ struct io_uring_task { } ____cacheline_aligned_in_smp; }; +struct iou_vec { + struct iovec *iovec; + unsigned nr; +}; + struct io_uring { u32 head; u32 tail; |
