|SCSI_HBA_IPORTMAP_CREATE(9F)||Kernel Functions for Drivers||SCSI_HBA_IPORTMAP_CREATE(9F)|
*dip, int csync_usec, int
*iportmap, char *ua, void
*iportmap, char *ua);
NULLfor this field.
scsi_hba_iportmap_destroy() functions are used by HBA drivers to create and destroy an iportmap. For more information on an iportmap and its purpose, see iportmap(9).
The csync_usec and settle_usec are both times measured in microseconds that control two different properties of the iportmap and how it behaves. The value in settle_usec indicates the amount of time that the system should wait to quiesce all changes and consider the resulting system stable. Changes will not be reported until after settle_usec have passed. csync_usec indicates how much time needs to elapse after creation before an initial enumeration has been completed.
The dev_info structure passed into dip is usually the HBA driver's dev_info structure.
function returns, iportmapout will be populated with a
pointer to an iportmap that can be used to add and remove iports.
To destroy the iportmap, drivers should use the
scsi_hba_iportmap_destroy() function. As part of
destroying the iportmap, all associated iports will be detached from the
system by having the driver's
detach(9E) entry point called.
When the driver needs to add an iport to the system, generally in
response to a hotplug event, then the driver should call the
scsi_hba_iportmap_iport_add() function. The value of
ua should be a character string that uniquely
identifies the device. If the driver is using a phymap, then this unit
address should be the same one as the phymap's callback provided. Otherwise,
the driver sets ua to a unique string which is
generally the iport's WWN.
When the corresponding iport needs to be removed, then the driver
should call the
The iport to remove is indicated by the ua argument,
which should match the value passed into the
scsi_hba_iportmap_create() function is generally called during a driver's attach(9E) entry point.
is generally called during a driver's
detach(9E) entry point.
scsi_hba_iportmap_iport_remove() functions should be
called from kernel context.
scsi_hba_iportmap_iport_remove() functions return
|April 18, 2017||OmniOS|