drm_atomic_h...eset_enables(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_atomic_helper_commit_modeset_enables(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual page for drm_atomic_helper_commit_modeset_enables β€” yes that's a whole mouthful, iykyk πŸ’– this is a section 9 (kernel API) page, and honestly it's kind of a baddie once you get to know her.


✨ NAME ✨

drm_atomic_helper_commit_modeset_enables β€” the modeset commit that turns your outputs on πŸ”₯ literally the "lights on" moment of the whole atomic commit saga.


🌸 SYNOPSIS 🌸

void drm_atomic_helper_commit_modeset_enables (struct drm_device *dev ,
       struct drm_atomic_commit *state );

like, that's the whole signature. two args. no return. she just does it. periodt 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” your DRM device πŸ’» the main character, the one everything hangs off of.
  • state β€” the atomic state object that's actively being committed ✨ this is the vibe check of what the new config should look like.

πŸ’œ DESCRIPTION πŸ’œ

okay so what does she actually do? bestie. she enables all the outputs with the new configuration β€” specifically the ones that had to be turned off for the update to happen 😭 like yes, we had to kill the lights to rewire the room, and now she's the one flipping the switch back on, but with the new layout. iconic.

for compatibility with legacy CRTC helpers, this should be called after drm_atomic_helper_commit_planes β€” which is exactly what the default commit function does, ngl that's just the standard route πŸ›£οΈ

but!! and this is the fun part 🌈 drivers with different needs can group the modeset commits together and do the plane commits at the end instead. this is genuinely useful for drivers doing runtime PM, because plane updates then only happen when the CRTC is actually enabled πŸ’… like, why do work for a screen that isn't even on yet? exactly. efficiency queen πŸ‘‘

ngl this is one of those "call order matters, bestie" situations. the default order is commit_planes β†’ this. don't come for me if you reorder it and things get weird πŸ™ˆ

🧚 SEE ALSO 🧚

the whole friend group 🫢 literally her entire social circle, go say hi:


okay that's the whole page bestie, you ate that πŸ“ this one lives under ./drivers/gpu/drm and the version stamp says October 2026 β€” so mark your calendar, she's got a date πŸ’« mwah, bye! πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from