io_cancel(2) System Calls Manual io_cancel(2) io_cancel - - C (libc, -lc) Alternatively, Asynchronous I/O library (libaio, -laio); see VERSIONS. #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: this page describes the raw Linux system call interface. The wrapper function provided by libaio uses a different type for the ctx_id argument. See VERSIONS. io_cancel() -, io_submit(2). iocb , ctx_id AIO . , , result, . On success, io_cancel() returns 0. For the failure return, see VERSIONS. EAGAIN iocb . EFAULT . EINVAL AIO, ctx_id. ENOSYS io_cancel() . You probably want to use the io_cancel() wrapper function provided by libaio. , libaio (io_context_t) ctx_id. , libaio C : ( ). syscall(2), : -1 errno () . Linux. Linux 2.5. io_destroy(2), io_getevents(2), io_setup(2), io_submit(2), aio(7) () Azamat Hackimov , Dmitriy S. Seregin , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . io_cancel(2)