io_destroy(3) Library Functions Manual io_destroy(3)

io_destroy - destroy an asynchronous I/O context

Asynchronous I/O library (libaio-laio)

#include <libaio.h>
long io_destroy(io_context_t *ctx_idp);

The io_destroy() system call will attempt to cancel all outstanding asynchronous I/O operations against ctx_id, will block on the completion of all operations that could not be canceled, and will destroy the ctx_id.

On success, io_destroy() returns 0. On error, a negative error code is returned to indicate the error.

See io_destroy(2).

libaio.

libaio.

io_destroy(2), io(3), aio(7)

2026-04-11 Linux man-pages 6.18