drm_atomic_...odeset_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ hey bestie, welcome to the glow-up of drm_atomic_...odeset_state(9) ✨ β€” yes that's the actual title, from the Kernel API Manual, and no, the ... isn't me being lazy, that's literally how it's printed 🫢


πŸŽ€ NAME πŸŽ€

drm_atomic_helper_update_legacy_modeset_state β€” the little helper that goes and updates the legacy modeset state for you πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

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

🌸 ARGUMENTS 🌸

  • dev β€” the DRM device, aka the thing you're doing the modeset on πŸ’»
  • state β€” the atomic state object that's being committed, the whole vibe of the transaction fr fr ✨

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea bestie πŸ“ β€” this function goes through and updates all the various legacy modeset state pointers living in your connectors, encoders and CRTCs. Like, all of them. Every single pointer, updated, no crumbs left behind 🧚

Drivers can use this when they're building their own atomic commit β€” specifically if they don't have a pure helper-based modeset implementation. iykyk 😌

⚠️ now the important bit, and I need you to actually read this one: since these updates are not synchronized with lockings, only code paths called from drm_mode_config_helper_funcs.atomic_commit_tail can look at the legacy state that this helper fills out. That's the rule, no cap.

Defacto (their word, not mine, slay) this means the helper and the legacy state pointers are only really useful for transitioning an existing driver to the atomic world β€” it's giving "bridge era", not "forever era" πŸ’€


🌈 SEE ALSO 🌈

okay this list is long long, but every single one of these is iconic in its own right, so here we go πŸ‘‘


mwah πŸ’‹ that's the whole page. huge thanks to the fine folks in ./drivers/gpu/drm β€” this beauty landed in October 2026, so go read it, hydrate, and remember: lock your legacy state or it's giving chaos πŸ¦‹πŸ’…βœ¨

πŸ“¦ where this page comes from