sys_io_cancel  [fs/aio.c]


Cancels an outstanding asynchronous IO operation previously submitted with the sys_io_submit

Arguments

eax 249
ebx The AIO context ID of the operation to be canceled.
ecx Pointer to an iocb structure:
struc iocb
{
aio_data       rq 1 ; data to be returned in event's data
aio_key        rd 1
aio_reserved1  rd 1
aio_lio_opcode rw 1
aio_reqprio    rw 1
aio_fildes     rd 1
aio_buf        rq 1
aio_nbytes     rq 1
aio_offset     rq 1
aio_reserved2  rq 1
aio_reserved3  rq 1
}
edx Pointer to an io_event structure:
struc io_event
{
data rq 1 ; the data field from the iocb
obj  rq 1 ; what iocb this event came from
res  rq 1 ; result code for this event
res2 rq 1 ; secondary result
}

Return values

If the system call succeeds the return value is 0.
If the system call fails the return value is one of the following errno values:

-EAGAIN The iocb specified was not canceled.
-EINVAL The AIO context specified by ebx is invalid.
-EFAULT One of the structures points to invalid data.

Remarks

n/a

Compatibility

n/a