SCSI_HBA_IPORT_UNIT_ADDRESS(9F) Kernel Functions for Drivers
NAME
scsi_hba_iport_unit_address - Get the unit address of an iport
SYNOPSIS
#include <sys/scsi/scsi.h> char * scsi_hba_iport_unit_address(
dev_info_t *dip);
INTERFACE LEVEL
Evolving - This interface is still evolving in illumos. API and ABI
stability is not guaranteed.
PARAMETERS
dip Pointer to
dev_info structure.
DESCRIPTION
The
scsi_hba_iport_unit_address() 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.
CONTEXT
The
scsi_hba_iport_unit_address() function may be called in
user,
kernel, or
interrupt context.
RETURN VALUES
If
dip is an iport, then the unit address string the device was
registered with is returned. Otherwise, NULL is returned.
SEE ALSO
iport(9),
iportmap(9),
scsi_hba_iport_register(9F),
scsi_hba_iportmap_iport_add(9F)illumos April 18, 2017 illumos