Writing Device Drivers

Device Software State Functions

Table B–6 Device Software State Functions

Function Name 

Description 

ddi_get_driver_private

get the address of the device's private data area 

ddi_get_soft_state 

get pointer to instance soft state structure 

ddi_set_driver_private 

set the address of the device's private data area 

ddi_soft_state_fini 

destroy driver soft state structure 

ddi_soft_state_free 

free instance soft state structure 

ddi_soft_state_init 

initialize driver soft state structure 

ddi_soft_state_zalloc 

allocate instance soft state structure