1 .\" Copyright (C) 2003 Free Software Foundation, Inc.
3 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
4 .\" This file is distributed according to the GNU General Public License.
7 .TH IO_DESTROY 2 2021-03-22 "Linux" "Linux Programmer's Manual"
9 io_destroy \- destroy an asynchronous I/O context
12 .BR "#include <linux/aio_abi.h>" " /* Defines needed types */"
14 .BI "int io_destroy(aio_context_t " ctx_id );
18 There is no glibc wrapper for this system call; see NOTES.
21 this page describes the raw Linux system call interface.
22 The wrapper function provided by
24 uses a different type for the
32 will attempt to cancel all outstanding asynchronous I/O operations against
34 will block on the completion of all operations
35 that could not be canceled, and will destroy the
41 For the failure return, see NOTES.
45 The context pointed to is invalid.
48 The AIO context specified by \fIctx_id\fP is invalid.
52 is not implemented on this architecture.
54 The asynchronous I/O system calls first appeared in Linux 2.5.
57 is Linux-specific and should not be used in programs
58 that are intended to be portable.
60 Glibc does not provide a wrapper for this system call.
61 You could invoke it using
63 But instead, you probably want to use the
65 wrapper function provided by
66 .\" http://git.fedorahosted.org/git/?p=libaio.git
71 wrapper function uses a different type
73 .\" But glibc is confused, since <libaio.h> uses 'io_context_t' to declare
80 wrapper does not follow the usual C library conventions for indicating errors:
81 on error it returns a negated error number
82 (the negative of one of the values listed in ERRORS).
83 If the system call is invoked via
85 then the return value follows the usual conventions for
86 indicating an error: \-1, with
88 set to a (positive) value that indicates the error.