drm_dev_unregister(9)
π
drm_dev_unregister(9) π
okay bestie, this page is from the Kernel API Manual, and it's literally all about drm_dev_unregister π no cap, let's get into the vibe.
π NAME π
drm_dev_unregister β Unregister DRM device β¨
πΈ SYNOPSIS πΈ
void drm_dev_unregister (struct drm_device *dev );
π ARGUMENTS π
devβ the device to unregister π«Ά
π¦ DESCRIPTION π¦
So drm_dev_unregister unregisters the DRM device from the system. It does the reverse of drm_dev_register, but β important β it does not deallocate the device. π
The caller must call drm_dev_put to drop their final reference, unless it is managed with devres (as devices allocated with devm_drm_dev_alloc are), in which case there is already an unwind action registered. π«
A special form of unregistering for hotpluggable devices is drm_dev_unplug, which can be called while there are still open users of dev. π
β¨ This should be called first in the device teardown code to make sure userspace can't access the device instance any more. periodt. π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/drm_drv.cdriver instance overview(9)drm_put_dev(9)drm_dev_enter(9)drm_dev_exit(9)drm_dev_unplug(9)drm_dev_set_dma_dev(9)drm_dev_wedged_event(9)component helper usage recommendations(9)__drm_dev_alloc(9)drm_dev_alloc(9)drm_dev_get(9)drm_dev_put(9)drmm_cgroup_register_region(9)drm_dev_register(9)
π okay that's the whole page bestie β footer vibes: source/version ./drivers/gpu/drm, date October 2026 π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms