SCIOLNMSRV
This operation returns a list of target devices and is used to aid in SCSI device configuration.
Note: SCIOLNMSRV is specific to the iSCSI and FCP transport
types.
The following is a typical call:
rc = ioctl(adapter, SCIOLNMSRV, &nmserv);
where adapter is a file descriptor and nmserv is a scsi_nmserv structure as defined in the /usr/include/sys/scsi_buf.h header file. The caller of this ioctl, must allocate a buffer be referenced by the scsi_id_list field. In addition the caller must set the list_len field to indicate the size of the buffer in bytes.
On successful completion, the num_ids field indicates the number of SCSI IDs returned in the current list. If the more ids were found then could be placed in the list, then the adapter driver updates the list_len field to indicate the length of buffer needed to receive all SCSI IDs.
Possible errno values are:
Item | Description |
---|---|
EIO | A system error has occurred. Consider retrying the operation several times, because another attempt might be successful. |
EFAULT | A user process copy has failed. |
EINVAL | The physical configuration does not support this request. |
ENOMEM | A memory request has failed. |
ETIMEDOUT | The command has timed out. Consider retrying the operation several times, because another attempt might be successful. |
ENODEV | The device is not responding. Possibly no LUNs exist on the present target. |