diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-09-06 10:30:27 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-09-06 10:30:27 -0600 |
commit | bc9e136e38fcfba51689561b1b45954ed67d4ffe (patch) | |
tree | 595ffdb6db24a20206bdf5b9715828ac4546d697 | |
parent | b76db3f49d4bae86e299ff8aebfc76996e4c5902 (diff) |
Sync io_uring.h with the kernel
This brings in the features flags.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | src/include/liburing/io_uring.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/include/liburing/io_uring.h b/src/include/liburing/io_uring.h index a61c4a6..96ee9d9 100644 --- a/src/include/liburing/io_uring.h +++ b/src/include/liburing/io_uring.h @@ -41,7 +41,7 @@ struct io_uring_sqe { */ #define IOSQE_FIXED_FILE (1U << 0) /* use fixed fileset */ #define IOSQE_IO_DRAIN (1U << 1) /* issue after inflight IO */ -#define IOSQE_IO_LINK (1U << 2) /* next IO depends on this one */ +#define IOSQE_IO_LINK (1U << 2) /* links next sqe */ /* * io_uring_setup() flags @@ -128,12 +128,18 @@ struct io_uring_params { __u32 flags; __u32 sq_thread_cpu; __u32 sq_thread_idle; - __u32 resv[5]; + __u32 features; + __u32 resv[4]; struct io_sqring_offsets sq_off; struct io_cqring_offsets cq_off; }; /* + * io_uring_params->features flags + */ +#define IORING_FEAT_SINGLE_MMAP (1U << 0) + +/* * io_uring_register(2) opcodes and arguments */ #define IORING_REGISTER_BUFFERS 0 |