All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] updates for the io_*.2 man pages
@ 2013-04-04 19:36 Jeff Moyer
       [not found] ` <1365104218-26042-1-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 23+ messages in thread
From: Jeff Moyer @ 2013-04-04 19:36 UTC (permalink / raw)
  To: linux-man-u79uwXL29TY76Z2rM5mHXA
  Cc: chrubis-AlSwsSmVLrQ, mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w

Hi,

Sorry about the botched send yesterday.  I've made the following changes
after reviewing the io*.2 man pages.  I am 100% open to discussion on
the changes.

Cheers,
Jeff

[PATCH 1/4] io_cancel.2: fix up the description
[PATCH 2/4] io_destroy.2: fix up the description
[PATCH 3/4] io_getevents.2: timeout will not be updated
[PATCH 4/4] io_setup.2: clarify nr_events
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

* [PATCH 1/4] io_cancel.2: fix up the description
       [not found] ` <1365104218-26042-1-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2013-04-04 19:36   ` Jeff Moyer
       [not found]     ` <1365104218-26042-2-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2013-04-04 19:36   ` [PATCH 2/4] io_destroy.2: " Jeff Moyer
                     ` (2 subsequent siblings)
  3 siblings, 1 reply; 23+ messages in thread
From: Jeff Moyer @ 2013-04-04 19:36 UTC (permalink / raw)
  To: linux-man-u79uwXL29TY76Z2rM5mHXA
  Cc: chrubis-AlSwsSmVLrQ, mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, Jeff Moyer

The description for this sytem call was a bit inaccurate.  Cyril
still takes issue with my wording, so this is up for further
word-smithing, I think.  I'm open to suggestions.

Signed-off-by: Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
 man2/io_cancel.2 |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/man2/io_cancel.2 b/man2/io_cancel.2
index 0f974ed..6adddf3 100644
--- a/man2/io_cancel.2
+++ b/man2/io_cancel.2
@@ -26,10 +26,10 @@ attempts to cancel an asynchronous I/O operation previously submitted with
 .BR io_submit (2).
 The
 .I ctx_id
-argument is the AIO context ID of the operation to be canceled.
-If the AIO context is found, the event will be canceled and then copied
-into the memory pointed to by \fIresult\fP without being placed
-into the completion queue.
+argument is the AIO context ID into which the operation was submitted.
+If the operation is successfully canceled, the event will be copied into
+the memory pointed to by \fIresult\fP without being placed into the
+completion queue.
 .SH RETURN VALUE
 On success,
 .BR io_cancel ()
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 2/4] io_destroy.2: fix up the description
       [not found] ` <1365104218-26042-1-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2013-04-04 19:36   ` [PATCH 1/4] io_cancel.2: fix up the description Jeff Moyer
@ 2013-04-04 19:36   ` Jeff Moyer
       [not found]     ` <1365104218-26042-3-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2013-04-04 19:36   ` [PATCH 3/4] io_getevents.2: timeout will not be updated Jeff Moyer
  2013-04-04 19:36   ` [PATCH 4/4] io_setup.2: clarify nr_events Jeff Moyer
  3 siblings, 1 reply; 23+ messages in thread
From: Jeff Moyer @ 2013-04-04 19:36 UTC (permalink / raw)
  To: linux-man-u79uwXL29TY76Z2rM5mHXA
  Cc: chrubis-AlSwsSmVLrQ, mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, Jeff Moyer

The description was rather vague, citing a "list of I/O contexts" and
stating that it "can" cancel outstanding requests.  This update makes
things more concrete so that a reader knows exactly what's going on.

Signed-off-by: Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
 man2/io_destroy.2 |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/man2/io_destroy.2 b/man2/io_destroy.2
index 26a84f3..ea318bd 100644
--- a/man2/io_destroy.2
+++ b/man2/io_destroy.2
@@ -21,12 +21,9 @@ There is no glibc wrapper for this system call; see NOTES.
 The
 .BR io_destroy ()
 system call
-removes the asynchronous I/O context specified by
-.I ctx_id
-from the list of
-I/O contexts and then destroys it.
-It can also cancel any outstanding asynchronous I/O
-actions on \fIctx_id\fP and block on completion.
+will attempt to cancel all outstanding asynchronous I/O operations
+against \fIctx_id\fP, will block on the completion of all operations
+that could not be cancelled, and will destroy the the \fIctx_id\fP.
 .SH RETURN VALUE
 On success,
 .BR io_destroy ()
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 3/4] io_getevents.2: timeout will not be updated
       [not found] ` <1365104218-26042-1-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2013-04-04 19:36   ` [PATCH 1/4] io_cancel.2: fix up the description Jeff Moyer
  2013-04-04 19:36   ` [PATCH 2/4] io_destroy.2: " Jeff Moyer
@ 2013-04-04 19:36   ` Jeff Moyer
       [not found]     ` <1365104218-26042-4-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2013-04-04 19:36   ` [PATCH 4/4] io_setup.2: clarify nr_events Jeff Moyer
  3 siblings, 1 reply; 23+ messages in thread
From: Jeff Moyer @ 2013-04-04 19:36 UTC (permalink / raw)
  To: linux-man-u79uwXL29TY76Z2rM5mHXA
  Cc: chrubis-AlSwsSmVLrQ, mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, Jeff Moyer

