Debian Codegraph @

upstream/debian-unstable/man3/io_destroy.3

raw
1 .\" Copyright, the authors of the Linux man-pages project
2 .\"
3 .\" SPDX-License-Identifier: GPL-3.0-or-later
4 .\"
5 .TH io_destroy 3 2026-04-11 "Linux man-pages 6.18"
6 .SH NAME
7 io_destroy \- destroy an asynchronous I/O context
8 .SH LIBRARY
9 Asynchronous I/O library
10 .RI ( libaio ,\~ \-laio )
11 .SH SYNOPSIS
12 .nf
13 .B #include <libaio.h>
14 .P
15 .BI long\~io_destroy(io_context_t\~* ctx_idp );
16 .fi
17 .SH DESCRIPTION
18 The
19 .BR io_destroy ()
20 system call
21 will attempt to cancel all outstanding asynchronous I/O operations against
22 .IR ctx_id ,
23 will block on the completion of all operations
24 that could not be canceled,
25 and will destroy the
26 .IR ctx_id .
27 .SH RETURN VALUE
28 On success,
29 .BR io_destroy ()
30 returns 0.
31 On error,
32 a negative error code is returned to indicate the error.
33 .SH ERRORS
34 See
35 .BR io_destroy (2).
36 .SH STANDARDS
37 libaio.
38 .SH HISTORY
39 libaio.
40 .SH SEE ALSO
41 .BR io_destroy (2),
42 .BR io (3),
43 .BR aio (7)