__drm_atomi...estroy_state(9)
π __drm_atomi...estroy_state(9) β from the Kernel API Manual, bestie β¨
Okay so real talk, this page is filed under the Kernel API Manual and it's genuinely one of those tiny utility functions that looks scary because of the name and is actually just doing chores. The name is truncated with ... in the header because it's too long for the man page format β that's not a typo, that's just the vibe. π
πΈ NAME πΈ
__drm_atomic_helper_connector_destroy_state β release connector state
β¨ SYNOPSIS β¨
void __drm_atomic_helper_connector_destroy_state (struct
drm_connector_state *state );
π ARGUMENTS π
stateβ the connector state object you're about to release, bestie. That's the one. Hand it over. π«Ά
π¦ DESCRIPTION π¦
So here's the tea: this function releases all the resources stored in the connector state without actually freeing the memory of the connector state itself. Like, it tidies up everything inside but leaves the actual struct sitting there. π§Ήβ¨
Why would you want that? Because it's useful for drivers that subclass the connector state β iykyk. If your driver has its own fancy extended version of the connector state, you can't just yeet the whole object into the void, so this helper handles the cleanup of the inner bits and lets you deal with the rest. Iconic teamwork, honestly. π
Fr fr, note the double underscore prefix β that's the lowkey "internal helper, called by the bigger wrapper" energy. drm_atomic_helper_connector_destroy_state(9) is the one that does the full job. π
π SEE ALSO π
Grab a snack, this list is a whole friend group π:
- Kernel file
./drivers/gpu/drm/drm_atomic_state_helper.c - atomic state reset and initialization(9)
__drm_atomic_helper_crtc_state_init(9)__drm_atomic_helper_crtc_reset(9)drm_atomic_helper_crtc_reset(9)drm_atomic_helper_crtc_create_state(9)__drm_atomic_helper_crtc_duplicate_state(9)drm_atomic_helper_crtc_duplicate_state(9)__drm_atomic_helper_crtc_destroy_state(9)drm_atomic_helper_crtc_destroy_state(9)__drm_atomic_helper_plane_state_init(9)__drm_atomic_helper_plane_reset(9)drm_atomic_helper_plane_reset(9)drm_atomic_helper_plane_create_state(9)__drm_atomic_helper_plane_duplicate_state(9)drm_atomic_helper_plane_duplicate_state(9)__drm_atomic_helper_plane_destroy_state(9)drm_atomic_helper_plane_destroy_state(9)__drm_atomic_helper_connector_state_init(9)__drm_atomic_helper_connector_reset(9)drm_atomic_helper_connector_reset(9)drm_atomic_helper_connector_create_state(9)drm_atomic_helper_connector_tv_margins_reset(9)drm_atomic_helper_connector_tv_reset(9)drm_atomic_helper_connector_tv_check(9)__drm_atomic_helper_connector_duplicate_state(9)drm_atomic_helper_connector_duplicate_state(9)drm_atomic_helper_connector_destroy_state(9)__drm_atomic_helper_private_obj_create_state(9)__drm_atomic_helper_private_obj_duplicate_state(9)__drm_atomic_helper_bridge_duplicate_state(9)drm_atomic_helper_bridge_duplicate_state(9)drm_atomic_helper_bridge_destroy_state(9)__drm_atomic_helper_bridge_state_init(9)drm_atomic_helper_bridge_create_state(9)
And that's the whole page, bestie β no cap, no extra lore, just the facts in a cuter outfit. π
This lil slice of kernel wisdom lives in ./drivers/gpu/drm, and the version we're reading is dated October 2026 β so yeah, fresh. πΈ Mwah, go clean up your connector states responsibly. πβ¨
π¦ 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