Returns the SCSI ID and Logical Unit Number (LUN) from a SCSI address. Applicable to Diagnostics Version 4 only.
#include <diag/diag.h> int diag_get_sid_lun ( scsiaddr, sid_addr, lun_addr ) char *scsiaddr; uchar *sid_addr; uchar *lun_addr;
The diag_get_sid_lun subroutine returns the SCSI ID and logical unit number associated with a SCSI address for a device. The SCSI address must be in the format used by the connwhere field in CuDv object class.
The diag_get_sid_lun subroutine returns one of the following values:
0 | Successful return. |
-1 | Error. Incorrect format for SCSI address. |