io_submit.2: acknowledge possibility of short return
PATCH 1/1 io_submit.2: acknowledge possibility of short return
Note that the return value may be a value less than nr if not all iocbs were queued at once. This would have saved me an embarrassing amount of time.
--- man2/io_submit.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
man2/io_submit.2 +1 -1
@@ -32,7 +32,7 @@ which will be submitted to context \fIctx_id\fP. On success, .BR io_submit () returns the number of \fIiocb\fPs submitted (which may be -0 if \fInr\fP is zero). +less than \fInr\fP, or 0 if \fInr\fP is zero). For the failure return, see NOTES. .SH ERRORS .TP
Signature · 6 lines
2.13.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20170907204428.8344-1-sage-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Hello Sage,
Quoted 3 lines · Sage Weil
Note that the return value may be a value less than nr if not all iocbs were queued at once. This would have saved me an embarrassing amount of time.
Thanks. Applied!
Cheers,
Michael
Quoted 11 lines
Signed-off-by Sage Weil <[email protected]>--- man2/io_submit.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)man2/io_submit.2 +0
-0
man2/io_submit.2 which will be submitted to context \fIctx_id\fP. · line 38
Quoted 8 lines
man2/io_submit.2 +1
-1@@ -32,7 +32,7 @@ which will be submitted to context \fIctx_id\fP. On success, .BR io_submit () returns the number of \fIiocb\fPs submitted (which may be -0 if \fInr\fP is zero). +less than \fInr\fP, or 0 if \fInr\fP is zero). For the failure return, see NOTES. .SH ERRORS .TP
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html