I looked back through the kernel code, and the timeout was never updated
in any case.  I've submitted a patch upstream to change the comment
above io_getevents.

Signed-off-by: Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
 man2/io_getevents.2 |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/man2/io_getevents.2 b/man2/io_getevents.2
index 34ecd4a..72317c3 100644
--- a/man2/io_getevents.2
+++ b/man2/io_getevents.2
@@ -30,8 +30,7 @@ specified by \fIctx_id\fP.
 The \fItimeout\fP argument specifies the amount of time to wait for events,
 where a NULL timeout waits until at least \fImin_nr\fP events
 have been seen.
-Note that \fItimeout\fP is relative and will be updated if not NULL
-and the operation blocks.
+Note that \fItimeout\fP is relative.
 .SH RETURN VALUE
 On success,
 .BR io_getevents ()
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 4/4] io_setup.2: clarify nr_events
       [not found] ` <1365104218-26042-1-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
                     ` (2 preceding siblings ...)
  2013-04-04 19:36   ` [PATCH 3/4] io_getevents.2: timeout will not be updated Jeff Moyer
@ 2013-04-04 19:36   ` Jeff Moyer
       [not found]     ` <1365104218-26042-5-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  3 siblings, 1 reply; 23+ messages in thread
From: Jeff Moyer @ 2013-04-04 19:36 UTC (permalink / raw)
  To: linux-man-u79uwXL29TY76Z2rM5mHXA
  Cc: chrubis-AlSwsSmVLrQ, mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, Jeff Moyer

nr_events is technically the number of completion events that can
be stored in the completion ring.  The wording of the man page:
  "capable of receiving at least nr_events"
seems dubious to me, only because I worry that folks might interpret
that to mean nr_events total, instead of nr_events concurrently.

Further, I've added information on where to find the per-user limit
on nr_events, /proc/sys/fs/aio-max-nr.  Let me know if you think that
is not relevent.

Signed-off-by: Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
 man2/io_setup.2 |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/man2/io_setup.2 b/man2/io_setup.2
index 2a541bf..8527b80 100644
--- a/man2/io_setup.2
+++ b/man2/io_setup.2
@@ -21,7 +21,7 @@ There is no glibc wrapper for this system call; see NOTES.
 The
 .BR io_setup ()
 system call
-creates an asynchronous I/O context capable of receiving
+creates an asynchronous I/O context capable of concurrently processing
 at least \fInr_events\fP.
 The
 .I ctx_idp
@@ -37,7 +37,8 @@ For the failure return, see NOTES.
 .SH ERRORS
 .TP
 .B EAGAIN
-The specified \fInr_events\fP exceeds the user's limit of available events.
+The specified \fInr_events\fP exceeds the user's limit of available events,
+as defined in /proc/sys/fs/aio-max-nr.
 .TP
 .B EFAULT
 An invalid pointer is passed for \fIctx_idp\fP.
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* Re: [PATCH 3/4] io_getevents.2: timeout will not be updated
       [not found]     ` <1365104218-26042-4-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2013-04-08  9:53       ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 23+ messages in thread
From: Michael Kerrisk (man-pages) @ 2013-04-08  9:53 UTC (permalink / raw)
  To: Jeff Moyer; +Cc: linux-man, Cyril Hrubis

On Thu, Apr 4, 2013 at 9:36 PM, Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> I looked back through the kernel code, and the timeout was never updated
> in any case.  I've submitted a patch upstream to change the comment
> above io_getevents.

Thanks Jeff. I councur (but it would have been good also to add me to
the CC of that patch, so I could track the discussion). Patch applied.

Cheers,

Michael



> Signed-off-by: Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
>  man2/io_getevents.2 |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/man2/io_getevents.2 b/man2/io_getevents.2
> index 34ecd4a..72317c3 100644
> --- a/man2/io_getevents.2
> +++ b/man2/io_getevents.2
> @@ -30,8 +30,7 @@ specified by \fIctx_id\fP.
>  The \fItimeout\fP argument specifies the amount of time to wait for events,
>  where a NULL timeout waits until at least \fImin_nr\fP events
>  have been seen.
> -Note that \fItimeout\fP is relative and will be updated if not NULL
> -and the operation blocks.
> +Note that \fItimeout\fP is relative.
>  .SH RETURN VALUE
>  On success,
>  .BR io_getevents ()
> --
> 1.7.1
>



--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 4/4] io_setup.2: clarify nr_events
       [not found]     ` <1365104218-26042-5-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2013-04-08  9:58       ` Michael Kerrisk (man-pages)
       [not found]         ` <CAKgNAkhGAiDETDcQSFhYNCqJgbRH20SVHfV4=osW9=xAr1Zk4Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2013-04-22 13:30       ` chrubis-AlSwsSmVLrQ
  1 sibling, 1 reply; 23+ messages in thread
From: Michael Kerrisk (man-pages) @ 2013-04-08  9:58 UTC (permalink / raw)
  To: Jeff Moyer; +Cc: linux-man, Cyril Hrubis

On Thu, Apr 4, 2013 at 9:36 PM, Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> nr_events is technically the number of completion events that can
> be stored in the completion ring.  The wording of the man page:
>   "capable of receiving at least nr_events"
> seems dubious to me, only because I worry that folks might interpret
> that to mean nr_events total, instead of nr_events concurrently.
>
> Further, I've added information on where to find the per-user limit
> on nr_events, /proc/sys/fs/aio-max-nr.  Let me know if you think that
> is not relevent.

