NOTE: used ddi_get_driver_private(9F) as a template... Kernel Functions for Drivers scsi_device_hba_private_get(9F) NAME scsi_device_hba_private_get, scsi_device_hba_private_set - get or set the address of the HBA drivers per-scsi_device(9S) private area SYNOPSIS #include #include #include void scsi_device_hba_private_set(struct scsi_device *sd, void *data); void *scsi_device_hba_private_get(struct scsi_device *sd); INTERFACE LEVEL Solaris DDI specific (Solaris DDI). PARAMETERS scsi_device_hba_private_get() sd Pointer to scsi_device(9S) structure to get data from. scsi_device_hba_private_set() sd Pointer to device information structure to set. data Data area address to set. DESCRIPTION The scsi_device_hba_private_get() function returns the address of the scsi_device's HBA private data area from the scsi_device(9S) structure pointed to by sd. The scsi_device_hba_private_set() function sets the address of the scsi_device's HBA private data area for the scsi_device(9S) structure pointed to by sd with the value of data. RETURN VALUES The scsi_device_hba_private_get() function returns the contents of sd_hba_private. If scsi_device_hba_private_set() has not been previously called with sd, an unpredictable value is returned. CONTEXT These functions can be called from user, interrupt, or kernel context. SEE ALSO scsi_device(9S)