lio_listio(3) Library Functions Manual lio_listio(3) lio_listio - - LIBRARY Real-time library (librt, -lrt) #include int lio_listio(int mode, struct aiocb *restrict const aiocb_list[restrict], int nitems, struct sigevent *restrict sevp); lio_listio() -, aiocb_list. mode : LIO_WAIT , . sevp . LIO_NOWAIT The I/O operations are queued for processing and the call returns immediately. When all of the I/O operations complete, asynchronous notification occurs, as specified by the sevp argument; see sigevent(3type) for details. If sevp is NULL, no asynchronous notification occurs. The aiocb_list argument is an array of pointers to aiocb structures that describe I/O operations. These operations are executed in an unspecified order. The nitems argument specifies the size of the array aiocb_list. Null pointers in aiocb_list are ignored. aiocb_list aio_lio_opcode ; : LIO_READ . aio_read(3) . LIO_WRITE . aio_write(3) . LIO_NOP . , aio_read(3) aio_write(3). aio_sigevent - ( sigevent(7)). mode LIO_NOWAIT lio_listio() 0, - . -1 errno . mode LIO_WAIT lio_listio() 0, - . -1 errno . lio_listio() , -. - , . - aiocb_list aio_error(3). aio_return(3). - , aio_read(3) aio_write(3). lio_listio() : EAGAIN . EAGAIN -, nitems, AIO_MAX. EINTR mode LIO_WAIT -; signal(7) ( -). EINVAL mode, nitems AIO_LISTIO_MAX. EIO , aiocb_list, . aio_return(3). lio_listio() EAGAIN, EINTR EIO, aiocb_list . lio_listio() , - . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |lio_listio() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. glibc 2.1. POSIX.1-2001. . -. , . (valid). - aiocb . . aio_cancel(3), aio_error(3), aio_fsync(3), aio_return(3), aio_suspend(3), aio_write(3), aio(7) Artyom Kunyov , Azamat Hackimov , Dmitry Bolkhovskikh , Katrin Kutepova , Konstantin Shvaykovskiy , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . lio_listio(3)