SCSI_HBA_IPORT_UNIT_ADDRESS(9F) Kernel Functions for Drivers SCSI_HBA_IPORT_UNIT_ADDRESS(9F)

scsi_hba_iport_unit_addressGet the unit address of an iport

#include <sys/scsi/scsi.h>

char *
scsi_hba_iport_unit_address(dev_info_t *dip);

This interface is still evolving in illumos. API and ABI stability is not guaranteed.

dip
Pointer to dev_info structure.

The () function is used to obtain the unit address of an iport. For more information on iports, see iport(9).

This function can be used to determine whether or not a device node in the tree is an iport. If the device node corresponds to an iport, then the unit address used when it was created either through scsi_hba_iport_register(9F) or scsi_hba_iportmap_iport_add(9F) will be returned.

The scsi_hba_iport_unit_address() function may be called in , , or context.

If dip is an iport, then the unit address string the device was registered with is returned. Otherwise, NULL is returned.

iport(9), iportmap(9), scsi_hba_iport_register(9F), scsi_hba_iportmap_iport_add(9F)

April 18, 2017 OmniOS