aio_return(2)aio_return(2)NAMEaio_return() - return status of an asynchronous I/O operation
SYNOPSISDESCRIPTION
The function returns the return status associated with the structure
referenced by the aiocbp argument. The return value for an asynchro‐
nous I/O operation is the value that would be set by the corresponding
or operation. If the operation has been queued but not completed,
returns and is set to A successful call frees all kernel resources
associated with the calls referenced by aiocbp.
To use this function, link in the realtime library by specifying on the
compiler or linker command line.
RETURN VALUE
If the is invalid or if no asynchronous I/O operation is enqueued for
the returns and is set to indicate the error. Otherwise, returns the
error status of the referenced See aio_read(2), read(2), aio_write(2),
write(2), aio_fsync(2), fsync(2) and lio_listio(2) for relevant error
values.
ERRORS
If detects one of the following error conditions, is set to the indi‐
cated value:
[EINVAL] The aiocbp is not a valid address within the
process virtual address space.
[EINVAL] There was no asynchronous I/O operation enqueued
for the referenced
EXAMPLE
The following code sequence illustrates using to retrieve the error
status of an operation and free the for future re-use.
SEE ALSOaio_cancel(2), aio_error(2), aio_fsync(2), aio_read(2), aio_suspend(2),
aio_write(2), fsync(2), lio_listio(2), read(2), write(2), aio(5).
STANDARDS CONFORMANCEaio_return(2)