vmw_resource_evict_all(9)
π
vmw_resource_evict_all β Kernel API Manual energy π¦
okay so real talk, this is a page straight out of the Kernel API Manual and it's about one single function that's about to do a whole lot of cleaning. bestie, it's giving "spring cleaning but make it kernel". let's get into it π
β¨ NAME β¨
vmw_resource_evict_all β evict all evictable resources π§Ήβ¨
π SYNOPSIS π
void vmw_resource_evict_all (struct vmw_private *dev_priv );
that's it. that's the whole signature. no return value (it's void, she doesn't give anything back, she just does things π
).
πΈ ARGUMENTS πΈ
dev_privβ pointer to a device private struct. that's the one (1) thing you gotta hand her π«Ά
π₯ DESCRIPTION π₯
so like, why would you even call this? two reasons, both valid, both iconic:
- to avoid thrashing starvation, or
- as part of the hibernation sequence π»π€
either way, the move is: evict all evictable resources. periodt.
and what does that actually mean? it means every single guest-backed resource that's registered with the device gets evicted, and once the dust settles the OTable becomes clean β¨ literally sparkling. no cap.
π¦ SEE ALSO π¦
first up, the source file where all this lives:
./drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
and then the whole friend group, because this function does not exist in a vacuum:
vmw_resource_mob_attach(9)vmw_resource_mob_detach(9)vmw_resource_release_id(9)vmw_resource_alloc_id(9)vmw_resource_init(9)vmw_user_resource_lookup_handle(9)vmw_resource_buf_alloc(9)vmw_resource_do_validate(9)vmw_resource_unreserve(9)vmw_resource_check_buffer(9)vmw_resource_backoff_reservation(9)vmw_resource_do_evict(9)vmw_resource_validate(9)vmw_resource_unbind_list(9)vmw_query_readback_all(9)vmw_query_move_notify(9)vmw_resource_needs_backup(9)vmw_resource_evict_type(9)vmw_resource_unpin(9)vmw_res_type(9)vmw_resource_dirty_update(9)vmw_resources_clean(9)
like, the whole squad showed up to the group chat ππ
lowkey important reminder: this page isvmw_resource_evict_all(9), it lives in the Kernel API Manual, it's filed under./drivers/gpu/drm/vmwgfx, and it's dated October 2026. go off, kernel docs π π
k bye, ily, go evict something 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