SCIOLCHBA

The SCIOLCHBA ioctl is not supported by the Virtual SCSI adapter driver.

Note: The SCIOLCHBA operation is specific to the iSCSI and FCP transport types.

When the device has been successfully opened, the SCIOLCHBA operation provides the means for issuing one or more common host bus adapter (HBA) API commands to the adapter. The SAM adapter driver performs full error recovery on failures of this operation.

The arg parameter contains the address of a scsi_chba structure, which is defined in the /usr/include/sys/scsi_buf.h file.

The cmd field in the scsi_chba structure determines the common HBA API operation that is performed.

If the SCIOLCHBA operation fails, the subroutine returns a value of -1 and sets the errno global variable to a nonzero value. In this case, the caller should evaluate the returned status bytes to determine why the operation was unsuccessful and what recovery actions should be taken.

If a SCIOLCHBA operation fails because a field in the scsi_chba structure has an invalid value, the subroutine returns a value of -1 and set the errno global variable to EINVAL.