aio_cancel(3) Library Functions Manual aio_cancel(3) io_cancel - - (librt, -lrt) #include int aio_cancel(int fd, struct aiocb *aiocbp); aio_cancel() - fd. aiocbp NULL, . , , , aiocbp ( aiocb aio(7)). Normal asynchronous notification occurs for canceled requests (see aio(7) and sigevent(3type)). The request return status (aio_return(3)) is set to -1, and the request error status (aio_error(3)) is set to ECANCELED. The control block of requests that cannot be canceled is not changed. , - ( aio_error(3) EINPROGRESSS). , aiocbp NULL fd , , . , , . aio_cancel() : AIO_CANCELED . AIO_NOTCANCELED , , . aio_error(3). AIO_ALLDONE . -1 An error occurred. The error can be found by inspecting errno. EBADF fd . ENOSYS aio_cancel() . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |aio_cancel() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. glibc 2.1. POSIX.1-2001. aio(7). aio_error(3), aio_fsync(3), aio_read(3), aio_return(3), aio_suspend(3), aio_write(3), lio_listio(3), aio(7) () Dmitry Bolkhovskikh Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.17 8 2026 . aio_cancel(3)