All looks good to me. Applied.

Cheers,

Michael


> Signed-off-by: Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
>  man2/io_setup.2 |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/man2/io_setup.2 b/man2/io_setup.2
> index 2a541bf..8527b80 100644
> --- a/man2/io_setup.2
> +++ b/man2/io_setup.2
> @@ -21,7 +21,7 @@ There is no glibc wrapper for this system call; see NOTES.
>  The
>  .BR io_setup ()
>  system call
> -creates an asynchronous I/O context capable of receiving
> +creates an asynchronous I/O context capable of concurrently processing
>  at least \fInr_events\fP.
>  The
>  .I ctx_idp
> @@ -37,7 +37,8 @@ For the failure return, see NOTES.
>  .SH ERRORS
>  .TP
>  .B EAGAIN
> -The specified \fInr_events\fP exceeds the user's limit of available events.
> +The specified \fInr_events\fP exceeds the user's limit of available events,
> +as defined in /proc/sys/fs/aio-max-nr.
>  .TP
>  .B EFAULT
>  An invalid pointer is passed for \fIctx_idp\fP.
> --
> 1.7.1
>



--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 2/4] io_destroy.2: fix up the description
       [not found]     ` <1365104218-26042-3-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2013-04-08 10:02       ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 23+ messages in thread
From: Michael Kerrisk (man-pages) @ 2013-04-08 10:02 UTC (permalink / raw)
  To: Jeff Moyer; +Cc: linux-man, Cyril Hrubis

Hi Jeff,

On Thu, Apr 4, 2013 at 9:36 PM, Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> The description was rather vague, citing a "list of I/O contexts" and
> stating that it "can" cancel outstanding requests.  This update makes
> things more concrete so that a reader knows exactly what's going on.

Thanks. Applied.

Cheers,

Michael


> Signed-off-by: Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
>  man2/io_destroy.2 |    9 +++------
>  1 files changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/man2/io_destroy.2 b/man2/io_destroy.2
> index 26a84f3..ea318bd 100644
> --- a/man2/io_destroy.2
> +++ b/man2/io_destroy.2
> @@ -21,12 +21,9 @@ There is no glibc wrapper for this system call; see NOTES.
>  The
>  .BR io_destroy ()
>  system call
> -removes the asynchronous I/O context specified by
> -.I ctx_id
> -from the list of
> -I/O contexts and then destroys it.
> -It can also cancel any outstanding asynchronous I/O
> -actions on \fIctx_id\fP and block on completion.
> +will attempt to cancel all outstanding asynchronous I/O operations
> +against \fIctx_id\fP, will block on the completion of all operations
> +that could not be cancelled, and will destroy the the \fIctx_id\fP.
>  .SH RETURN VALUE
>  On success,
>  .BR io_destroy ()
> --
> 1.7.1
>



--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 1/4] io_cancel.2: fix up the description
       [not found]     ` <1365104218-26042-2-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2013-04-08 10:04       ` Michael Kerrisk (man-pages)
       [not found]         ` <CAKgNAki66jwQvKGLDWRomG0-s29EP34MZCoU=eUjHnQsn3x8wA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 23+ messages in thread
From: Michael Kerrisk (man-pages) @ 2013-04-08 10:04 UTC (permalink / raw)
  To: Cyril Hrubis; +Cc: Jeff Moyer, linux-man

On Thu, Apr 4, 2013 at 9:36 PM, Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> The description for this sytem call was a bit inaccurate.  Cyril
> still takes issue with my wording, so this is up for further
> word-smithing, I think.  I'm open to suggestions.

Cyril, do you have any comment?

Thanks,

Michael


> Signed-off-by: Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
>  man2/io_cancel.2 |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/man2/io_cancel.2 b/man2/io_cancel.2
> index 0f974ed..6adddf3 100644
> --- a/man2/io_cancel.2
> +++ b/man2/io_cancel.2
> @@ -26,10 +26,10 @@ attempts to cancel an asynchronous I/O operation previously submitted with
>  .BR io_submit (2).
>  The
>  .I ctx_id
> -argument is the AIO context ID of the operation to be canceled.
> -If the AIO context is found, the event will be canceled and then copied
> -into the memory pointed to by \fIresult\fP without being placed
> -into the completion queue.
> +argument is the AIO context ID into which the operation was submitted.
> +If the operation is successfully canceled, the event will be copied into
> +the memory pointed to by \fIresult\fP without being placed into the
> +completion queue.
>  .SH RETURN VALUE
>  On success,
>  .BR io_cancel ()
> --
> 1.7.1
>



