summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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