xe_vm_clear_validating(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ xe_vm_clear_validating(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… this one's a little kernel function called xe_vm_clear_validating(9) and it's giving "small function, big responsibilities" energy, ngl.


πŸŽ€ NAME πŸŽ€

xe_vm_clear_validating β€” unregister this task as currently making bos resident 🫢

🌸 SYNOPSIS 🌸

void xe_vm_clear_validating (struct xe_vm *vm , bool allow_res_evict );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • vm β€” pointer to the vm, or NULL (yes, NULL is allowed, she's flexible like that πŸ’β€β™€οΈ)
  • allow_res_evict β€” eviction from vm was allowed. Must be set to the same value as for xe_vm_set_validation. like, must must, no cap, don't be out here freelancing with a different value πŸ”₯

πŸ‘‘ DESCRIPTION πŸ‘‘

So the DESCRIPTION says: register this task as currently making bos resident for the vm ✨. It's intended to avoid eviction by the same task of shared bos bound to the vm β€” basically it's the "hey, this is my stuff, don't touch it" note you leave for yourself so you don't accidentally evict your own things 😭.

And the crucial bit: call with the vm's resv lock held πŸ”’ periodt. If you're not holding it, you're not doing it right, and that's the whole vibe check.

πŸ’€ tiny heads-up bestie: the NAME section up there says unregister, and the DESCRIPTION says register. I'm not gonna smooth that over for you β€” that's literally what the page says, I'm just the messenger πŸ™ˆ read it however the source does, iykyk.

🌈 SEE ALSO 🌈

Kernel file ./drivers/gpu/drm/xe/xe_vm.h and honestly the whole friend group:


aaaand that's the page!! πŸŽ€ she lives in ./drivers/gpu/drm/xe, dated October 2026, and goes by xe_vm_clear_validating(9) β€” go forth and clear those validatings responsibly bestie, lock held, matching allow_res_evict value, slay πŸ’œβœ¨

πŸ“¦ where this page comes from