io_cancel(2) System Calls Manual io_cancel(2) io_cancel - - C (libc, -lc) #include /* Definition of needed types */ #include /* Definition of SYS_* constants */ #include int syscall(SYS_io_cancel, aio_context_t ctx_id, struct iocb *iocb, struct io_event *result); Note: you probably want to use the io_getevents(3) wrapper function provided by libaio; see VERSIONS. io_cancel() -, io_submit(2). iocb , ctx_id AIO . , , result, . On success, io_cancel() returns 0. On error, -1 is returned, and errno is set to indicate the error. EAGAIN iocb . EFAULT . EINVAL AIO, ctx_id. ENOSYS io_cancel() . libaio provides a wrapper function with the same name, but different prototype and return value. You probably want to use that wrapper. Linux. Linux 2.5. io_destroy(2), io_getevents(2), io_setup(2), io_submit(2), io_cancel(3), aio(7) () Azamat Hackimov , Dmitriy S. Seregin , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () . Linux man-pages 6.18 11 2026 . io_cancel(2)