__drm_atomic_commit_free(9)
π
__drm_atomic_commit_free(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes we're in the kernel docs now, and honestly? kind of iconic of you. this one's a lil function with a big job: it's the cleanup queen π.
πΈ NAME πΈ
__drm_atomic_commit_free β free all memory for an atomic state π«Ά
like, all of it. every last byte. she does not leave crumbs.
π SYNOPSIS π
void __drm_atomic_commit_free (struct kref *ref );
π¦ ARGUMENTS π¦
refβ the atomic state you're about to deallocate, bb. this is This atomic state to deallocate β the one getting sent to the void π
β¨ DESCRIPTION β¨
so what she actually does: this frees all memory associated with an atomic state, and that includes all the per-object state for planes, CRTCs and connectors. every single one. no cap π
it's giving "end of the group chat, everyone go home" energy. main character cleanup fr fr.
π SEE ALSO π
okay this list is LONG but we're not skipping a single one because every reference matters and I would never do you like that π«Ά. also peep the kernel file ./drivers/gpu/drm/drm_atomic.c at the front β she's the home base.
state lifetime(9)drm_crtc_commit_wait(9)drm_atomic_commit_default_release(9)drm_atomic_commit_init(9)drm_atomic_commit_alloc(9)drm_atomic_commit_default_clear(9)drm_atomic_commit_clear(9)drm_atomic_get_crtc_state(9)drm_atomic_get_plane_state(9)drm_atomic_get_colorop_state(9)drm_atomic_get_old_colorop_state(9)drm_atomic_get_new_colorop_state(9)drm_atomic_plane_check(9)handling driver private state(9)drm_atomic_private_obj_init(9)drm_atomic_private_obj_fini(9)drm_atomic_get_private_obj_state(9)drm_atomic_get_old_private_obj_state(9)drm_atomic_get_new_private_obj_state(9)drm_atomic_get_old_connector_for_encoder(9)drm_atomic_get_new_connector_for_encoder(9)drm_atomic_get_connector_for_encoder(9)drm_atomic_get_old_crtc_for_encoder(9)drm_atomic_get_new_crtc_for_encoder(9)drm_atomic_get_connector_state(9)drm_atomic_get_bridge_state(9)drm_atomic_get_old_bridge_state(9)drm_atomic_get_new_bridge_state(9)drm_atomic_add_encoder_bridges(9)drm_atomic_add_affected_connectors(9)drm_atomic_add_affected_planes(9)drm_atomic_add_affected_colorops(9)drm_atomic_check_only(9)drm_atomic_commit(9)drm_atomic_nonblocking_commit(9)drm_atomic_print_new_state(9)drm_state_dump(9)
iykyk π
ngl bestie, that's the whole page β she's short, she's sweet, she frees everything. go read state lifetime(9) next if you wanna know the whole story π
and that's a wrap, mwah π β this lil page lives in ./drivers/gpu/drm, dated October 2026, from the Kernel API Manual, and it's __drm_atomic_commit_free(9) to the very end. periodt. π
π¦ 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