aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-12-22 15:19:35 -0700
committerJens Axboe <axboe@kernel.dk>2020-01-20 17:03:59 -0700
commit3a6820f2bb8a079975109c25a5d1f29f46bce5d2 (patch)
treefd5269613133e7eb1db2977b3973f1d0616b2eb2 /include/uapi
parentio_uring: improve poll completion performance (diff)
downloadlinux-dev-3a6820f2bb8a079975109c25a5d1f29f46bce5d2.tar.xz
linux-dev-3a6820f2bb8a079975109c25a5d1f29f46bce5d2.zip
io_uring: add non-vectored read/write commands
For uses cases that don't already naturally have an iovec, it's easier (or more convenient) to just use a buffer address + length. This is particular true if the use case is from languages that want to create a memory safe abstraction on top of io_uring, and where introducing the need for the iovec may impose an ownership issue. For those cases, they currently need an indirection buffer, which means allocating data just for this purpose. Add basic read/write that don't require the iovec. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/io_uring.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h
index d7ec50247a3a..7fdf994f3313 100644
--- a/include/uapi/linux/io_uring.h
+++ b/include/uapi/linux/io_uring.h
@@ -84,6 +84,8 @@ enum {
IORING_OP_CLOSE,
IORING_OP_FILES_UPDATE,
IORING_OP_STATX,
+ IORING_OP_READ,
+ IORING_OP_WRITE,
/* this goes last, obviously */
IORING_OP_LAST,