vmw_resource_evict_all(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

like, the whole squad showed up to the group chat πŸ˜­πŸ‘‘


lowkey important reminder: this page is vmw_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