__drm_atomi...estroy_state(9)
π
__drm_atomi...estroy_state β wait no, bestie, it's __drm_atomic_helper_plane_destroy_state β¨
okay so this page lives in the Kernel API Manual (section 9, kernel-space girlies only π) and the title got truncated by the manpage renderer into __drm_atomi...estroy_state(9) which is genuinely so rude of it. The full name is right down there π no cap.
π NAME π
__drm_atomic_helper_plane_destroy_state β the function that releases your plane state, it does not free it, and that distinction is the whole entire point, iykyk π₯
β¨ SYNOPSIS β¨
void __drm_atomic_helper_plane_destroy_state (struct drm_plane_state *state);
like, it returns void. nothing comes back. it just does the thing and dips π«Ά
πΈ ARGUMENTS πΈ
stateβ the plane state object you're releasing π this is the one getting its resources yeeted (but again, NOT its memory, we're not monsters)
π¦ DESCRIPTION π¦
okay so listen. this function releases all the resources stored in the plane state β like, every bit of stuff it's holding onto β but it does not actually free the memory of the plane state itself. π§ββοΈ
and that is not a bug, that is the vibe. it's genuinely useful for drivers that subclass the plane state π because if you've got your own fancy struct wrapping this one, you want the inner resources cleaned up without the outer memory getting destroyed from under you. main character energy for the subclass, honestly.
fr fr: release β free. do not conflate them or your driver will have a bad time π
π SEE ALSO π
buckle up bestie, this list is long long. but every single one of these is a real reference, so here we go π
- 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_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_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)
mwah π this lil page ships from ./drivers/gpu/drm, stamped October 2026 β go forth and release your resources without freeing your memory, bestie, I believe in you π«Άβ¨
π¦ 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