xe_bo_evict_all_user(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

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