drm_for_each_plane_mask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ drm_for_each_plane_mask ✨

okay so this is drm_for_each_plane_mask(9) from the Kernel API Manual, and bestie, it's literally the macro that loops over planes for you πŸ’…


🌸 NAME 🌸

drm_for_each_plane_mask β€” iterate over planes specified by bitmask

Like, it walks the planes for you. That's the whole vibe. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

drm_for_each_plane_mask (plane , dev , plane_mask );

πŸ’– ARGUMENTS πŸ’–

  • plane β€” the loop cursor πŸ‘€ this is the variable that's gonna hold each plane as you go around the loop, so it's very much the main character here.
  • dev β€” the DRM device πŸ–₯️ your whole graphics device situation.
  • plane_mask β€” bitmask of plane indices 🎚️ which planes you actually wanna visit, encoded as a mask.

🌈 DESCRIPTION 🌈

Iterate over all planes specified by bitmask. That's it, that's the whole thing β€” the mask tells it which planes, and it goes over them one by one. no cap, simple and iconic ✨


🫢 SEE ALSO 🫢

Kernel file ./include/drm/drm_plane.h β€” and also these absolute legends:


ngl if you're messing with planes you're gonna want these in your tabs already πŸ”₯

and that's the page, bestie πŸŽ€ coming at you from ./include/drm, dated October 2026, in the Kernel API Manual β€” slay, go loop some planes πŸ’œ

πŸ“¦ where this page comes from