Opens a logical path to a SCSI target device.
The SCIOSTART operation opens a logical path to a SCSI device. The host SCSI adapter acts as an initiator device. This operation causes the adapter device driver to allocate and initialize the data areas needed to manage commands to a particular SCSI target.
The SCIOSTART operation must be issued prior to any of the other non-diagnostic mode operations, such as SCIOINQU and SCIORESET. However, the SCIOSTART operation is not required prior to calling the IOCINFO operation. Finally, when the caller is finished issuing commands to the SCSI target, the SCIOSTOP operation must be issued to release allocated data areas and close the path to the device.
The arg parameter to SCIOSTART allows the caller to specify the SCSI and LUN (logical unit number) identifier of the device to be started. 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 a value of 0.
If completed successfully this operation returns a value of 0. Otherwise, a value of -1 is returned and the errno global variable set to one of the following values:
If the SCIOSTART operation is unsuccessful, the caller must not attempt other operations to this SCSI ID and LUN combination, since it is either already in use or was never successfully started.
The rmt SCSI device driver, scdisk SCSI device driver, SCSI Adapter device driver.