* 'master' of https://github.com/ilikdoge/liburing:
  man/io_uring_submit_and_wait_timeout.3: fix return value description
This commit is contained in:
Jens Axboe
2022-10-17 15:57:12 -07:00
+5 -1
View File
@@ -38,10 +38,14 @@ 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 the number of submitted submission queue entries. On failure it returns
returns 0 and the cqe_ptr param is filled in. On failure it returns
.BR -errno .
The most common failure case is not receiving a completion within the specified
timeout,