English pages are provided only to compare translations to original pages,
better looking pages can be browsed
at the Linux man-pages official site.
Linux Programmer's Manual (3)
aio_suspend - wait for asynchronous I/O operation or timeout
int aio_suspend(const struct aiocb * const aiocb_list,
int nitems, const struct timespec *timeout);
Link with -lrt.
function suspends the calling thread until one of the following occurs:
One or more of the asynchronous I/O requests in the list
A signal is delivered.
is not NULL and the specified time interval has passed.
(For details of the
argument specifies the number of items in
Each item in the list pointed to by
must be either NULL (and then is ignored),
or a pointer to a control block on which I/O was initiated using
for a description of the
is supported, this clock is used to measure
the timeout interval (see
If this function returns after completion of one of the I/O
requests specified in
0 is returned.
Otherwise, -1 is returned, and
is set to indicate the error.
The call timed out before any of the indicated operations
The call was ended by signal
(possibly the completion signal of one of the operations we were
waiting for); see
is not implemented.
function is available since glibc 2.1.
One can achieve polling by using a non-NULL
that specifies a zero time interval.
If one or more of the asynchronous I/O operations specified in
has already completed at the time of the call to
then the call returns immediately.
To determine which I/O operations have completed
after a successful return from
to scan the list of
structures pointed to by
This page is part of release 3.66 of the Linux
A description of the project,
information about reporting bugs,
and the latest version of this page,
can be found at
- RETURN VALUE
- CONFORMING TO
- SEE ALSO
This document was created by
using the manual pages.
Time: 21:42:59 GMT, July 12, 2014