--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 1/4] io_cancel.2: fix up the description
       [not found]         ` <CAKgNAki66jwQvKGLDWRomG0-s29EP34MZCoU=eUjHnQsn3x8wA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-04-10 11:14           ` chrubis-AlSwsSmVLrQ
       [not found]             ` <20130410111422.GB1376-WQn62CkN1y0S3W1tAdPHOtBPR1lH4CV8@public.gmane.org>
  0 siblings, 1 reply; 23+ messages in thread
From: chrubis-AlSwsSmVLrQ @ 2013-04-10 11:14 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: Jeff Moyer, linux-man

Hi!
> > The description for this sytem call was a bit inaccurate.  Cyril
> > still takes issue with my wording, so this is up for further
> > word-smithing, I think.  I'm open to suggestions.
> 
> Cyril, do you have any comment?

It is no big deal but I think that the sentence could be a little clearer
with explicitly stating that the ctx_id is aio context and the iocb
describes the operation to be canceled. Something like:

The
.I iocb
describes the operation to be canceled and the
.I ctx_id
is aio context the operation was submitted to.

> > Signed-off-by: Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> > ---
> >  man2/io_cancel.2 |    8 ++++----
> >  1 files changed, 4 insertions(+), 4 deletions(-)
> >
> > diff --git a/man2/io_cancel.2 b/man2/io_cancel.2
> > index 0f974ed..6adddf3 100644
> > --- a/man2/io_cancel.2
> > +++ b/man2/io_cancel.2
> > @@ -26,10 +26,10 @@ attempts to cancel an asynchronous I/O operation previously submitted with
> >  .BR io_submit (2).
> >  The
> >  .I ctx_id
> > -argument is the AIO context ID of the operation to be canceled.
> > -If the AIO context is found, the event will be canceled and then copied
> > -into the memory pointed to by \fIresult\fP without being placed
> > -into the completion queue.
> > +argument is the AIO context ID into which the operation was submitted.
> > +If the operation is successfully canceled, the event will be copied into
> > +the memory pointed to by \fIresult\fP without being placed into the
> > +completion queue.
> >  .SH RETURN VALUE
> >  On success,
> >  .BR io_cancel ()
> > --
> > 1.7.1
> >
> 
> 
> 
> --
> Michael Kerrisk
> Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
> Author of "The Linux Programming Interface"; http://man7.org/tlpi/

-- 
Cyril Hrubis
chrubis-AlSwsSmVLrQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 1/4] io_cancel.2: fix up the description
       [not found]             ` <20130410111422.GB1376-WQn62CkN1y0S3W1tAdPHOtBPR1lH4CV8@public.gmane.org>
@ 2013-04-10 13:59               ` Jeff Moyer
       [not found]                 ` <x49ppy2jxkm.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
  0 siblings, 1 reply; 23+ messages in thread
From: Jeff Moyer @ 2013-04-10 13:59 UTC (permalink / raw)
  To: chrubis-AlSwsSmVLrQ; +Cc: Michael Kerrisk (man-pages), linux-man

chrubis-AlSwsSmVLrQ@public.gmane.org writes:

> Hi!
>> > The description for this sytem call was a bit inaccurate.  Cyril
>> > still takes issue with my wording, so this is up for further
>> > word-smithing, I think.  I'm open to suggestions.
>> 
>> Cyril, do you have any comment?
>
> It is no big deal but I think that the sentence could be a little clearer
> with explicitly stating that the ctx_id is aio context and the iocb
> describes the operation to be canceled. Something like:
>
> The
> .I iocb
> describes the operation to be canceled and the
> .I ctx_id
> is aio context the operation was submitted to.

I agree that this is better.  Thanks Cyril!

-Jeff
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 1/4] io_cancel.2: fix up the description
       [not found]                 ` <x49ppy2jxkm.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
@ 2013-04-11  9:08                   ` Michael Kerrisk (man-pages)
       [not found]                     ` <CAKgNAkg0wv=XO7UwpnafE98HNMZrA=jZh4fN+m7UmijwUaroJg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 23+ messages in thread
From: Michael Kerrisk (man-pages) @ 2013-04-11  9:08 UTC (permalink / raw)
  To: Jeff Moyer; +Cc: Cyril Hrubis, linux-man

On Wed, Apr 10, 2013 at 3:59 PM, Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> chrubis-AlSwsSmVLrQ@public.gmane.org writes:
>
>> Hi!
>>> > The description for this sytem call was a bit inaccurate.  Cyril
>>> > still takes issue with my wording, so this is up for further
>>> > word-smithing, I think.  I'm open to suggestions.
>>>
>>> Cyril, do you have any comment?
>>
>> It is no big deal but I think that the sentence could be a little clearer
>> with explicitly stating that the ctx_id is aio context and the iocb
>> describes the operation to be canceled. Something like:
>>
>> The
>> .I iocb
>> describes the operation to be canceled and the
>> .I ctx_id
>> is aio context the operation was submitted to.
>
> I agree that this is better.  Thanks Cyril!


So, in the end, I have

       The  iocb  argument  describes the operation to be canceled
       and the ctx_id argument is the AIO  context  to  which  the
       operation  was submitted.

Okay?

Thanks,

Michael
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 1/4] io_cancel.2: fix up the description
       [not found]                     ` <CAKgNAkg0wv=XO7UwpnafE98HNMZrA=jZh4fN+m7UmijwUaroJg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-04-11 10:14                       ` chrubis-AlSwsSmVLrQ
       [not found]                         ` <20130411101430.GA1325-WQn62CkN1y0S3W1tAdPHOtBPR1lH4CV8@public.gmane.org>
  0 siblings, 1 reply; 23+ messages in thread
From: chrubis-AlSwsSmVLrQ @ 2013-04-11 10:14 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: Jeff Moyer, linux-man

