drm_for_each_legacy_plane(9)
โจ NAME โจ
Okay so welcome to the <pink>Kernel API Manual</pink> page for drm_for_each_legacy_plane(9), bestie ๐ซถ. The short iconic version: drm_for_each_legacy_plane โ iterate over all planes for legacy userspace. That's the name, that's the vibe, periodt ๐
.
๐ SYNOPSIS ๐
drm_for_each_legacy_plane (plane , dev );
๐ ARGUMENTS ๐
planeโ the loop cursor. That's literally its whole job, no cap.devโ the DRM device. The main character of this little loop ๐.
๐ฆ DESCRIPTION ๐ฆ
Iterate over all legacy planes of dev, excluding primary and cursor planes. So yes bestie: legacy planes only โ primary and cursor planes are not invited to this party ๐. This is useful for implementing userspace apis when userspace is not universal plane aware. See also enum drm_plane_type. iykyk โจ
๐ฎ SEE ALSO ๐ฎ
Kernel file ./include/drm/drm_plane.h โ and here's the full SEE ALSO lineup, all accounted for, fr fr:
struct drm_plane_state(9)struct drm_plane_funcs(9)enum drm_plane_type(9)struct drm_plane(9)drmm_universal_plane_alloc(9)drm_universal_plane_alloc(9)drm_plane_index(9)drm_plane_mask(9)drm_plane_find(9)drm_for_each_plane_mask(9)drm_for_each_plane(9)
Cute little sign-off ๐: this page comes from the ./include/drm source/version line, dated October 2026, and it's the drm_for_each_legacy_plane(9) page. Bye bestie, go iterate responsibly โจ๐
๐ฆ 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