The
lio_listio() function initiates a list of I/O requests with a single function call. The
list argument is an array of pointers to
aiocb structures describing each operation to perform, with
nent elements.
NULL elements are ignored.
The
aio_lio_opcode field of each
aiocb specifies the operation to be performed. The following operations are supported:
If the
mode argument is
LIO_WAIT,
lio_listio() does not return until all the requested operations have been completed. If
mode is
LIO_NOWAIT, the requests are processed asynchronously, and the signal specified by
sig is sent when all operations have completed. If
sig is
NULL, the calling process is not notified of I/O completion.
The order in which the requests are carried out is not specified, and there is no guarantee that they will be executed sequentially.