Hi!
> >> It is no big deal but I think that the sentence could be a little clearer
> >> with explicitly stating that the ctx_id is aio context and the iocb
> >> describes the operation to be canceled. Something like:
> >>
> >> The
> >> .I iocb
> >> describes the operation to be canceled and the
> >> .I ctx_id
> >> is aio context the operation was submitted to.
> >
> > I agree that this is better.  Thanks Cyril!
> 
> 
> So, in the end, I have
> 
>        The  iocb  argument  describes the operation to be canceled
>        and the ctx_id argument is the AIO  context  to  which  the
>        operation  was submitted.
> 
> Okay?

Okay with me.

-- 
Cyril Hrubis
chrubis-AlSwsSmVLrQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 1/4] io_cancel.2: fix up the description
       [not found]                         ` <20130411101430.GA1325-WQn62CkN1y0S3W1tAdPHOtBPR1lH4CV8@public.gmane.org>
@ 2013-04-11 13:52                           ` Jeff Moyer
  0 siblings, 0 replies; 23+ messages in thread
From: Jeff Moyer @ 2013-04-11 13:52 UTC (permalink / raw)
  To: chrubis-AlSwsSmVLrQ; +Cc: Michael Kerrisk (man-pages), linux-man

chrubis-AlSwsSmVLrQ@public.gmane.org writes:

> Hi!
>> >> It is no big deal but I think that the sentence could be a little clearer
>> >> with explicitly stating that the ctx_id is aio context and the iocb
>> >> describes the operation to be canceled. Something like:
>> >>
>> >> The
>> >> .I iocb
>> >> describes the operation to be canceled and the
>> >> .I ctx_id
>> >> is aio context the operation was submitted to.
>> >
>> > I agree that this is better.  Thanks Cyril!
>> 
>> 
>> So, in the end, I have
>> 
>>        The  iocb  argument  describes the operation to be canceled
>>        and the ctx_id argument is the AIO  context  to  which  the
>>        operation  was submitted.
>> 
>> Okay?
>
> Okay with me.

Okay with me, too.

Cheers,
Jeff
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 4/4] io_setup.2: clarify nr_events
       [not found]         ` <CAKgNAkhGAiDETDcQSFhYNCqJgbRH20SVHfV4=osW9=xAr1Zk4Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-04-22 13:08           ` chrubis-AlSwsSmVLrQ
  2013-05-14 14:47             ` chrubis-AlSwsSmVLrQ
  0 siblings, 1 reply; 23+ messages in thread
From: chrubis-AlSwsSmVLrQ @ 2013-04-22 13:08 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: Jeff Moyer, linux-man

Hi!
> > Signed-off-by: Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> > ---
> >  man2/io_setup.2 |    5 +++--
> >  1 files changed, 3 insertions(+), 2 deletions(-)
> >
> > diff --git a/man2/io_setup.2 b/man2/io_setup.2
> > index 2a541bf..8527b80 100644
> > --- a/man2/io_setup.2
> > +++ b/man2/io_setup.2
> > @@ -21,7 +21,7 @@ There is no glibc wrapper for this system call; see NOTES.
> >  The
> >  .BR io_setup ()
> >  system call
> > -creates an asynchronous I/O context capable of receiving
> > +creates an asynchronous I/O context capable of concurrently processing
> >  at least \fInr_events\fP.
> >  The
> >  .I ctx_idp
> > @@ -37,7 +37,8 @@ For the failure return, see NOTES.
> >  .SH ERRORS
> >  .TP
> >  .B EAGAIN
> > -The specified \fInr_events\fP exceeds the user's limit of available events.
> > +The specified \fInr_events\fP exceeds the user's limit of available events,
> > +as defined in /proc/sys/fs/aio-max-nr.
> >  .TP
> >  .B EFAULT
> >  An invalid pointer is passed for \fIctx_idp\fP.

I've pulled the man pages git and started to work on the aio manpages
and noticed that there is (for some strange reason) double 'of' added by
this patch, see trivial patch to fix that bellow.

diff --git a/man2/io_setup.2 b/man2/io_setup.2
index 81b9a8b..549495a 100644
--- a/man2/io_setup.2
+++ b/man2/io_setup.2
@@ -21,7 +21,7 @@ There is no glibc wrapper for this system call; see NOTES.
 The
 .BR io_setup ()
 system call
-creates an asynchronous I/O context capable of of concurrently processing
+creates an asynchronous I/O context capable of concurrently processing
 at least \fInr_events\fP.
 The
 .I ctx_idp

-- 
Cyril Hrubis
chrubis-AlSwsSmVLrQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* Re: [PATCH 4/4] io_setup.2: clarify nr_events
       [not found]     ` <1365104218-26042-5-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  2013-04-08  9:58       ` Michael Kerrisk (man-pages)
@ 2013-04-22 13:30       ` chrubis-AlSwsSmVLrQ
  2013-04-22 14:01         ` Jeff Moyer
  1 sibling, 1 reply; 23+ messages in thread
From: chrubis-AlSwsSmVLrQ @ 2013-04-22 13:30 UTC (permalink / raw)
  To: Jeff Moyer
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w

Hi!
Looking carefully at the io_setup.2 man page it says:

...
The  io_setup() system call creates an asynchronous I/O context capable
of concurrently processing at least nr_events.
...
                            ^
			    The 'at least' caught my eye, as it is it
			    may suggest that the nr_events is low limit
			    on the number of events.


Wouldn't be 'at most' more appropriate here? Quick look in the kernel
sources suggest that it allocates buffers for nr_events elements.

Or am I missing something?

-- 
Cyril Hrubis
chrubis-AlSwsSmVLrQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 4/4] io_setup.2: clarify nr_events
  2013-04-22 13:30       ` chrubis-AlSwsSmVLrQ
