man: document that immediate abs timeouts are allowed
PATCH 1/1 man: document that immediate abs timeouts are allowed
Add a couple mentions that absolute mode timeout requests don't work with IORING_TIMEOUT_IMMEDIATE_ARG, now they do.
Signed-off-by Pavel Begunkov <[email protected]>
--- man/io_uring_enter.2 | 8 +------- man/io_uring_prep_timeout.3 | 9 ++------- 2 files changed, 3 insertions(+), 14 deletions(-)
man/io_uring_enter.2 +1 -7
@@ -677,9 +677,7 @@ field to be interpreted as a timeout value in nanoseconds rather than a pointer to a .B struct __kernel_timespec. This avoids the need to keep a timespec structure valid in user memory until -the request is submitted. Only relative timeouts are supported with this flag; -it must not be used with -.BR IORING_TIMEOUT_ABS . +the request is submitted. .in .PP
@@ -2214,8 +2212,4 @@ was specified, but specified more than one clock source or .B IORING_TIMEOUT_MULTISHOT was set alongside -.BR IORING_TIMEOUT_ABS , -or -.B IORING_TIMEOUT_IMMEDIATE_ARG -was set alongside .BR IORING_TIMEOUT_ABS .
man/io_uring_prep_timeout.3 +2 -7
@@ -71,9 +71,7 @@ argument to is reinterpreted as a nanosecond value (cast to a .BR __u64 ) rather than a pointer. This avoids the need to keep a timespec structure valid -in user memory until the request is submitted. Only relative timeouts are -supported; this flag must not be used with -.BR IORING_TIMEOUT_ABS . +in user memory until the request is submitted. Available since the 7.1 kernel. .PP If no alternate clock source is given in the above flags, then
@@ -98,10 +96,7 @@ The specified timeout occurred and triggered the completion event. .TP .B -EINVAL One of the fields set in the SQE was invalid. For example, two clocksources -were given, the specified timeout seconds or nanoseconds were < 0, or -.B IORING_TIMEOUT_IMMEDIATE_ARG -was used with -.BR IORING_TIMEOUT_ABS . +were given, the specified timeout seconds or nanoseconds were < 0. .TP .B -EFAULT io_uring was unable to access the data specified by
Signature · 1 line
2.53.0
Quoted 4 lines · Pavel Begunkov
Add a couple mentions that absolute mode timeout requests don't work with
IORING_TIMEOUT_IMMEDIATE_ARG, now they do.
Applied, thanks!
[1/1] man: document that immediate abs timeouts are allowed
commit: e3117ad9f470d7a72eb99cd7052a3965ed1c1a21
Best regards,
Signature · 1 line
Jens Axboe