1 .\" Copyright (C) 2003 Free Software Foundation, Inc.
2 .\" This file is distributed according to the GNU General Public License.
3 .\" See the file COPYING in the top level source directory for details.
5 .\" .de Sh \" Subsection
13 .\" .de Sp \" Vertical space (when we can't use .PP)
17 .\" .de Ip \" List item
19 .\" .ie \\n(.$>=3 .ne \\$3
23 .TH IO_DESTROY 2 2008-06-18 "Linux" "Linux Programmer's Manual"
25 io_destroy \- destroy an asynchronous I/O context
30 .B #include <libaio.h>
31 .\" #include <linux/aio.h>
34 .BI "int io_destroy(aio_context_t " ctx );
38 Link with \fI\-laio\fP.
43 removes the asynchronous I/O context from the list of
44 I/O contexts and then destroys it.
46 can also cancel any outstanding asynchronous I/O
47 actions on \fIctx\fP and block on completion.
52 For the failure return, see NOTES.
56 The context pointed to is invalid.
59 The AIO context specified by \fIctx\fP is invalid.
63 is not implemented on this architecture.
66 The asynchronous I/O system calls first appeared in Linux 2.5, August 2002.
70 is Linux-specific and should not be used in programs
71 that are intended to be portable.
73 Glibc does not provide a wrapper function for this system call.
75 The wrapper provided in
79 does not follow the usual C library conventions for indicating error:
80 on error it returns a negated error number
81 (the negative of one of the values listed in ERRORS).
82 If the system call is invoked via
84 then the return value follows the usual conventions for
85 indicating an error: \-1, with
87 set to a (positive) value that indicates the error.
97 .\" The asynchronous I/O system calls were written by Benjamin LaHaise.