1DEVICE_UNREGISTER(9) Device drivers infrastructure DEVICE_UNREGISTER(9)
2
3
4
6 device_unregister - unregister device from system.
7
9 void device_unregister(struct device * dev);
10
12 dev
13 device going away.
14
16 We do this in two parts, like we do device_register. First, we remove
17 it from all the subsystems with device_del, then we decrement the
18 reference count via put_device. If that is the final reference count,
19 the device will be cleaned up via device_release above. Otherwise, the
20 structure will stick around until the final reference to the device is
21 dropped.
22
24Kernel Hackers Manual 2.6. June 2019 DEVICE_UNREGISTER(9)