__drm_atomic...estroy_state(9)
π __drm_atomic...estroy_state(9) π
okay bestie, welcome to the Kernel API Manual β this one is about a little cleanup function and it's genuinely so important, so let's get into it π
β¨ NAME β¨
__drm_atomic_helper_crtc_destroy_state β release CRTC state π§Ή
πΈ SYNOPSIS πΈ
void __drm_atomic_helper_crtc_destroy_state (struct drm_crtc_state
*state );
like, that's the whole signature. short and iconic, as she should be β¨
π¦ ARGUMENTS π¦
stateβ the CRTC state object to release π aka the thing you're saying bye to
π DESCRIPTION π
so here's the vibe: this function releases all resources stored in the CRTC state β but, and this is the key part, without actually freeing the memory of the CRTC state itself. ngl that distinction is everything π
it's useful for drivers that subclass the CRTC state, iykyk. like, if you've got your own fancy extended struct wrapping the CRTC state, this lets you clean out the innards without yeeting the whole allocation out of existence. main character energy for the teardown path, truly π
fr fr, remember: resources go poof, the memory stays put. don't mix those two up π
π«Ά SEE ALSO π«Ά
Kernel file ./drivers/gpu/drm/drm_atomic_state_helper.c β atomic state reset and initialization(9), and honestly the whole extended friend group π:
__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_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_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)
like, that's the whole group chat, go read them all bestie π«Ά
π that's the page!! this little icon lives over in ./drivers/gpu/drm, and she's dated October 2026 β slay, see you in the next one π
β¨π
π¦ 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