io_destroy(2) System Calls Manual io_destroy(2) io_destroy - - C (libc, -lc) #include /* aio_context_t */ #include /* SYS_* */ #include int syscall(SYS_io_destroy, aio_context_t ctx_id); Note: you probably want to use the io_destroy(3) wrapper function provided by libaio; see VERSIONS. io_destroy() -, ctx_id, , , ctx_id. On success, io_destroy() returns 0. On error, -1 is returned, and errno is set to indicate the error. EFAULT ctx_id was not a valid address. EINVAL AIO, ctx_id. ENOSYS io_destroy() . 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_cancel(2), io_getevents(2), io_setup(2), io_submit(2), io_destroy(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_destroy(2)