From 54d785cb806ec8d8f8fecd9837acdaa8c34dcbe2 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 22 Oct 2022 10:40:33 -0600 Subject: [PATCH] Revert "man/io_uring_submit_and_wait_timeout.3: fix return value description" This reverts commit c4c490c5db297c7d5168fea63c97b02716fe6043. Let's make this saner rather than document the odd return of it. Signed-off-by: Jens Axboe --- man/io_uring_submit_and_wait_timeout.3 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/man/io_uring_submit_and_wait_timeout.3 b/man/io_uring_submit_and_wait_timeout.3 index 1767c098..80fe8891 100644 --- a/man/io_uring_submit_and_wait_timeout.3 +++ b/man/io_uring_submit_and_wait_timeout.3 @@ -38,14 +38,10 @@ After the caller retrieves a submission queue entry (SQE) with and prepares the SQE, it can be submitted with .BR io_uring_submit_and_wait_timeout (3) . -Unlike the other submit functions, this does not return the number of submitted entries. -The actual number submitted can be less than the total number of ready SQEs if there -was an error submitting an SQE. It is not an error to submit less than the total number of SQEs. - .SH RETURN VALUE On success .BR io_uring_submit_and_wait_timeout (3) -returns 0 and the cqe_ptr param is filled in. On failure it returns +returns the number of submitted submission queue entries. On failure it returns .BR -errno . The most common failure case is not receiving a completion within the specified timeout,