drm_atomic_f...plane_damage(9)
πΈ 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms