vmw_view_remove(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the struct vmw_resource on 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