drm_atomic_commit_init(9)
β¨ drm_atomic_commit_init(9) β¨
okay so bestie, welcome to the drm_atomic_commit_init page from the Kernel API Manual β yes we're in kernel land today and honestly it's giving main character energy π₯
πΈ SYNOPSIS πΈ
int drm_atomic_commit_init (struct drm_device *dev , struct
drm_atomic_commit *state );
like, that's the whole vibe: it returns an int, it takes a struct drm_device * and a struct drm_atomic_commit *, and that's it π
π ARGUMENTS π
devβ the DRM device, aka the whole entire display situation you're working with π₯οΈstateβ the atomic state, the thing being filled in, the star of the show β
π DESCRIPTION π
So this is the default implementation for filling in a new atomic state. Like, it's the out-of-the-box way to set up a fresh state, no cap.
β οΈ real talk though: this should only be used by drivers which are still subclassingdrm_atomic_commitand haven't switched todrm_private_stateyet. if you're on the new stuff, this is not your moment bestie π
π¦ SEE ALSO π¦
okay this list is LONG and honestly iconic β it's the whole atomic-state friend group π«Ά
- Kernel file
./drivers/gpu/drm/drm_atomic.c state lifetime(9)drm_crtc_commit_wait(9)drm_atomic_commit_default_release(9)drm_atomic_commit_alloc(9)drm_atomic_commit_default_clear(9)drm_atomic_commit_clear(9)__drm_atomic_commit_free(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)
like, go read them all, iykyk π§β¨
kisses and good luck out there in the DRM subsystem π this little page lives in ./drivers/gpu/drm and it's dated October 2026 β slay, see you in the next kernel release ππ
π¦ 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