Add test case for IORING_OP_POLL

Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Jens Axboe
2019-01-17 11:40:24 -07:00
parent 6110279661
commit ce899b79f9
3 changed files with 143 additions and 3 deletions

View File

@@ -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