io_destroy(3)

io_destroy3

Destroy an asynchronous i/o context

Usage

#include <libaio.h>

long io_destroy(io_context_t *ctx_idp);

Library

Asynchronous I/O library (libaio, -laio)

Overview

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.

Return value

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

Errors

See io_destroy(2).

Standards

libaio.

History

libaio.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.