Thread (1 message) 1 message, 1 author, 2011-10-05
  • (off-list ancestor, not in this archive)
  • Re: aio_cancel · Jon Grant <hidden> · 2011-10-05

Re: aio_cancel

From: Jon Grant <hidden>
Date: 2011-10-05 00:08:56

Possibly related (same subject, not in this thread)

Michael Kerrisk wrote, On 04/10/11 06:42:
Hi Jon,

On Tue, Oct 4, 2011 at 12:03 AM, Jon Grant[off-list ref]  wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help