Closes the logical path to a SCSI target device.
The SCIOSTOP operation closes the logical path to a SCSI device. The host SCSI adapter acts as an initiator. The SCIOSTOP operation causes the adapter device driver to deallocate data areas allocated in response to a SCIOSTART operation. This command must be issued when the caller wishes to cease communications to a particular SCSI target. The SCIOSTOP operation should only be issued for a device successfully opened by a previous call to an SCIOSTART operation.
The SCIOSTOP operation passes the arg parameter. This parameter allows the caller to specify the SCSI and logical unit number (LUN) IDs of the device to be stopped. The least significant byte in the arg parameter is the LUN, and the next least significant byte is the SCSI ID. The remaining two bytes are reserved and must be set to 0.
When completed successfully this operation returns a value of 0. Otherwise, a value of -1 is returned and the errno global variable is set to one of the following values:
EINVAL | Indicates that the device has not been opened. An SCIOSTART operation should be issued prior to calling the SCIOSTOP operation. |
EIO | Indicates that the device drive was unable to pin code. |
The rmt SCSI device driver, scdisk SCSI device driver, SCSI Adapter device driver.