xe_bo_evict_all_user(9)
π xe_bo_evict_all_user(9) π
okay so this is a page straight out of the Kernel API Manual, section 9, and the whole main-character of it is xe_bo_evict_all_user β yes that's a mouthful, we love her anyway π«Ά. She's a kernel function, she lives in the xe driver, and she's about to politely yeet your BOs out of VRAM. Buckle up bestie β¨
πΈ NAME πΈ
xe_bo_evict_all_user β evict all non-pinned user BOs from VRAM
like, all of them. the non-pinned ones. the user ones. out of VRAM. that's the whole job description π
π SYNOPSIS π
int xe_bo_evict_all_user (struct xe_device *xe );
she takes one (1) argument and hands you back an int. iconic signature tbh β
π¦ ARGUMENTS π¦
xeβ the xe device. that's it. that's the whole argument list. she's a simple girl with simple needs π
β¨ DESCRIPTION β¨
so the vibe is this: xe_bo_evict_all_user evicts non-pinned user BOs β and it does it via GPU π₯.
and because we don't gatekeep definitions here: evict == move VRAM BOs to temporary memory, which is typically system memory. so bestie is getting relocated out of the fancy VRAM neighborhood and crashing on the system memory couch for a while πποΈ
if it's pinned, she stays. pinned BOs are not getting evicted, periodt.
π SEE ALSO π
the kernel file it all lives in:
./drivers/gpu/drm/xe/xe_bo_evict.c
and literally all her friends in the same cinematic universe:
xe_bo_notifier_prepare_all_pinned(9)xe_bo_notifier_unprepare_all_pinned(9)xe_bo_evict_all(9)xe_bo_restore_early(9)xe_bo_restore_late(9)xe_bo_pci_dev_remove_all(9)xe_bo_pinned_init(9)
go read them too, iykyk ππ
ngl if you're here because your VRAM is full and you're panic-scrolling manpages at 3am β valid. she was literally made for that moment π§
and that's the page!! this little love letter to xe_bo_evict_all_user(9) came to you from ./drivers/gpu/drm/xe, dated October 2026 β mwah, slay, go evict some BOs π
ππΈ
π¦ 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