aio_read(3) Library Functions Manual aio_read(3) aio_read - LIBRARY Real-time library (librt, -lrt) #include int aio_read(struct aiocb *aiocbp); aio_read() -, , aiocbp. read(2). read(fd, buf, count) ( ) aio_fildes, aio_buf aio_nbytes , aiocbp ( aiocb aio(7)). aiocbp->aio_offset, . . The "asynchronous" means that this call returns as soon as the request has been enqueued; the read may or may not have completed when the call returns. One tests for completion using aio_error(3). The return status of a completed I/O operation can be obtained by aio_return(3). Asynchronous notification of I/O completion can be obtained by setting aiocbp->aio_sigevent appropriately; see sigevent(3type) for details. _POSIX_PRIORITIZED_IO , aiocbp->aio_reqprio. aiocbp->aio_lio_opcode . , . On success, 0 is returned. On error, the request is not enqueued, -1 is returned, and errno is set to indicate the error. If an error is detected only later, it will be reported via aio_return(3) (returns status -1) and aio_error(3) (error status--whatever one would have gotten in errno, such as EBADF). EAGAIN . EBADF aio_fildes . EINVAL aio_offset, aio_reqprio aio_nbytes . ENOSYS aio_read() . EOVERFLOW , , . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |aio_read() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. glibc 2.1. POSIX.1-2001. . . , , , . , , . - aiocb . aio(7). . aio_cancel(3), aio_error(3), aio_fsync(3), aio_return(3), aio_suspend(3), aio_write(3), lio_listio(3), aio(7) Dmitry Bolkhovskikh Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . aio_read(3)