diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2024-08-07 17:18:13 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2024-08-25 17:27:01 +0300 |
| commit | d29cb3726f03cdac7889f0109a7cb84f79e168a8 (patch) | |
| tree | b27c1a35a6022862e48801b7a75908c70be7c260 /include/uapi/linux | |
| parent | d5cce407e4f59b2e08d03e29d2b3c55deacc1d48 (diff) | |
| download | linux-d29cb3726f03cdac7889f0109a7cb84f79e168a8.tar.xz | |
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.
Suggested-by: Lewis Baker <lewissbaker@gmail.com>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/4d5b74d67ada882590b2e42aa3aa7117bbf6b55f.1723039801.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/io_uring.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h index adc2524fd8e3..6a81f55fcd0d 100644 --- a/include/uapi/linux/io_uring.h +++ b/include/uapi/linux/io_uring.h @@ -507,6 +507,7 @@ struct io_cqring_offsets { #define IORING_ENTER_SQ_WAIT (1U << 2) #define IORING_ENTER_EXT_ARG (1U << 3) #define IORING_ENTER_REGISTERED_RING (1U << 4) +#define IORING_ENTER_ABS_TIMER (1U << 5) /* * Passed in for io_uring_setup(2). Copied back with updated info on success |
