vmw_cmdbuf_res_remove(9)
β¨ vmw_cmdbuf_res_remove(9) β¨
okay bestie, buckle up π this one's from the Kernel API Manual (the vmw_cmdbuf_res_remove page, to be exact) and it's all about staging a command buffer managed resource for removal. very demure, very mindful, very kernel-core π
πΈ SYNOPSIS πΈ
int vmw_cmdbuf_res_remove (struct vmw_cmdbuf_res_manager *man , enum
vmw_cmdbuf_res_type res_type , u32 user_key , struct list_head *list ,
struct vmw_resource **res_p );
literally the whole signature, no cap π
π¦ ARGUMENTS π¦
manβ pointer to the command buffer resource manager. she's the main character here πres_typeβ the resource type.user_keyβ the user-space id of the resource. it's giving "which one is it" energy πlistβ the staging list.res_pβ if the resource is in an already committed state, this points to thestruct vmw_resourceon successful return. heads up tho: the pointer will be non ref-counted π (iykyk, don't go freeing it like it's yours)
π DESCRIPTION π
so what does she actually do? π This function looks up the struct vmw_cmdbuf_res entry from the manager hash table and, if it exists, removes it. then, depending on its current staging state, she either removes the entry from the staging list or adds it to it with a staging state of removal. iconic behavior, truly β¨
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c struct vmw_cmdbuf_res(9)struct vmw_cmdbuf_res_manager(9)vmw_cmdbuf_res_lookup(9)vmw_cmdbuf_res_free(9)vmw_cmdbuf_res_commit(9)vmw_cmdbuf_res_revert(9)vmw_cmdbuf_res_add(9)vmw_cmdbuf_res_man_create(9)vmw_cmdbuf_res_man_destroy(9)
bestie reminder: res_p is non ref-counted, so no cap, do NOT treat it like a ref you own π
and that's the page, periodt π«Ά this lil gem lives at ./drivers/gpu/drm/vmwgfx, dated October 2026, and yeah β that's the whole vibe check. slay, go stage some resources ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms