drm_class_device_unregister(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 the struct 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 πŸ¦‹

muah πŸ’‹ β€” from ./drivers/gpu/drm, dated October 2026, and this has been drm_class_device_unregister(9) 🫢

πŸ“¦ where this page comes from