Skip to contentSkip to conversation

liburing: add multishot timeout support

PATCH Superseded David Wei 1 participant 1 message Mar 23, 2023 io_uring

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

David Wei

author
#0 lore raw

PATCH 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.

---
 src/include/liburing/io_uring.h |   1 +
 test/timeout.c                  | 173 ++++++++++++++++++++++++++++++++
 2 files changed, 174 insertions(+)
src/include/liburing/io_uring.h +1 -0
index ec068d4..3d3a63b 100644
@@ -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 +173 -0

185 lines not on this page · raw message

Signature · 1 line
2.34.1