vmw_cmd_res_check(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– vmw_cmd_res_check β€” the kernel-API manual, but make it make sense πŸŽ€

okay so bestie, welcome to the vmw_cmd_res_check(9) page from the Kernel API Manual πŸ’… this one's a lil kernel-side helper that does exactly one (1) job and honestly? it ate. let's get into it ✨


✨ NAME ✨

vmw_cmd_res_check β€” check that a resource is present, and if it is, put it on the resource validate list unless it's already there. that's it, that's the whole vibe 🫢


🌸 SYNOPSIS 🌸

int vmw_cmd_res_check (struct vmw_private *dev_priv , struct
       vmw_sw_context *sw_context , enum vmw_res_type res_type , u32 dirty ,
       const struct vmw_user_resource_conv *converter , uint32_t *id_loc ,
       struct vmw_resource **p_res );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev_priv β€” pointer to a device private structure. the main character of the device world, lowkey πŸ‘‘
  • sw_context β€” pointer to the software context. yes queen, the software one πŸ’œ
  • res_type β€” resource type. which flavor of resource are we talking about πŸ“
  • dirty β€” whether to change dirty status. do we touch the dirty bit or nah, that's the question πŸ™ˆ
  • converter β€” user-space visible type specific information. the little translation layer for the userspace girlies ✨
  • id_loc β€” pointer to the location in the command buffer currently being parsed, from where the user-space resource id handle is located. like, where in the buffer are we rn πŸ“
  • p_res β€” pointer to pointer to the resource validation node. it gets populated on exit, so it's giving "I'll fill you in later" energy πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

okay this list is LONG, like genuinely iconic levels of cross-referencing, but every single one matters so here we go, no skips, fr fr:

the kernel file is ./drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c, and it hangs out with:

like I said. iconic. read them all, iykyk πŸ’€


ngl bestie, the whole point is: resource present? cool, onto the validate list it goes β€” unless it's already chillin' there, in which case we leave it be. no double-dipping in the validate list, periodt πŸ’…

and that's the page!! source/version: ./drivers/gpu/drm/vmwgfx, dated October 2026 πŸ—“οΈπŸ’– go forth and validate those resources, bestie β€” you've got this, fr fr 🌈⭐🫢

πŸ“¦ where this page comes from