summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-05-23 22:25:05 -0600
committerJens Axboe <axboe@kernel.dk>2019-05-23 22:51:10 -0600
commit7a3fd11c4ba0e74c3e9e025aaa94d0410652fbdf (patch)
tree60aadc499c2eb0125b0a378c5f99c93e84eb245b
parent4d325561f325c2c79230bfece89bd5cd2521e1c4 (diff)
io_uring.h: add send/recvmsg parts
This syncs with io_uring-next, which has support for doing recvmsg and sendmsg through io_uring. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--src/io_uring.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/io_uring.h b/src/io_uring.h
index ce03151..a61c4a6 100644
--- a/src/io_uring.h
+++ b/src/io_uring.h
@@ -27,6 +27,7 @@ struct io_uring_sqe {
__u32 fsync_flags;
__u16 poll_events;
__u32 sync_range_flags;
+ __u32 msg_flags;
};
__u64 user_data; /* data to be passed back at completion time */
union {
@@ -58,6 +59,8 @@ struct io_uring_sqe {
#define IORING_OP_POLL_ADD 6
#define IORING_OP_POLL_REMOVE 7
#define IORING_OP_SYNC_FILE_RANGE 8
+#define IORING_OP_SENDMSG 9
+#define IORING_OP_RECVMSG 10
/*
* sqe->fsync_flags