for_each_ol...tor_in_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so bestie, this is for_each_old_connector_in_state β€” the Kernel API Manual girlie that literally iterates over all connectors in an atomic update. that's the whole vibe. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

for_each_old_connector_in_state (__state , connector ,
       old_connector_state , __i );

πŸŽ€ ARGUMENTS πŸŽ€

  • __state β€” a struct drm_atomic_commit pointer. yeah. that's the main character of this whole operation πŸ’…
  • connector β€” a struct drm_connector iteration cursor, aka the lil pointer that walks the lineup πŸšΆβ€β™€οΈ
  • old_connector_state β€” a struct drm_connector_state iteration cursor but for the old state. nostalgic era only, no cap πŸ•°οΈ
  • __i β€” an int iteration cursor. it's for macro-internal use only bestie, don't touch it, it's giving backstage pass 🎫

🌸 DESCRIPTION 🌸

so what this does is it iterates over all connectors in an atomic update β€” but it's tracking only the old state. old state only. that's the whole point, that's the assignment, she ate and left no crumbs πŸ’…

and like, when is that useful? bestie, it's useful in disable functions, where we need the old state that the hardware is still in. the hardware is lowkey still living in the past and we gotta work with that ✨


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/drm/drm_atomic.h, plus a whole friend group of related icons:


okay that's the whole page, go be iconic with your atomic updates 🫢

sign-off szn: this lil beauty lives in ./include/drm, it's dated October 2026, and yes the header/footer both go by for_each_ol...tor_in_state(9) because abbreviating is her brand πŸ’€βœ¨

πŸ“¦ where this page comes from