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

NAME

6       aio_suspend - wait for asynchronous I/O operation or timeout
7

SYNOPSIS

9       #include <aio.h>
10
11       int aio_suspend(const struct aiocb * const cblist[],
12                       int n, const struct timespec *timeout);
13
14       Link with -lrt.
15

DESCRIPTION

17       The  aio_suspend() function suspends the calling process until at least
18       one of the asynchronous I/O requests in the list  cblist  of  length  n
19       have  completed,  a signal is delivered, or timeout is not NULL and the
20       time interval it indicates has passed.
21
22       Each item in the list must either be NULL (and then is ignored),  or  a
23       pointer   to   a  control  block  on  which  I/O  was  initiated  using
24       aio_read(3), aio_write(3), or lio_listio(3).
25
26       If CLOCK_MONOTONIC is supported, this clock  is  used  to  measure  the
27       timeout interval.
28

RETURN VALUE

30       If  this  function  returns  after  completion  of one of the indicated
31       requests, it returns 0.  Otherwise it returns -1 and sets errno  appro‐
32       priately.
33

ERRORS

35       EAGAIN The call was ended by timeout, before any of the indicated oper‐
36              ations had completed.
37
38       EINTR  The call was ended by signal; see signal(7).  (Possibly the com‐
39              pletion signal of one of the operations we were waiting for.)
40

CONFORMING TO

42       POSIX.1-2001.
43

NOTES

45       One  can  achieve  polling by using a non-NULL timeout that specifies a
46       zero time interval.
47

SEE ALSO

49       aio_cancel(3), aio_error(3), aio_fsync(3), aio_read(3),  aio_return(3),
50       aio_write(3), time(7)
51

COLOPHON

53       This  page  is  part of release 3.25 of the Linux man-pages project.  A
54       description of the project, and information about reporting  bugs,  can
55       be found at http://www.kernel.org/doc/man-pages/.
56
57
58
59                                  2003-11-14                    AIO_SUSPEND(3)
Impressum