vkms_config...cursor_plane(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– vkms_config_crtc_cursor_plane(9) β€” the Kernel API Manual glow-up πŸ’–

okay so bestie, we're deep in the Kernel API Manual (section 9, very demure, very kernel of it), and today's main character is vkms_config_crtc_cursor_plane. she's a tiny little getter and honestly she ate πŸ’…


✨ NAME ✨

vkms_config_crtc_cursor_plane β€” Return the cursor plane for a CRTC πŸ–±οΈβœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

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

like, yes, the layout is a little chaotic, but she's literally perfect, no notes 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • config β€” the Configuration containing the CRTC. that's her home base, her safe space πŸ’œ
  • crtc_cfg β€” okay ngl, the original literally just says -- undescribed -- here 😭 like the docs said "we don't know her" and moved on. so there's no description to pass along, fr fr β€” that's just what's on the page, periodt.

🌸 DESCRIPTION 🌸

so the way that this works: if multiple cursor planes are found, the first one is returned. iconic behavior, but heads up bestie β€” in that case, the configuration will be invalid. πŸ‘€ like, not in a cute way.

see vkms_config_is_valid if you wanna go check yourself. iykyk πŸ”₯


⭐ RETURN ⭐

the cursor plane, or NULL if none is assigned yet. that's it, that's the whole vibe β€” no plane, no problem, you just get NULL back 🫢


🌈 SEE ALSO 🌈

Kernel file ./drivers/gpu/drm/vkms/vkms_config.h β€” and like, the entire extended friend group: πŸ’–


bestie reminder: returning the first of multiple cursor planes = the configuration is invalid. check vkms_config_is_valid. not me warning you twice πŸ˜­πŸ’€

okay that's the whole page, mwah πŸ’‹ this little cutie lives in ./drivers/gpu/drm/vkms, and the version tag says October 2026 β€” so she's basically from the future, main character energy fr fr πŸ‘‘βœ¨ bye bestie, go read some struct docs πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from