1AIO_RETURN(3)              Linux Programmer's Manual             AIO_RETURN(3)
2
3
4

NAME

6       aio_return - get return status of asynchronous I/O operation
7

SYNOPSIS

9       #include <aio.h>
10
11       ssize_t aio_return(struct aiocb *aiocbp);
12
13       Link with -lrt.
14

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

CONFORMING TO

33       POSIX.1-2001.
34

SEE ALSO

36       aio_cancel(3), aio_error(3), aio_fsync(3), aio_read(3), aio_suspend(3),
37       aio_write(3)
38

COLOPHON

40       This page is part of release 3.22 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)
Impressum