SCIOLPASSTHRUHBA

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

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

When the device has been successfully opened, the SCIOLPASSTHRUHBA operation provides the means for issuing passthru 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_passthru_hba structure, which is defined in the /usr/include/sys/scsi_buf.h file.

The cmd field in the scsi_passthru_hba structure determines the type of passthru operation to be performed.

If the SCIOLPASSTHRUHBA 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 SCIOLPASSTHRUHBA operation fails because a field in the scsi_passthru_hba structure has an invalid value, the subroutine returns a value of -1 and set the errno global variable to EINVAL.