From ce899b79f93d077ddce837656f59e79b2296fb71 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 17 Jan 2019 11:40:24 -0700 Subject: Add test case for IORING_OP_POLL Signed-off-by: Jens Axboe --- src/io_uring.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 #include +#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 -- cgit