drm_atomic_c...r_each_plane(9)
β¨ drm_atomic_c...r_each_plane(9) β¨
okay bestie so this is a page straight out of the Kernel API Manual and honestly it's giving "niche but iconic" π like nobody at brunch is gonna bring this up but the people who need it need it, iykyk π«Ά
πΈ NAME πΈ
drm_atomic_crtc_state_for_each_plane β bestie, this one literally iterates over the planes that are attached in the new state π¦
β SYNOPSIS β
drm_atomic_crtc_state_for_each_plane (plane , crtc_state );
like yes, that's the whole thing. she's a macro, she's a loop, she's a main character π
π ARGUMENTS π
planeβ the loop cursor π« this is the little variable that like, walks through every plane one at a time. she's doing the rounds, she's the one moving.crtc_stateβ the incoming CRTC state π the state you're passing in, bestie, the one you're checking out.
π DESCRIPTION π
so this is lowkey a sibling of drm_crtc_for_each_plane, right? same energy, but with a plot twist β¨ instead of iterating whatever planes are around right now, this one iterates the planes that will be attached if the specified state is applied π₯ which is a whole different vibe, ngl.
and that is literally so useful β for example, in code called from drm_mode_config_funcs.atomic_check operations, where the whole entire point is to validate the incoming state π
like, vibe check the state before it becomes real. periodt.
π¦ SEE ALSO π¦
- Kernel file
./include/drm/drm_atomic_helper.hπ drm_atomic_crtc_for_each_plane(9)drm_atomic_crtc_state_for_each_plane_state(9)drm_atomic_plane_enabling(9)drm_atomic_plane_disabling(9)
okay that's the page!! π and for the cute little sign-off β this one lives under ./include/drm, and the manual's dated October 2026 π so like, mark your calendars bestie, the planes are planning ahead ππΈ
π¦ 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