Re: aio_cancel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

On Tue, Oct 4, 2011 at 12:03 AM, Jon Grant<jg@xxxxxxxx>  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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux