These new errors are added with the restriction series recently merged in io_uring (Linux 5.10). Signed-off-by: Stefano Garzarella <sgarzare@xxxxxxxxxx> --- v2: - put the errors in right section --- man/io_uring_enter.2 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/man/io_uring_enter.2 b/man/io_uring_enter.2 index 8b87e23..15a5a4a 100644 --- a/man/io_uring_enter.2 +++ b/man/io_uring_enter.2 @@ -869,6 +869,13 @@ try again. .I fd is not a valid file descriptor. .TP +.B EBADFD +.I fd +is a valid file descriptor, but the io_uring ring is not in the right state +(enabled). See +.BR io_uring_register (2) +for details on how to enable the ring. +.TP .B EBUSY The application is attempting to overcommit the number of requests it can have pending. The application should wait for some completions and try again. May @@ -904,6 +911,16 @@ These io_uring-specific errors are returned as a negative value in the .I res field of the completion queue entry. .TP +.B EACCES +The +.I flags +field or +.I opcode +in a submission queue entry is not allowed due to registered restrictions. +See +.BR io_uring_register (2) +for details on how restrictions work. +.TP .B EBADF The .I fd -- 2.26.2