drm_atomic_...icated_state(9)
π drm_atomic_helper_commit_duplicated_state β the Kernel API Manual moment β¨
okay so bestie, we're in the Kernel API Manual, section 9, and today's main character is drm_atomic_helper_commit_duplicated_state. yes the header literally abbreviates it to drm_atomic_...icated_state(9) because that name is LONG, and honestly? she earned the abbreviation. π
πΈ NAME πΈ
drm_atomic_helper_commit_duplicated_state β commit duplicated state. that's it, that's the vibe. π
β¨ SYNOPSIS β¨
int drm_atomic_helper_commit_duplicated_state (struct drm_atomic_commit
*state , struct drm_modeset_acquire_ctx *ctx );
like, it returns an int, it takes two pointers, no cap. π«Ά
π¦ ARGUMENTS π¦
stateβ the duplicated atomic state you wanna commit. it's thestruct drm_atomic_commit *bestie. she's a copy, she's got baggage, more on that below πctxβ pointer to theacquire_ctxto use for the commit. that's yourstruct drm_modeset_acquire_ctx *, the little hall pass the commit needs. iykyk ποΈ
π DESCRIPTION π
okay so here's the tea, and it's lowkey important β
the state you get back from drm_atomic_helper_duplicate_state and drm_atomic_helper_suspend is partially invalid, and it needs to be fixed up before commit. like, not me handing you a state that's only mostly valid π β this function is the fixer-upper. it does the touch-ups so the commit can actually go through.
See also: drm_atomic_helper_suspend β go read that one too, fr fr.
π RETURN π
0β success, we ate, everything slays β- a negative error code β failure, and she's telling you exactly how it went wrong π
π₯ SEE ALSO π₯
literally the entire friend group, i'm obsessed. here's every single one, no skips, periodt:
- Kernel file
./drivers/gpu/drm/drm_atomic_helper.c overview(9)drm_atomic_helper_check_modeset(9)drm_atomic_helper_check_wb_connector_state(9)drm_atomic_helper_check_plane_state(9)drm_atomic_helper_check_crtc_primary_plane(9)drm_atomic_helper_check_planes(9)drm_atomic_helper_check(9)drm_atomic_helper_commit_encoder_bridge_disable(9)drm_atomic_helper_commit_crtc_disable(9)drm_atomic_helper_commit_encoder_bridge_post_disable(9)drm_atomic_helper_update_legacy_modeset_state(9)drm_atomic_helper_calc_timestamping_constants(9)drm_atomic_helper_commit_crtc_set_mode(9)drm_atomic_helper_commit_modeset_disables(9)drm_atomic_helper_commit_writebacks(9)drm_atomic_helper_commit_encoder_bridge_pre_enable(9)drm_atomic_helper_commit_crtc_enable(9)drm_atomic_helper_commit_encoder_bridge_enable(9)drm_atomic_helper_commit_modeset_enables(9)drm_atomic_helper_wait_for_fences(9)drm_atomic_helper_wait_for_vblanks(9)drm_atomic_helper_wait_for_flip_done(9)drm_atomic_helper_commit_tail(9)drm_atomic_helper_commit_tail_rpm(9)drm_atomic_helper_async_check(9)drm_atomic_helper_async_commit(9)drm_atomic_helper_commit(9)implementing nonblocking commit(9)drm_atomic_helper_setup_commit(9)drm_atomic_helper_wait_for_dependencies(9)drm_atomic_helper_fake_vblank(9)drm_atomic_helper_commit_hw_done(9)drm_atomic_helper_commit_cleanup_done(9)drm_atomic_helper_prepare_planes(9)drm_atomic_helper_unprepare_planes(9)drm_atomic_helper_commit_planes(9)drm_atomic_helper_commit_planes_on_crtc(9)drm_atomic_helper_disable_planes_on_crtc(9)drm_atomic_helper_cleanup_planes(9)drm_atomic_helper_swap_state(9)drm_atomic_helper_update_plane(9)drm_atomic_helper_disable_plane(9)drm_atomic_helper_set_config(9)drm_atomic_helper_disable_all(9)drm_atomic_helper_reset_crtc(9)drm_atomic_helper_shutdown(9)drm_atomic_helper_duplicate_state(9)drm_atomic_helper_suspend(9)drm_atomic_helper_resume(9)drm_atomic_helper_page_flip(9)drm_atomic_helper_page_flip_target(9)drm_atomic_helper_bridge_propagate_bus_fmt(9)drm_atomic_helper_bridge_get_hdmi_output_bus_fmts(9)
quick vibe check bestie: that state is partially invalid until this function fixes it up. don't commit it raw, i'm begging π
and that's the whole page! π§ this little gem lives over in ./drivers/gpu/drm and it's dated October 2026 β yeah, she's from the future, we don't ask questions π mwah, go commit some state 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