drm_mode_object_unregister(9)
π drm_mode_object_unregister (9) β Kernel API Manual, bestie edition π
okay so this is a page from the Kernel API Manual, section 9, all about drm_mode_object_unregister π
β¨ NAME β¨
drm_mode_object_unregister β free a modeset identifier π¦
πΈ SYNOPSIS πΈ
void drm_mode_object_unregister (struct drm_device *dev , struct
drm_mode_object *object );
like, that's the whole signature. two args, no return, very demure β¨
π§ ARGUMENTS π§
devβ the DRM device πobjectβ the object to free π«Ά
π DESCRIPTION π
so what it does is it frees the id from dev's unique identifier pool π literally just yeets that id back out of the pool, iconic behavior.
and here's the slay part: this function can be called multiple times, and it guards against multiple removals π so you can't double-nuke it, she protects herself.
β οΈ but okay listen, important: these modeset identifiers are _not_ reference counted. like, at all. so don't use this for reference counted modeset objects like framebuffers π that's a whole different vibe, iykyk.
π₯ SEE ALSO π₯
kernel file ./drivers/gpu/drm/drm_mode_object.c plus the whole friend group π
:
drm_mode_object_add(9)drm_mode_object_lease_required(9)drm_mode_object_find(9)drm_mode_object_put(9)drm_mode_object_get(9)drm_object_attach_property(9)drm_object_property_set_value(9)drm_object_property_get_value(9)drm_object_property_get_default_value(9)drm_object_immutable_property_get_value(9)drm_mode_obj_get_properties_ioctl(9)
and that's the page!! π this one lives in ./drivers/gpu/drm, it's dated October 2026, and it's from the Kernel API Manual, section 9. mwah, go free those identifiers responsibly bestie πβ¨π
π¦ 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