]> git.ipfire.org Git - thirdparty/linux.git/commit
io_uring: user registered clockid for wait timeouts
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 7 Aug 2024 14:18:14 +0000 (15:18 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 25 Aug 2024 14:27:01 +0000 (08:27 -0600)
commit2b8e976b984278edbeab3251d370e76d237699f9
treef91366b1a924921fc52d4fa43c8868dd3f30709d
parentd29cb3726f03cdac7889f0109a7cb84f79e168a8
io_uring: user registered clockid for wait timeouts

Add a new registration opcode IORING_REGISTER_CLOCK, which allows the
user to select which clock id it wants to use with CQ waiting timeouts.
It only allows a subset of all posix clocks and currently supports
CLOCK_MONOTONIC and CLOCK_BOOTTIME.

Suggested-by: Lewis Baker <lewissbaker@gmail.com>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/98f2bc8a3c36cdf8f0e6a275245e81e903459703.1723039801.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/io_uring_types.h
include/uapi/linux/io_uring.h
io_uring/io_uring.c
io_uring/io_uring.h
io_uring/napi.c
io_uring/register.c