summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-02-28 15:40:59 -0700
committerJens Axboe <axboe@kernel.dk>2021-02-28 15:40:59 -0700
commitb013dfd5a5f65116373d5e0f0bdfb73db9d8816e (patch)
tree03168496ae8d1f18d61987952b861e4df9544fb1
parent6aa9b364a96321843b34f7edd2cd178d79bdd642 (diff)
downloadliburing-2.0.tar.gz
liburing-2.0.tar.bz2
Sync io_uring.h API file with Linux 5.12liburing-2.0
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--src/include/liburing/io_uring.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/liburing/io_uring.h b/src/include/liburing/io_uring.h
index 1d47389..d3d166e 100644
--- a/src/include/liburing/io_uring.h
+++ b/src/include/liburing/io_uring.h
@@ -267,6 +267,7 @@ struct io_uring_params {
#define IORING_FEAT_POLL_32BITS (1U << 6)
#define IORING_FEAT_SQPOLL_NONFIXED (1U << 7)
#define IORING_FEAT_EXT_ARG (1U << 8)
+#define IORING_FEAT_NATIVE_WORKERS (1U << 9)
/*
* io_uring_register(2) opcodes and arguments
@@ -290,12 +291,19 @@ enum {
IORING_REGISTER_LAST
};
+/* deprecated, see struct io_uring_rsrc_update */
struct io_uring_files_update {
__u32 offset;
__u32 resv;
__aligned_u64 /* __s32 * */ fds;
};
+struct io_uring_rsrc_update {
+ __u32 offset;
+ __u32 resv;
+ __aligned_u64 data;
+};
+
/* Skip updating fd indexes set to this value in the fd table */
#define IORING_REGISTER_FILES_SKIP (-2)