Writing Device Drivers
Previous Next

Device ID Functions

The device ID functions are:

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

Previous Next