GIO_delete
Application Program Interface
2-127
C Interface
Syntax
status = GIO_delete(gioChan);
Parameters
GIO_Handle gioChan; /* handle to device instance to be closed */
Return Value
Int
status;
/* returns IOM_COMPLETED if successful */
Description
An application calls GIO_delete to close a communication channel
opened prior to this call with GIO_create. This function deallocates all
memory allocated for this channel and closes the underlying device. All
pending input and output are cancelled and the corresponding interrupts
are disabled.
The gioChan parameter is the handle returned by GIO_create or
GIO_new.
This function returns IOM_COMPLETED if the channel is successfully
closed. 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_delete results in a call to the mdDelete function of the
associated mini-driver.
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.
Example
/* close the device instance */
GIO_delete(gioChan);
GIO_delete
Delete underlying mini-drivers and free GIO object and its structures