@ 2013-04-22 14:01         ` Jeff Moyer
       [not found]           ` <x497gjuoeal.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
  0 siblings, 1 reply; 23+ messages in thread
From: Jeff Moyer @ 2013-04-22 14:01 UTC (permalink / raw)
  To: chrubis-AlSwsSmVLrQ
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w

chrubis-AlSwsSmVLrQ@public.gmane.org writes:

> Hi!
> Looking carefully at the io_setup.2 man page it says:
>
> ...
> The  io_setup() system call creates an asynchronous I/O context capable
> of concurrently processing at least nr_events.
> ...
>                             ^
> 			    The 'at least' caught my eye, as it is it
> 			    may suggest that the nr_events is low limit
> 			    on the number of events.
>
>
> Wouldn't be 'at most' more appropriate here? Quick look in the kernel
> sources suggest that it allocates buffers for nr_events elements.
>
> Or am I missing something?

When the kernel ring buffer is setup, it is created in page size
chunks, and nr_events is rounded up:

        /* Compensate for the ring buffer's head/tail overlap entry */
        nr_events += 2; /* 1 is required, 2 for good luck */

        size = sizeof(struct aio_ring);
        size += sizeof(struct io_event) * nr_events;
        nr_pages = (size + PAGE_SIZE-1) >> PAGE_SHIFT;

        if (nr_pages < 0)
                return -EINVAL;

        nr_events = (PAGE_SIZE * nr_pages - sizeof(struct aio_ring)) / sizeof(struct io_event);

Cheers,
Jeff
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 4/4] io_setup.2: clarify nr_events
       [not found]           ` <x497gjuoeal.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
@ 2013-04-22 14:07             ` chrubis-AlSwsSmVLrQ
  2013-04-22 14:10               ` Jeff Moyer
  0 siblings, 1 reply; 23+ messages in thread
From: chrubis-AlSwsSmVLrQ @ 2013-04-22 14:07 UTC (permalink / raw)
  To: Jeff Moyer
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w

Hi!
> > Looking carefully at the io_setup.2 man page it says:
> >
> > ...
> > The  io_setup() system call creates an asynchronous I/O context capable
> > of concurrently processing at least nr_events.
> > ...
> >                             ^
> > 			    The 'at least' caught my eye, as it is it
> > 			    may suggest that the nr_events is low limit
> > 			    on the number of events.
> >
> >
> > Wouldn't be 'at most' more appropriate here? Quick look in the kernel
> > sources suggest that it allocates buffers for nr_events elements.
> >
> > Or am I missing something?
> 
> When the kernel ring buffer is setup, it is created in page size
> chunks, and nr_events is rounded up:
> 
>         /* Compensate for the ring buffer's head/tail overlap entry */
>         nr_events += 2; /* 1 is required, 2 for good luck */
> 
>         size = sizeof(struct aio_ring);
>         size += sizeof(struct io_event) * nr_events;
>         nr_pages = (size + PAGE_SIZE-1) >> PAGE_SHIFT;
> 
>         if (nr_pages < 0)
>                 return -EINVAL;
> 
>         nr_events = (PAGE_SIZE * nr_pages - sizeof(struct aio_ring)) / sizeof(struct io_event);

Ah, now it all makes sense.

And I'm thinking if it is worth of adding more clear description.

-- 
Cyril Hrubis
chrubis-AlSwsSmVLrQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 4/4] io_setup.2: clarify nr_events
  2013-04-22 14:07             ` chrubis-AlSwsSmVLrQ
@ 2013-04-22 14:10               ` Jeff Moyer
       [not found]                 ` <x4938uiodvg.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
  0 siblings, 1 reply; 23+ messages in thread
From: Jeff Moyer @ 2013-04-22 14:10 UTC (permalink / raw)
  To: chrubis-AlSwsSmVLrQ
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w

chrubis-AlSwsSmVLrQ@public.gmane.org writes:

> Hi!
>> > Looking carefully at the io_setup.2 man page it says:
>> >
>> > ...
>> > The  io_setup() system call creates an asynchronous I/O context capable
>> > of concurrently processing at least nr_events.
>> > ...
>> >                             ^
>> > 			    The 'at least' caught my eye, as it is it
>> > 			    may suggest that the nr_events is low limit
>> > 			    on the number of events.
>> >
>> >
>> > Wouldn't be 'at most' more appropriate here? Quick look in the kernel
>> > sources suggest that it allocates buffers for nr_events elements.
>> >
>> > Or am I missing something?
>> 
>> When the kernel ring buffer is setup, it is created in page size
>> chunks, and nr_events is rounded up:
>> 
>>         /* Compensate for the ring buffer's head/tail overlap entry */
>>         nr_events += 2; /* 1 is required, 2 for good luck */
>> 
>>         size = sizeof(struct aio_ring);
>>         size += sizeof(struct io_event) * nr_events;
>>         nr_pages = (size + PAGE_SIZE-1) >> PAGE_SHIFT;
>> 
>>         if (nr_pages < 0)
>>                 return -EINVAL;
>> 
>>         nr_events = (PAGE_SIZE * nr_pages - sizeof(struct aio_ring)) / sizeof(struct io_event);
>
> Ah, now it all makes sense.
>
> And I'm thinking if it is worth of adding more clear description.

