xe_bo_evict_all(9)
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 π
- Kernel file:
./drivers/gpu/drm/xe/xe_bo_evict.cπ xe_bo_notifier_prepare_all_pinned(9)xe_bo_notifier_unprepare_all_pinned(9)xe_bo_evict_all_user(9)xe_bo_restore_early(9)xe_bo_restore_late(9)xe_bo_pci_dev_remove_all(9)xe_bo_pinned_init(9)
mwah π this oneβs from source/version ./drivers/gpu/drm/xe, dated October 2026. xoxo, bye bestie! π§π
π¦ 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