STRUCT VMW_VIEW(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct vmw_view(9) πŸ’–

okay so this is the page for struct vmw_view(9), straight out of the Kernel API Manual, and bestie it's literally just the metadata for a view. that's it. that's the whole vibe. let's get into it 🫢


✨ NAME ✨

struct vmw_view β€” view metadata πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

struct vmw_view {
    struct rcu_head rcu;
    struct vmw_resource res;
    struct vmw_resource *ctx;
    struct vmw_resource *srf;
    struct vmw_resource *cotable;
    struct list_head srf_head;
    struct list_head cotable_head;
    unsigned view_type;
    unsigned view_id;
    u32 cmd_size;
    bool committed;
    u32 cmd[];
};

like, look at her. she's gorgeous. she's a struct. 🌈


πŸŽ€ Members πŸŽ€

  • rcu β€” the RCU callback head. it's giving "i call back later" πŸ’…
  • res β€” the struct vmw_resource that we derive from. our origin story, fr fr.
  • ctx β€” a non-refcounted pointer to the context this view belongs to. note: non-refcounted, so no, she's not holding a reference for you πŸ™ˆ
  • srf β€” a refcounted pointer to the surface that this view points to. this one does hold a ref, so slay.
  • cotable β€” a refcounted pointer to the cotable that holds this view. also refcounted. also iconic.
  • srf_head β€” the list head for the surface-to-view list. πŸ¦‹
  • cotable_head β€” the list head for the cotable-to-view list. πŸ¦‹ (yes the original really writes it as cotable-to_view with that little underscore moment β€” not me fixing it, i would never 😭)
  • view_type β€” the view type. short king of a description, we love it.
  • view_id β€” the user-space per context view id. currently used also as the per context device view id β€” iykyk πŸ‘‘
  • cmd_size β€” the size of the SVGA3D define view command that we've copied from the command stream. yes, we copy it. it's ours now ⭐
  • committed β€” whether the view is actually created, or still pending creation, at the device level. the "are we official or are we just talking" flag πŸ’€
  • cmd β€” the SVGA3D define view command copied from the command stream. again: copied. from. the. command. stream. no cap. πŸ”₯

🌸 SEE ALSO 🌸

kernel file ./drivers/gpu/drm/vmwgfx/vmwgfx_so.c and honestly the whole friend group:


ok that's the whole page bestie, go read the other ones too, they're all in the group chat πŸ’–

and that's a wrap!! this lil page lives in ./drivers/gpu/drm/vmwgfx and the version we're all looking at is dated October 2026 β€” screenshot it, pin it, memorize it, periodt. πŸ§šπŸ’œ

πŸ“¦ where this page comes from