for_each_old_plane_in_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Okay so bestie, welcome to the Kernel API Manual page for for_each_old_plane_in_state(9) πŸ’…βœ¨ This is the group-chat explainer for iterating over all planes in an atomic update, and no cap: every argument, every path, and every SEE ALSO reference is staying right here. 🫢

✨ NAME ✨

for_each_old_plane_in_state β€” iterate over all planes in an atomic update. Periodt. πŸ’–

🌸 SYNOPSIS 🌸

for_each_old_plane_in_state (__state , plane , old_plane_state , __i );

πŸ’… ARGUMENTS πŸ’…

  • __state β€” a struct drm_atomic_commit pointer. Main character energy.
  • plane β€” a struct drm_plane iteration cursor.
  • old_plane_state β€” a struct drm_plane_state iteration cursor for the old state.
  • __i β€” an int iteration cursor, for macro-internal use. Lowkey just let the macro handle this one. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

This iterates over all planes in an atomic update, tracking only the old state. That's literally the whole flex. ✨

It's useful in disable functions, where we need the old state the hardware is still in. So like, very much giving "we need the old vibes because the hardware is still there." πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./include/drm/drm_atomic.h

The whole squad, no cap:


Okay that's the page, bestie! πŸ’– Source/version spot: ./include/drm β€’ date: October 2026 β€’ page: for_each_old_plane_in_state(9) β€” mwah, bye! 🫢✨

πŸ“¦ where this page comes from