drm_atomic_c..._plane_state(9)
๐ฆ NAME ๐ฆ
okay so this is the manual page for drm_atomic_crtc_state_for_each_plane_state (it's a kernel API thing, from the drm_atomic_c..._plane_state(9) manual, iykyk) โ and what it does is literally iterate over the attached planes in the new state โจ
๐ SYNOPSIS ๐
drm_atomic_crtc_state_for_each_plane_state (plane , plane_state ,
crtc_state );
๐ธ ARGUMENTS ๐ธ
planeโ bestie this is just the loop cursor, it's the thing you're looping over ๐plane_stateโ also a loop cursor, but for the plane's state. and listen. it must be const. no cap, theconstis not optional ๐crtc_stateโ the incoming CRTC state, aka the vibe you're checking against ๐
โจ DESCRIPTION โจ
So it's giving very similar to drm_crtc_for_each_plane, except instead of just any planes, it iterates the planes that will be attached if the specified state is applied. Lowkey obsessed with the future tense of it all ๐ฎ
It's useful during, for example, code called from drm_mode_config_funcs.atomic_check operations โ that's your moment to validate the incoming state, like a little vibe check before anything actually happens ๐ซถ
And compared to just drm_atomic_crtc_state_for_each_plane, this one also fills in a const plane_state. Which is iconic when a driver just wants to peek at other active planes on this CRTC but does not need to change it. Peek, don't touch, periodt ๐
๐ SEE ALSO ๐
- Kernel file
./include/drm/drm_atomic_helper.hโ the source of truth, go read it ๐ drm_atomic_crtc_for_each_plane(9)drm_atomic_crtc_state_for_each_plane(9)drm_atomic_plane_enabling(9)drm_atomic_plane_disabling(9)
okay that's the whole page, mwah ๐ comes to you from ./include/drm in the October 2026 edition of the drm_atomic_c..._plane_state(9) manual โ go forth and iterate, bestie ๐งโจ
๐ฆ 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