drm_atomic_...icated_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the struct drm_atomic_commit * bestie. she's a copy, she's got baggage, more on that below πŸ‘€
  • ctx β€” pointer to the acquire_ctx to use for the commit. that's your struct 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:


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