Aborts an I/O operation.
Err AbortIO( Item ior )
This procedure aborts an I/O operation. If the I/O operation has already completed, calling AbortIO()
has no effect. If it is not complete, it will be aborted.
A task should call WaitIO()
immediately after calling AbortIO()
. When WaitIO()
returns, the task knows that the I/O operation is no longer active. It can then confirm that the I/O operation was aborted before it was finished by checking the io_Error field of the IOReq structure. If the operation aborted, the value of this field is ER_Aborted.
The procedure returns 0 if the I/O operation was successfully aborted or an error code (a negative value) if an error occurs. Possible error codes include:
SWI implemented in kernel folio V20.
CheckIO
(), CreateIOReq(), DeleteIOReq(), DoIO(), SendIO(), WaitIO()