diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-05-18 12:54:05 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-05-18 12:58:47 -0600 |
commit | 1a90a51ecd678d4331990d7f696153b59583d378 (patch) | |
tree | a3958ae428c8b573af16f560c662d9f3fb985174 /src | |
parent | 3200e997d0692398088c944836add7c331677f29 (diff) |
io_uring.h: sync with kernel
Add sync_range_file opcode and related fields, and the
io_uring_register(2) commands for eventfd registration.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'src')
-rw-r--r-- | src/io_uring.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/io_uring.h b/src/io_uring.h index 4da0053..ce03151 100644 --- a/src/io_uring.h +++ b/src/io_uring.h @@ -26,6 +26,7 @@ struct io_uring_sqe { __kernel_rwf_t rw_flags; __u32 fsync_flags; __u16 poll_events; + __u32 sync_range_flags; }; __u64 user_data; /* data to be passed back at completion time */ union { @@ -38,8 +39,8 @@ struct io_uring_sqe { * sqe->flags */ #define IOSQE_FIXED_FILE (1U << 0) /* use fixed fileset */ -#define IOSQE_IO_DRAIN (1U << 1) -#define IOSQE_IO_LINK (1U << 2) +#define IOSQE_IO_DRAIN (1U << 1) /* issue after inflight IO */ +#define IOSQE_IO_LINK (1U << 2) /* next IO depends on this one */ /* * io_uring_setup() flags @@ -56,6 +57,7 @@ struct io_uring_sqe { #define IORING_OP_WRITE_FIXED 5 #define IORING_OP_POLL_ADD 6 #define IORING_OP_POLL_REMOVE 7 +#define IORING_OP_SYNC_FILE_RANGE 8 /* * sqe->fsync_flags @@ -135,5 +137,7 @@ struct io_uring_params { #define IORING_UNREGISTER_BUFFERS 1 #define IORING_REGISTER_FILES 2 #define IORING_UNREGISTER_FILES 3 +#define IORING_REGISTER_EVENTFD 4 +#define IORING_UNREGISTER_EVENTFD 5 #endif |