summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-01-17 11:40:24 -0700
committerJens Axboe <axboe@kernel.dk>2019-01-17 11:40:24 -0700
commitce899b79f93d077ddce837656f59e79b2296fb71 (patch)
treeab0c6f59a2f8018cb8017fb668e74c5683080b00 /src
parent61102796612a867d85ee4b3c5a660e1f4b1c2766 (diff)
Add test case for IORING_OP_POLL
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'src')
-rw-r--r--src/io_uring.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/io_uring.h b/src/io_uring.h
index 9bb7181..40a5a89 100644
--- a/src/io_uring.h
+++ b/src/io_uring.h
@@ -11,6 +11,8 @@
#include <linux/fs.h>
#include <linux/types.h>
+#define IORING_MAX_ENTRIES 4096
+
/*
* IO submission data structure (Submission Queue Entry)
*/
@@ -51,6 +53,8 @@ struct io_uring_sqe {
#define IORING_OP_FSYNC 3
#define IORING_OP_READ_FIXED 4
#define IORING_OP_WRITE_FIXED 5
+#define IORING_OP_POLL 6
+#define IORING_OP_POLL_CANCEL 7
/*
* sqe->fsync_flags