GIO_abort
Application Program Interface
2-123
C Interface
Syntax
status = GIO_abort(gioChan);
Parameters
GIO_Handle gioChan; /* handle to an instance of the device */
Return Value
Int
status;
/* returns IOM_COMPLETED if successful */
Description
An application calls GIO_abort to abort all input and output from the
device. When this call is made, all pending calls are completed with a
status of GIO_ABORTED. An application uses this call to return the
device to its initial state. Usually this is done in response to an
unrecoverable error at the device level.
GIO_abort returns IOM_COMPLETED upon successfully aborting all
input and output requests. If an error occurs, the device returns a
negative value. For a list of error values, see “Constants, Types, and
Structures” on page 2-118.
A call to GIO_abort results in a call to the mdSubmit function of the
associated mini-driver. The IOM_ABORT command is passed to the
mdSubmit function. The mdSubmit call is typically a blocking call, so
calling GIO_abort can result in the thread blocking.
Constraints and
Calling Context
❏
This function can be called only after the device has been loaded and
initialized. The handle supplied should have been obtained with a
prior call to GIO_create or GIO_new.
❏
GIO_abort cannot be called from a SWI or HWI unless the underlying
mini-driver is a non-blocking driver and the GIO Manager properties
are set to use non-blocking synchronization methods.
Example
/* abort all I/O requests given to the device*/
gioStatus = GIO_abort(gioChan);
GIO_abort
Abort all pending input and output