liburing: add multishot timeout support
PATCH v2 1/1 liburing: add multishot timeout support
Single change to sync the new IORING_TIMEOUT_MULTISHOT flag with kernel.
Mostly unit tests for multishot timeouts.
Signed-off-by David Wei <[email protected]>
--- src/include/liburing/io_uring.h | 1 + test/timeout.c | 266 ++++++++++++++++++++++++++++++++ 2 files changed, 267 insertions(+)
src/include/liburing/io_uring.h +1 -0
@@ -250,6 +250,7 @@ enum io_uring_op {#define IORING_TIMEOUT_REALTIME (1U << 3)#define IORING_LINK_TIMEOUT_UPDATE (1U << 4)#define IORING_TIMEOUT_ETIME_SUCCESS (1U << 5) +#define IORING_TIMEOUT_MULTISHOT (1U << 6)#define IORING_TIMEOUT_CLOCK_MASK (IORING_TIMEOUT_BOOTTIME | IORING_TIMEOUT_REALTIME)#define IORING_TIMEOUT_UPDATE_MASK (IORING_TIMEOUT_UPDATE | IORING_LINK_TIMEOUT_UPDATE)/*
test/timeout.c +266 -0
278 lines not on this page · raw message
Signature · 1 line
2.34.1