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.
13 .de Sp \" Vertical space (when we can't use .PP)
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
30 #include <linux/aio.h>
33 long\ \fBio_cancel\fR\ (aio_context_t\ \fIctx_id\fR, struct\ iocb\ \fI*iocb\fR, struct\ io_event\ \fI*result\fR);
40 \fBio_cancel\fR attempts to cancel an asynchronous I/O operation
41 previously submitted with the \fBio_submit\fR system call.
42 \fIctx_id\fR is the AIO context ID of the operation to be cancelled.
43 If the AIO context is found, the event will be cancelled and then copied
44 into the memory pointed to by \fIresult\fR without being placed
45 into the completion queue.
50 \fBio_cancel\fR returns 0 on success; otherwise, it returns one of the
51 errors listed in the "Errors" section.
57 The AIO context specified by \fIctx_id\fR is invalid.
61 One of the data structures points to invalid data.
65 The \fIiocb\fR specified was not cancelled.
69 \fBio_cancel\fR is not implemented on this architecture.
74 The asynchronous I/O system calls first appeared in Linux 2.5, August 2002.
79 \fBio_cancel\fR is Linux specific and should not be used in programs that are intended to be portable.
84 \fBio_setup\fR(2), \fBio_destroy\fR(2), \fBio_getevents\fR(2), \fBio_submit\fR(2).
89 The asynchronous I/O system calls were written by Benjamin LaHaise.