drm_dev_unregister(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈


πŸ’– okay that's the whole page bestie β€” footer vibes: source/version ./drivers/gpu/drm, date October 2026 πŸ’–

πŸ“¦ where this page comes from