vmw_view_remove(9)
π
vmw_view_remove β bestie's guide to staging a view for removal β¨
okay so you're deep in the vmwgfx shader namespace and you need a view gone but, like, not gone-gone yet? yeah. that's this function. it's vmw_view_remove, from the Kernel API Manual, and it is literally the "stage it for removal" girlie. π
She's a function in ./drivers/gpu/drm/vmwgfx/vmwgfx_so.c and honestly? iconic behaviour. Let's get into it. π¦
πΈ SYNOPSIS πΈ
not me about to type out the whole signature exactly, because we do not paraphrase signatures in this house:
int vmw_view_remove (struct vmw_cmdbuf_res_manager *man , u32 user_key ,
enum vmw_view_type view_type , struct list_head *list , struct
vmw_resource **res_p );
five arguments, one int coming back at you. slay. π
β¨ ARGUMENTS β¨
okay bestie, argument-by-argument, no skips, no cap:
manβ pointer to the view manager that identifies the shader namespace. think of it as the group chat this view belongs to. π¬user_keyβ the key used to identify the view. and listen: the key is unique to the view type. so like, don't go thinking a key from one type works on another. it does not. πview_typeβ the view type. that's it. that's the whole vibe check. πlistβ the caller's list of staged command buffer resource actions. it's your list, you brought it, you're staging stuff on it. π«Άres_pβ here's the spicy one π β if the resource is in an already committed state, this points to thestruct vmw_resourceon successful return. and heads up: the pointer will be non ref-counted. so no, you don't get to hold a ref and take it home. it's a peek, not a situationship. π
π₯ SEE ALSO π₯
the whole entourage, fr fr β the kernel file and every sibling function, spelled exactly right because I would simply never:
Kernel file ./drivers/gpu/drm/vmwgfx/vmwgfx_so.c, plus struct vmw_view(9), struct vmw_view_define(9), vmw_view(9), vmw_view_commit_notify(9), vmw_view_create(9), vmw_view_destroy(9), vmw_hw_view_destroy(9), vmw_view_key(9), vmw_view_id_ok(9), vmw_view_res_free(9), vmw_view_add(9), vmw_view_cotable_list_destroy(9), vmw_view_surface_list_destroy(9), vmw_view_srf(9), vmw_view_lookup(9), vmw_view_dirtying(9).
like, that's the whole friend group and they all ate. π
quick reminder bestie: vmw_view_remove stages a view for removal β it does not do the removing itself. don't be out here expecting a full delete, that is not the assignment. π
and that's the page! π this little kernel API number lives in ./drivers/gpu/drm/vmwgfx, dated October 2026, and it's part of the Kernel API Manual β vmw_view_remove(9) herself. bye bestie, go stage those views responsibly π§πβ¨
π¦ 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