vkms_config_...rimary_plane(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vkms_config_crtc_primary_plane(9) β€” like, the Kernel API Manual page bestie πŸŽ€

okay so this is the vkms_config_...rimary_plane(9) page from the Kernel API Manual, and honestly? it's a lil cutie. tiny function, big "where's my plane" energy. let's get into it ✨


✨ NAME ✨

vkms_config_crtc_primary_plane β€” returns the primary plane for a CRTC πŸ–₯οΈπŸ’–


🌸 SYNOPSIS 🌸

struct vkms_config_plane * vkms_config_crtc_primary_plane (const struct
vkms_config *config , struct vkms_config_crtc *crtc_cfg );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • config β€” the configuration that contains the CRTC. that's the container, the vibe-holder, the whole situation 🫢
  • crtc_cfg β€” -- undescribed -- 😭 yeah. the docs literally just say "undescribed" here. not me exposing upstream like this πŸ’€ it's a struct vkms_config_crtc *, that's all we're given, bestie

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea: if this function finds multiple primary planes, it hands you back the first one. and like... that's not a slay. in that case, the configuration will be invalid. check vkms_config_is_valid for that. no cap πŸ”₯

⚠️ fr fr if you're getting more than one primary plane back, something's cooked β€” go validate your config.

πŸ‘‘ RETURN πŸ‘‘

the primary plane, or NULL if none is assigned yet. that's it. that's the whole return 🫑


🌈 SEE ALSO 🌈

okay this is the long part and we are NOT skipping a single one, iykyk. Kernel file ./drivers/gpu/drm/vkms/vkms_config.h, plus:

like, go read them. all of them. it's giving "study group" πŸ“šβœ¨


and that's the page!! this icon lived in ./drivers/gpu/drm/vkms and dropped way back in October 2026 β€” main character energy from the kernel docs honestly πŸ’…πŸ’– bye bestie, go find that primary plane πŸ¦‹

πŸ“¦ where this page comes from