drm_class_device_unregister(9)
β¨ drm_class_device_unregister(9) β¨
okay so welcome to the Kernel API Manual, bestie β section 9 is where the kernel lore lives, and this page is all about drm_class_device_unregister. it's giving "cleanup era," but also "not for you unless you know what you're doing." π«Ά
πΈ NAME πΈ
drm_class_device_unregister β unregister device with the DRM sysfs class. literally that's the whole gig, no cap. π
β¨ SYNOPSIS β¨
void drm_class_device_unregister (struct device *dev );
π ARGUMENTS π
devβ device to unregister, bestie. hand over thestruct device *and this function says bye to it in the DRM sysfs class. π
π DESCRIPTION π
Unregisters a struct device from the DRM sysfs class. it's essentially only used by ttm to have a place for its global settings. so if you're a regular driver out here thinking "ooh, should I use this?" β no bestie, drivers should never use this. that's the rule, periodt. π«
lowkey important: this is not a general-purpose driver tool. the original says drivers should never use this, and we are respecting the lore. π
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/drm_sysfs.coverview(9) drm_sysfs_init(9)drm_sysfs_destroy(9)drm_sysfs_hotplug_event(9)drm_sysfs_connector_hotplug_event(9)drm_sysfs_connector_property_event(9)drm_class_device_register(9)
muah π β from ./drivers/gpu/drm, dated October 2026, and this has been drm_class_device_unregister(9) π«Ά
π¦ 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