summaryrefslogtreecommitdiff
path: root/io_uring/rw.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2023-11-06 07:43:16 -0700
committerJens Axboe <axboe@kernel.dk>2023-11-06 07:43:16 -0700
commitf688944cfb810986c626cb13d95bc666e5c8a36c (patch)
treed9c01b7c5182cf3a896f5e320834cbad5ae33671 /io_uring/rw.h
parent0e984ec88da9747549227900e5215c5e6a1b65ae (diff)
io_uring/rw: add separate prep handler for fixed read/write
Rather than sprinkle opcode checks in the generic read/write prep handler, have a separate prep handler for the vectored readv/writev operation. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/rw.h')
-rw-r--r--io_uring/rw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/io_uring/rw.h b/io_uring/rw.h
index 32aa7937513a..f9e89b4fe4da 100644
--- a/io_uring/rw.h
+++ b/io_uring/rw.h
@@ -17,6 +17,7 @@ struct io_async_rw {
int io_prep_rw(struct io_kiocb *req, const struct io_uring_sqe *sqe);
int io_prep_rwv(struct io_kiocb *req, const struct io_uring_sqe *sqe);
+int io_prep_rw_fixed(struct io_kiocb *req, const struct io_uring_sqe *sqe);
int io_read(struct io_kiocb *req, unsigned int issue_flags);
int io_readv_prep_async(struct io_kiocb *req);
int io_write(struct io_kiocb *req, unsigned int issue_flags);