|
|
The Asynchronous I/O interfaces use an Asynchronous I/O control block aiocb to provide information when making a request. The data structure of aiocb_t is shown below. See aiocb(5) for more details.
int aio_fildes; /* file descriptor */
volatile void *aio_buf; /* buffer location */
size_t aio_nbytes; /* length of transfer */
off_t aio_offset; /* file offset */
int aio_reqprio; /* request priority offset */
struct sigevent aio_sigevent; /* signal number and offset */
int aio_lio_opcode; /* listio operation */
int aio_flags; /* flags */