xe_bo_evict_all(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

xe_bo_evict_all(9) πŸ¦‹βœ¨

okay so bestie, welcome to xe_bo_evict_all(9) from the Kernel API Manual πŸ’– β€” this is the function for evicting all BOs from VRAM, and yes it’s giving main-character energy.

🌸 NAME 🌸

  • xe_bo_evict_all β€” evict all BOs from VRAM πŸ’…

✨ SYNOPSIS ✨

int xe_bo_evict_all (struct xe_device *xe );

🫢 ARGUMENTS 🫢

  • xe β€” the xe device πŸŽ€

πŸ’– DESCRIPTION πŸ’–

okay picture this: first it evicts non-pinned user BOs β€” via GPU ✨ β€” then it evicts pinned external BOs next, also via GPU. after that it waits for the evictions 😴, and finally it evicts pinned kernel BOs via CPU. all of that eviction magic is done via TTM calls, no cap.

and like, what does evict even mean? it means moving VRAM BOs to temporary memory β€” typically system memory 🫢. lowkey important: this function should be called before the device goes into a suspend state where the VRAM loses power ⚑😭. that’s the vibe check. periodt.

🌈 SEE ALSO 🌈


mwah πŸ’‹ this one’s from source/version ./drivers/gpu/drm/xe, dated October 2026. xoxo, bye bestie! πŸ§šπŸ’œ

πŸ“¦ where this page comes from