summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-05-17 06:04:15 -0600
committerJens Axboe <axboe@kernel.dk>2022-05-17 06:04:15 -0600
commitb2d28aea257d0eee40bcdc5c0613712c9e4e8184 (patch)
treefcb7e4b1970d24b965f4603195bf701f460aac30
parent1e8625ad0bc3f6b07eb935bbc6a8203693a7792b (diff)
downloadliburing-b2d28aea257d0eee40bcdc5c0613712c9e4e8184.tar.gz
liburing-b2d28aea257d0eee40bcdc5c0613712c9e4e8184.tar.bz2
io_uring.h: sync with 5.19 io_uring release
A few missing bits due to the topic branches not being synced. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--src/include/liburing/io_uring.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/liburing/io_uring.h b/src/include/liburing/io_uring.h
index 60f12ee..c85f274 100644
--- a/src/include/liburing/io_uring.h
+++ b/src/include/liburing/io_uring.h
@@ -76,7 +76,7 @@ struct io_uring_sqe {
* in. The picked direct descriptor will be returned in cqe->res, or -ENFILE
* if the space is full.
*/
-#define IORING_FILE_INDEX_ALLOC (~0U)
+#define IORING_FILE_INDEX_ALLOC (~0U)
enum {
IOSQE_FIXED_FILE_BIT,
@@ -181,6 +181,8 @@ enum io_uring_op {
IORING_OP_SETXATTR,
IORING_OP_FGETXATTR,
IORING_OP_GETXATTR,
+ IORING_OP_SOCKET,
+ IORING_OP_URING_CMD,
/* this goes last, obviously */
IORING_OP_LAST,
@@ -246,6 +248,11 @@ enum io_uring_op {
#define IORING_RECVSEND_POLL_FIRST (1U << 0)
/*
+ * accept flags stored in sqe->ioprio
+ */
+#define IORING_ACCEPT_MULTISHOT (1U << 0)
+
+/*
* IO completion data structure (Completion Queue Entry)
*/
struct io_uring_cqe {