drm_atomic_f...plane_damage(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 drm_atomic_f...plane_damage(9) 🌸

okay so bestie, you're looking at a page from the Kernel API Manual β€” yes it's giving kernel energy but like, in a cute way, and it's actually so useful once you get it πŸ’…


✨ NAME ✨

drm_atomic_for_each_plane_damage β€” the iterator macro for plane damage, and honestly? iconic πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

drm_atomic_for_each_plane_damage (iter , rect );

πŸ’– ARGUMENTS πŸ’–

  • iter β€” the iterator you're advancing. yes, it advances. slay ✨
  • rect β€” returns a rectangle in fb coordinates, clipped to plane src. it's literally handing you the rect, no cap 🫢

πŸ”₯ DESCRIPTION πŸ”₯

okay so listen up, this part matters:

bestie, if the first call to the iterator macro returns false, then there's no need to do a plane update. like, you can just go home. main character move honestly πŸ’€

and also β€” when damage is not passed by user-space, the iterator will return the full plane src instead. so you always get something back, it's giving generous πŸ‘‘


🧚 SEE ALSO 🧚

  • the kernel file ./include/drm/drm_damage_helper.h β€” go read it, iykyk πŸ“–
  • struct drm_atomic_helper_damage_iter(9) β€” the bestie to this macro, fr fr πŸ¦‹

🌈 cute sign-off 🌈

that's the whole page babes πŸ’œ this one lives over in ./include/drm, part of the Kernel API Manual, all dated October 2026 β€” so yeah, she's fresh ⭐ go forth and iterate your plane damage, you got this πŸŽ€βœ¨

πŸ“¦ where this page comes from