I don't think so, since it's an implementation detail and subject to
change.

Cheers,
Jeff
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 4/4] io_setup.2: clarify nr_events
       [not found]                 ` <x4938uiodvg.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
@ 2013-04-22 14:21                   ` chrubis-AlSwsSmVLrQ
  2013-04-22 14:54                   ` chrubis-AlSwsSmVLrQ
  1 sibling, 0 replies; 23+ messages in thread
From: chrubis-AlSwsSmVLrQ @ 2013-04-22 14:21 UTC (permalink / raw)
  To: Jeff Moyer
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w

Hi!
> >> When the kernel ring buffer is setup, it is created in page size
> >> chunks, and nr_events is rounded up:
> >> 
> >>         /* Compensate for the ring buffer's head/tail overlap entry */
> >>         nr_events += 2; /* 1 is required, 2 for good luck */
> >> 
> >>         size = sizeof(struct aio_ring);
> >>         size += sizeof(struct io_event) * nr_events;
> >>         nr_pages = (size + PAGE_SIZE-1) >> PAGE_SHIFT;
> >> 
> >>         if (nr_pages < 0)
> >>                 return -EINVAL;
> >> 
> >>         nr_events = (PAGE_SIZE * nr_pages - sizeof(struct aio_ring)) / sizeof(struct io_event);
> >
> > Ah, now it all makes sense.
> >
> > And I'm thinking if it is worth of adding more clear description.
> 
> I don't think so, since it's an implementation detail and subject to
> change.

That is for sure, but I would like to advice the user of the interface
that nr_events is the maximum that could be expected to portably work.

-- 
Cyril Hrubis
chrubis-AlSwsSmVLrQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 4/4] io_setup.2: clarify nr_events
       [not found]                 ` <x4938uiodvg.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
  2013-04-22 14:21                   ` chrubis-AlSwsSmVLrQ
@ 2013-04-22 14:54                   ` chrubis-AlSwsSmVLrQ
  2013-04-22 15:49                     ` Jeff Moyer
  1 sibling, 1 reply; 23+ messages in thread
From: chrubis-AlSwsSmVLrQ @ 2013-04-22 14:54 UTC (permalink / raw)
  To: Jeff Moyer
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w

Hi!
> >> > Looking carefully at the io_setup.2 man page it says:
> >> >
> >> > ...
> >> > The  io_setup() system call creates an asynchronous I/O context capable
> >> > of concurrently processing at least nr_events.
> >> > ...
> >> >                             ^
> >> > 			    The 'at least' caught my eye, as it is it
> >> > 			    may suggest that the nr_events is low limit
> >> > 			    on the number of events.
> >> >
> >> >
> >> > Wouldn't be 'at most' more appropriate here? Quick look in the kernel
> >> > sources suggest that it allocates buffers for nr_events elements.
> >> >
> >> > Or am I missing something?
> >> 
> >> When the kernel ring buffer is setup, it is created in page size
> >> chunks, and nr_events is rounded up:
> >> 
> >>         /* Compensate for the ring buffer's head/tail overlap entry */
> >>         nr_events += 2; /* 1 is required, 2 for good luck */
> >> 
> >>         size = sizeof(struct aio_ring);
> >>         size += sizeof(struct io_event) * nr_events;
> >>         nr_pages = (size + PAGE_SIZE-1) >> PAGE_SHIFT;
> >> 
> >>         if (nr_pages < 0)
> >>                 return -EINVAL;
> >> 
> >>         nr_events = (PAGE_SIZE * nr_pages - sizeof(struct aio_ring)) / sizeof(struct io_event);
> >
> > Ah, now it all makes sense.
> >
> > And I'm thinking if it is worth of adding more clear description.
> 
> I don't think so, since it's an implementation detail and subject to
> change.

What about this wording:

The io_setup() system call creates an asynchronous I/O context suitable
for concurrently processing nr_events operations.

-- 
Cyril Hrubis
chrubis-AlSwsSmVLrQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 4/4] io_setup.2: clarify nr_events
  2013-04-22 14:54                   ` chrubis-AlSwsSmVLrQ
@ 2013-04-22 15:49                     ` Jeff Moyer
  0 siblings, 0 replies; 23+ messages in thread
From: Jeff Moyer @ 2013-04-22 15:49 UTC (permalink / raw)
  To: chrubis-AlSwsSmVLrQ
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w

chrubis-AlSwsSmVLrQ@public.gmane.org writes:

> What about this wording:
>
> The io_setup() system call creates an asynchronous I/O context suitable
> for concurrently processing nr_events operations.

That is fine with me.

Cheers,
Jeff
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 4/4] io_setup.2: clarify nr_events
  2013-04-22 13:08           ` chrubis-AlSwsSmVLrQ
