Skip to contentSkip to conversation

io_submit.2: acknowledge possibility of short return

PATCH In review Sage Weil 2 participants 2 messages Sep 7, 2017 – Sep 14, 2017 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore

Sage Weil

author
#0 lore raw

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
index 36465b64b..77ba34671 100644
@@ -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

#2 lore raw

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
---
  man2/io_submit.2 | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
man2/io_submit.2 +0 -0
index 36465b64b..77ba34671 100644

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