STRUCT VKMS_FRAME_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct vkms_frame_info(9) β€” ok bestie, let's talk frames

Hey so this is a page from the Kernel API Manual, and it's all about struct vkms_frame_info β€” literally the cutest little struct whose whole personality is storing the state of a frame. That's the job. That's the vibe. πŸŽ€


✨ NAME ✨

struct vkms_frame_info β€” Structure to store the state of a frame


πŸ¦‹ SYNOPSIS πŸ¦‹

struct vkms_frame_info {
    struct drm_framebuffer *fb;
    struct drm_rect src, dst;
    struct iosys_map map[DRM_FORMAT_MAX_PLANES];
    unsigned int rotation;
 };

🌸 Members 🌸

Not me listing every single one because we do NOT skip members in this house πŸ’…
  • fb β€” the backing drm framebuffer. Like, the actual framebuffer behind everything. Iconic.
  • src β€” the source rectangle of this frame, in the source framebuffer, stored in 16.16 fixed-point form. Yes bestie, fixed-point, write that down.
  • dst β€” the destination rectangle in the crtc buffer, stored in whole pixel units (so, no fixed-point shenanigans here, keep it integer).
  • map β€” see drm_shadow_plane_state.data for this one, iykyk πŸ”₯
  • rotation β€” the rotation applied to the source. That's it, that's the whole thing.

πŸ’– Description πŸ’–

src and dst should have the same size modulo the rotation. That's the rule, periodt. 🌈


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/gpu/drm/vkms/vkms_drv.h β€” and the whole friend group:


🫢 That's the whole page, no cap β€” nothing cut, nothing merged, nothing invented.

And a lil sign-off for the credits, because we always give credit: this one lives in ./drivers/gpu/drm/vkms, dated October 2026, and it's filed under struct vkms_frame_info(9) in the Kernel API Manual. Slay πŸ’œβœ¨

πŸ“¦ where this page comes from