@ 2013-05-14 14:47             ` chrubis-AlSwsSmVLrQ
  0 siblings, 0 replies; 23+ messages in thread
From: chrubis-AlSwsSmVLrQ @ 2013-05-14 14:47 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: Jeff Moyer, linux-man

Hi!
> > > Signed-off-by: Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> > > ---
> > >  man2/io_setup.2 |    5 +++--
> > >  1 files changed, 3 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/man2/io_setup.2 b/man2/io_setup.2
> > > index 2a541bf..8527b80 100644
> > > --- a/man2/io_setup.2
> > > +++ b/man2/io_setup.2
> > > @@ -21,7 +21,7 @@ There is no glibc wrapper for this system call; see NOTES.
> > >  The
> > >  .BR io_setup ()
> > >  system call
> > > -creates an asynchronous I/O context capable of receiving
> > > +creates an asynchronous I/O context capable of concurrently processing
> > >  at least \fInr_events\fP.
> > >  The
> > >  .I ctx_idp
> > > @@ -37,7 +37,8 @@ For the failure return, see NOTES.
> > >  .SH ERRORS
> > >  .TP
> > >  .B EAGAIN
> > > -The specified \fInr_events\fP exceeds the user's limit of available events.
> > > +The specified \fInr_events\fP exceeds the user's limit of available events,
> > > +as defined in /proc/sys/fs/aio-max-nr.
> > >  .TP
> > >  .B EFAULT
> > >  An invalid pointer is passed for \fIctx_idp\fP.
> 
> I've pulled the man pages git and started to work on the aio manpages
> and noticed that there is (for some strange reason) double 'of' added by
> this patch, see trivial patch to fix that bellow.
> 
> diff --git a/man2/io_setup.2 b/man2/io_setup.2
> index 81b9a8b..549495a 100644
> --- a/man2/io_setup.2
> +++ b/man2/io_setup.2
> @@ -21,7 +21,7 @@ There is no glibc wrapper for this system call; see NOTES.
>  The
>  .BR io_setup ()
>  system call
> -creates an asynchronous I/O context capable of of concurrently processing
> +creates an asynchronous I/O context capable of concurrently processing
>  at least \fInr_events\fP.
>  The
>  .I ctx_idp

Ping.

-- 
Cyril Hrubis
chrubis-AlSwsSmVLrQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2013-05-14 14:47 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-04 19:36 [PATCH 0/4] updates for the io_*.2 man pages Jeff Moyer
     [not found] ` <1365104218-26042-1-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-04-04 19:36   ` [PATCH 1/4] io_cancel.2: fix up the description Jeff Moyer
     [not found]     ` <1365104218-26042-2-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-04-08 10:04       ` Michael Kerrisk (man-pages)
     [not found]         ` <CAKgNAki66jwQvKGLDWRomG0-s29EP34MZCoU=eUjHnQsn3x8wA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-10 11:14           ` chrubis-AlSwsSmVLrQ
     [not found]             ` <20130410111422.GB1376-WQn62CkN1y0S3W1tAdPHOtBPR1lH4CV8@public.gmane.org>
2013-04-10 13:59               ` Jeff Moyer
     [not found]                 ` <x49ppy2jxkm.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
2013-04-11  9:08                   ` Michael Kerrisk (man-pages)
     [not found]                     ` <CAKgNAkg0wv=XO7UwpnafE98HNMZrA=jZh4fN+m7UmijwUaroJg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-11 10:14                       ` chrubis-AlSwsSmVLrQ
     [not found]                         ` <20130411101430.GA1325-WQn62CkN1y0S3W1tAdPHOtBPR1lH4CV8@public.gmane.org>
2013-04-11 13:52                           ` Jeff Moyer
2013-04-04 19:36   ` [PATCH 2/4] io_destroy.2: " Jeff Moyer
     [not found]     ` <1365104218-26042-3-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-04-08 10:02       ` Michael Kerrisk (man-pages)
2013-04-04 19:36   ` [PATCH 3/4] io_getevents.2: timeout will not be updated Jeff Moyer
     [not found]     ` <1365104218-26042-4-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-04-08  9:53       ` Michael Kerrisk (man-pages)
2013-04-04 19:36   ` [PATCH 4/4] io_setup.2: clarify nr_events Jeff Moyer
     [not found]     ` <1365104218-26042-5-git-send-email-jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-04-08  9:58       ` Michael Kerrisk (man-pages)
     [not found]         ` <CAKgNAkhGAiDETDcQSFhYNCqJgbRH20SVHfV4=osW9=xAr1Zk4Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-22 13:08           ` chrubis-AlSwsSmVLrQ
2013-05-14 14:47             ` chrubis-AlSwsSmVLrQ
2013-04-22 13:30       ` chrubis-AlSwsSmVLrQ
2013-04-22 14:01         ` Jeff Moyer
     [not found]           ` <x497gjuoeal.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
2013-04-22 14:07             ` chrubis-AlSwsSmVLrQ
2013-04-22 14:10               ` Jeff Moyer
     [not found]                 ` <x4938uiodvg.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
2013-04-22 14:21                   ` chrubis-AlSwsSmVLrQ
2013-04-22 14:54                   ` chrubis-AlSwsSmVLrQ
2013-04-22 15:49                     ` Jeff Moyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.