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_CANCEL 2 2003-02-21 "Linux 2.4" "Linux Programmer's Manual"
25 io_cancel \- cancel an outstanding asynchronous I/O operation
31 .B #include <libaio.h>
32 .\"#include <linux/aio.h>
35 .BI "int io_cancel(aio_context_t " ctx_id ", struct iocb *" iocb ,
36 .BI " struct io_event *" result );
43 attempts to cancel an asynchronous I/O operation previously submitted with
45 \fIctx_id\fR is the AIO context ID of the operation to be cancelled.
46 If the AIO context is found, the event will be cancelled and then copied
47 into the memory pointed to by \fIresult\fR without being placed
48 into the completion queue.
53 on failure, it returns one of the errors listed under ERRORS.
57 The AIO context specified by \fIctx_id\fR is invalid.
60 One of the data structures points to invalid data.
63 The \fIiocb\fR specified was not cancelled.
67 is not implemented on this architecture.
70 The asynchronous I/O system calls first appeared in Linux 2.5, August 2002.
74 is Linux specific and should not be used
75 in programs that are intended to be portable.
85 .\" The asynchronous I/O system calls were written by Benjamin LaHaise.