Writing Device Drivers

Unregistering Device IDs

Drivers will typically unregister and free any device IDs they allocated as part of the detach(9E) handling. The driver will first call ddi_devid_unregister(9F) to unregister the device ID for the device instance. The driver must then free the device ID handle itself by calling ddi_devid_free(9F), passing the handle which had been returned by ddi_devid_init(9F). The driver is responsible for managing any space allocated for WWN or Serial Number data.