STRUCT VMW_RES_CACHE_ENTRY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so bestie, welcome to the Kernel API Manual β€” today we're doing struct vmw_res_cache_entry(9), and it's literally the resource information cache entry. lowkey a tiny struct with main character energy. 🫢


🌸 NAME 🌸

struct vmw_res_cache_entry β€” resource information cache entry. yep, that's the whole vibe: it's a cache entry for resource info. πŸ’…

✨ SYNOPSIS ✨

       struct vmw_res_cache_entry {
           uint32_t handle;
           struct vmw_resource *res;
           unsigned short valid_handle;
           unsigned short valid;
        };

πŸŽ€ Members πŸŽ€

  • handle β€” the user-space handle of a resource, bestie. that's the ID situation. πŸ’–
  • res β€” a non-ref-counted pointer to the resource. important: it's not ref-counted, so don't go assuming it's holding a reference for you. πŸ™ˆ
  • valid_handle β€” tells you whether the handle member is valid. like, is this handle actually valid or not? vibe check. ✨
  • valid β€” tells you whether the entry is valid, which also implies that the execbuf code holds a reference to the resource, and it's placed on the validation list. so valid means a whole little chain of things, no cap. πŸ’€

πŸ¦‹ Description πŸ¦‹

This struct is used to avoid frequent repeated user-space handle lookups of the same resource. basically it's the "bestie we already looked this up" cache so you're not doing the same lookup over and over. iconic efficiency behavior. ⭐

πŸ”₯ SEE ALSO πŸ”₯

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


kisses bestie πŸ’‹ this page's source is ./drivers/gpu/drm/vmwgfx, it's dated October 2026, and it's serving struct vmw_res_cache_entry(9) β€” mwah. πŸŽ€

πŸ“¦ where this page comes from