summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-09-18 05:12:18 -0600
committerJens Axboe <axboe@kernel.dk>2021-09-18 05:12:18 -0600
commita4a314a56d723385d3cbe8cdeac36da3fef40d42 (patch)
tree82c7538a4bf08953c3d90e45fb797ba2767e0c3c
parentc667d67d5f934e60117613dd113074a1bbbb61be (diff)
downloadliburing-a4a314a56d723385d3cbe8cdeac36da3fef40d42.tar.gz
liburing-a4a314a56d723385d3cbe8cdeac36da3fef40d42.tar.bz2
io_uring.h: include recent 5.15-git addition of exported worker type
Applications can index the array they pass in to IORING_REGISTER_IOWQ_MAX_WORKERS instead of using non-specific 0 and 1 values for bound/unbound. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--src/include/liburing/io_uring.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/liburing/io_uring.h b/src/include/liburing/io_uring.h
index 69f23a9..7aa43fc 100644
--- a/src/include/liburing/io_uring.h
+++ b/src/include/liburing/io_uring.h
@@ -321,13 +321,19 @@ enum {
IORING_REGISTER_IOWQ_AFF = 17,
IORING_UNREGISTER_IOWQ_AFF = 18,
- /* set/get max number of async workers */
+ /* set/get max number of io-wq workers */
IORING_REGISTER_IOWQ_MAX_WORKERS = 19,
/* this goes last */
IORING_REGISTER_LAST
};
+/* io-wq worker categories */
+enum {
+ IO_WQ_BOUND,
+ IO_WQ_UNBOUND,
+};
+
/* deprecated, see struct io_uring_rsrc_update */
struct io_uring_files_update {
__u32 offset;