Writing Device Drivers

Device ID Functions

Table B–34 Device ID Functions

Function Name 

Description 

ddi_devid_init

allocate a device id structure 

ddi_devid_free 

free a device id structure 

ddi_devid_register 

register a device id 

ddi_devid_unregister 

unregister a device id 

ddi_devid_compare 

compare two device ids  

ddi_devid_sizeof 

return the size of a device id 

ddi_devid_valid 

validate a device id 

ddi_devid_str_encode 

encode a device id and minor_name into a null-terminated ASCII string; return a pointer to that string 

ddi_devid_str_decode 

decode the device id and minor_name from a previously encoded string; allocate and return pointers to the extracted parts 

ddi_devid_str_free 

free all strings returned by the ddi_devid functions