1AIO_RETURN(3) Linux Programmer's Manual AIO_RETURN(3)
2
3
4
6 aio_return - get return status of asynchronous I/O operation
7
9 #include <aio.h>
10
11 ssize_t aio_return(struct aiocb *aiocbp);
12
13 Link with -lrt.
14
16 The aio_return() function returns the final return status for the asyn‐
17 chronous I/O request with control block pointed to by aiocbp.
18
19 This function should be called only once for any given request, after
20 aio_error(3) returns something other than EINPROGRESS.
21
23 If the asynchronous I/O operation has completed, this function returns
24 the value that would have been returned in case of a synchronous read,
25 write, or fsync request. Otherwise the return value is undefined. On
26 error, the error value is returned.
27
29 EINVAL aiocbp does not point at a control block for an asynchronous I/O
30 request of which the return status has not been retrieved yet.
31
33 POSIX.1-2001.
34
36 aio_cancel(3), aio_error(3), aio_fsync(3), aio_read(3), aio_suspend(3),
37 aio_write(3)
38
40 This page is part of release 3.25 of the Linux man-pages project. A
41 description of the project, and information about reporting bugs, can
42 be found at http://www.kernel.org/doc/man-pages/.
43
44
45
46 2003-11-14 AIO_RETURN(3)