History

io_uring: add absolute mode wait timeouts

In addition to current relative timeouts for the waiting loop, where the timespec argument specifies the maximum time it can wait for, add support for the absolute mode, with the value carrying a CLOCK_MONOTONIC absolute time until which we should return control back to the user.

Pavel Begunkov committed 2 years ago

Commit d29cb371 parent d5cce402 files · +9 −7Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/io_uring.h+1−0
@@ -507,6 +507,7 @@ struct io_cqring_offsets { · 506 unmodified lines
507507 #define IORING_ENTER_SQ_WAIT (1U << 2)
508508 #define IORING_ENTER_EXT_ARG (1U << 3)
509509 #define IORING_ENTER_REGISTERED_RING (1U << 4)
510+#define IORING_ENTER_ABS_TIMER (1U << 5)
510511
511512 /*
512513 * Passed in for io_uring_setup(2). Copied back with updated info on success