* aio_cancel
@ 2011-10-03 22:03 Jon Grant
[not found] ` <CAGc9Evf=94fyfYM67q0BRJCN=vu14aYV91pE+Hw=uhgkVS5p5g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Jon Grant @ 2011-10-03 22:03 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Hello
I have a query about the ask about the aio_cancel description please.
http://man7.org/linux/man-pages/online/pages/man3/aio_cancel.3.html
"Normal asynchronous notification occurs for canceled requests. The request
return status is set to -1, and the request error status is set
to ECANCELED."
I would like to ask about this description. Could the detail of
"request return status" and "request error status" be described
please.
My assumption
"request return status" -- perhaps the value returned by aio_return()?
"request error status" -- not sure. maybe aio_error() ?
Thank you for taking a look into this.
Best regards, Jon
--
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] 6+ messages in thread
* Re: aio_cancel
[not found] ` <CAGc9Evf=94fyfYM67q0BRJCN=vu14aYV91pE+Hw=uhgkVS5p5g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-10-04 5:42 ` Michael Kerrisk
[not found] ` <CAKgNAkgcKRrdepNS9jQw=MzNY+sRpP+-idDEfpT0ALBJOJ3w1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Michael Kerrisk @ 2011-10-04 5:42 UTC (permalink / raw)
To: Jon Grant; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Hi Jon,
On Tue, Oct 4, 2011 at 12:03 AM, Jon Grant <jg-hus3n9K41k0@public.gmane.org> wrote:
> Hello
>
> I have a query about the ask about the aio_cancel description please.
>
> http://man7.org/linux/man-pages/online/pages/man3/aio_cancel.3.html
>
> "Normal asynchronous notification occurs for canceled requests. The request
> return status is set to -1, and the request error status is set
> to ECANCELED."
>
> I would like to ask about this description. Could the detail of
> "request return status" and "request error status" be described
> please.
>
> My assumption
>
> "request return status" -- perhaps the value returned by aio_return()?
> "request error status" -- not sure. maybe aio_error() ?
>
> Thank you for taking a look into this.
Your assumption is correct. I added some words to the man page for
version 3.35 to clarify this.
Cheers,
Michael
--
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] 6+ messages in thread
* Re: aio_cancel
[not found] ` <CAKgNAkgcKRrdepNS9jQw=MzNY+sRpP+-idDEfpT0ALBJOJ3w1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-10-05 0:08 ` Jon Grant
[not found] ` <4E8BA018.5070707-hus3n9K41k0@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Jon Grant @ 2011-10-05 0:08 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Michael Kerrisk wrote, On 04/10/11 06:42:
> Hi Jon,
>
> On Tue, Oct 4, 2011 at 12:03 AM, Jon Grant<jg-hus3n9K41k0@public.gmane.org> wrote:
>> Hello
>>
>> I have a query about the ask about the aio_cancel description please.
>>
>> http://man7.org/linux/man-pages/online/pages/man3/aio_cancel.3.html
>>
>> "Normal asynchronous notification occurs for canceled requests. The request
>> return status is set to -1, and the request error status is set
>> to ECANCELED."
>>
>> I would like to ask about this description. Could the detail of
>> "request return status" and "request error status" be described
>> please.
>>
>> My assumption
>>
>> "request return status" -- perhaps the value returned by aio_return()?
>> "request error status" -- not sure. maybe aio_error() ?
>>
>> Thank you for taking a look into this.
>
> Your assumption is correct. I added some words to the man page for
> version 3.35 to clarify this.
Looks good.
Could I ask a related question. When an aio block is cancelled, is there
anyway to get back the byte count that was processed? e.g. aio_read, the
number of bytes read before the operation was cancelled.
Best regards, Jon
--
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] 6+ messages in thread
* Re: aio_cancel
[not found] ` <4E8BA018.5070707-hus3n9K41k0@public.gmane.org>
@ 2011-10-05 4:37 ` Michael Kerrisk
[not found] ` <CAKgNAkhdZwP7hVH2GdmMV9CH4LTXURbO=TrAg0QgiG7_XXdQFg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Michael Kerrisk @ 2011-10-05 4:37 UTC (permalink / raw)
To: Jon Grant; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
On Wed, Oct 5, 2011 at 2:08 AM, Jon Grant <jg-hus3n9K41k0@public.gmane.org> wrote:
> Michael Kerrisk wrote, On 04/10/11 06:42:
>>
>> Hi Jon,
>>
>> On Tue, Oct 4, 2011 at 12:03 AM, Jon Grant<jg-hus3n9K41k0@public.gmane.org> wrote:
>>>
>>> Hello
>>>
>>> I have a query about the ask about the aio_cancel description please.
>>>
>>> http://man7.org/linux/man-pages/online/pages/man3/aio_cancel.3.html
>>>
>>> "Normal asynchronous notification occurs for canceled requests. The
>>> request
>>> return status is set to -1, and the request error status is set
>>> to ECANCELED."
>>>
>>> I would like to ask about this description. Could the detail of
>>> "request return status" and "request error status" be described
>>> please.
>>>
>>> My assumption
>>>
>>> "request return status" -- perhaps the value returned by aio_return()?
>>> "request error status" -- not sure. maybe aio_error() ?
>>>
>>> Thank you for taking a look into this.
>>
>> Your assumption is correct. I added some words to the man page for
>> version 3.35 to clarify this.
>
> Looks good.
>
> Could I ask a related question. When an aio block is cancelled, is there
> anyway to get back the byte count that was processed? e.g. aio_read, the
> number of bytes read before the operation was cancelled.
Offhand, I don't know. What happens if you try aio_return() +
aio_error()? When you find out, send me a patch!
Cheers,
Michael
--
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] 6+ messages in thread
* Re: aio_cancel
[not found] ` <CAKgNAkhdZwP7hVH2GdmMV9CH4LTXURbO=TrAg0QgiG7_XXdQFg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-10-08 22:42 ` Jon Grant
[not found] ` <4E90D1C4.3090104-hus3n9K41k0@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Jon Grant @ 2011-10-08 22:42 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
Michael Kerrisk wrote, On 05/10/11 05:37:
> On Wed, Oct 5, 2011 at 2:08 AM, Jon Grant<jg-hus3n9K41k0@public.gmane.org> wrote:
[.]
>> Could I ask a related question. When an aio block is cancelled, is there
>> anyway to get back the byte count that was processed? e.g. aio_read, the
>> number of bytes read before the operation was cancelled.
>
> Offhand, I don't know. What happens if you try aio_return() +
> aio_error()? When you find out, send me a patch!
I wrote a small program to write 30MB to a file with aio_write.
aio_cancel immediately after enqueing. aio_cancel returnend -1, and
errno was AIO_NOTCANCELED, so I guess it is not possible to cancel in my
Ubuntu glibc build.
BTW, could this aio_cancel text be updated to clarify if aio_error or
aio_cancel is returning AIO_ALLDONE.
" This function returns AIO_ALLDONE if
all requests had already been completed before this call. When
some error
occurs, -1 is returned, and errno is set appropriately."
My assumption would be that it refers to aio_Cancel, but as it follows
aio_error description.. could be unclear. Maybe the function name can be
added to the description.
Best regards, Jon
--
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] 6+ messages in thread
* Re: aio_cancel
[not found] ` <4E90D1C4.3090104-hus3n9K41k0@public.gmane.org>
@ 2012-04-17 20:16 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 6+ messages in thread
From: Michael Kerrisk (man-pages) @ 2012-04-17 20:16 UTC (permalink / raw)
To: Jon Grant; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
[...]
> BTW, could this aio_cancel text be updated to clarify if aio_error or
> aio_cancel is returning AIO_ALLDONE.
>
> " This function returns AIO_ALLDONE if
> all requests had already been completed before this call. When some
> error
> occurs, -1 is returned, and errno is set appropriately."
>
> My assumption would be that it refers to aio_Cancel, but as it follows
> aio_error description.. could be unclear. Maybe the function name can be
> added to the description.
Yes, I've made that change for man-pages-3.40.
Cheers,
Michael
--
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] 6+ messages in thread
end of thread, other threads:[~2012-04-17 20:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-03 22:03 aio_cancel Jon Grant
[not found] ` <CAGc9Evf=94fyfYM67q0BRJCN=vu14aYV91pE+Hw=uhgkVS5p5g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-04 5:42 ` aio_cancel Michael Kerrisk
[not found] ` <CAKgNAkgcKRrdepNS9jQw=MzNY+sRpP+-idDEfpT0ALBJOJ3w1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-05 0:08 ` aio_cancel Jon Grant
[not found] ` <4E8BA018.5070707-hus3n9K41k0@public.gmane.org>
2011-10-05 4:37 ` aio_cancel Michael Kerrisk
[not found] ` <CAKgNAkhdZwP7hVH2GdmMV9CH4LTXURbO=TrAg0QgiG7_XXdQFg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-08 22:42 ` aio_cancel Jon Grant
[not found] ` <4E90D1C4.3090104-hus3n9K41k0@public.gmane.org>
2012-04-17 20:16 ` aio_cancel Michael Kerrisk (man-pages)
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.