内容简介
#include <libaio.h>
标签 | 描述 |
---|---|
long%uA0io_cancel%uA0(aio_context_t%uA0ctx_id, struct iocb%uA0*iocb, struct io_event%uA0*result) |
描述
io_cancel() attempts to cancel an asynchronous I/O operation previously submitted with the%uA0io_submit%uA0system call.%uA0ctx_id%uA0is the AIO context ID of the operation to be cancelled. If the AIO context is found, the event will be cancelled and then copied into the memory yiibaied to by%uA0result%uA0without being placed into the completion queue.
%uA0
返回值
io_cancel() returns 0 on success otherwise, it returns one of the errors listed in the "Errors" section.
错误
标签 | 描述 |
---|---|
EINVAL |
The AIO context specified by%uA0ctx_id%uA0is invalid.
%uA0 |
EFAULT |
One of the data structures yiibais to invalid data.
%uA0 |
EAGAIN |
The%uA0iocb%uA0specified was not cancelled.
%uA0 |
ENOSYS |
io_cancel() is not implemented on this architecture.
%uA0 |
版本
The asynchronous I/O system calls first appeared in Linux 2.5, August 2002.
遵循于
io_cancel() is Linux specific and should not be used in programs that are intended to be portable.
另请参阅
io_setup(2),%uA0io_destroy(2),%uA0io_getevents(2),%uA0io_submit(2).
注意
The asynchronous I/O system calls were written by Benjamin LaHaise.