xe_tlb_inval_all(9)
π xe_tlb_inval_all(9) β from the Kernel API Manual, bestie β¨
okay so picture this: you're in the kernel, and every single TLB out there needs to be told "girl, your cached translations are expired, let them GO." That's this function. It's xe_tlb_inval_all, and yes she's giving main character energy in xe_tlb_inval.c. π
πΈ NAME πΈ
xe_tlb_inval_all β Issue a TLB invalidation for all TLBs. that's it. that's the whole vibe check. she invalidates. all of them. periodt. π
β¨ SYNOPSIS β¨
int xe_tlb_inval_all (struct xe_tlb_inval *tlb_inval , struct
xe_tlb_inval_fence *fence );
like, two args, one int back. no cap, it's that simple. π¦
π«Ά ARGUMENTS π«Ά
tlb_invalβ the TLB invalidation client. your lil entry point into the whole invalidation situation, iykyk.fenceβ the invalidation fence, and it will be signal on TLB invalidation completion. (yes, that's the original wording, she's quirky like that, we love her π) this is your "text me when you're done" of the kernel world.
π DESCRIPTION π
Issue a TLB invalidation for all TLBs. all of them. every last one. the whole group chat. π₯
but here's the tea: completion of TLB is asynchronous, so it is not done the second this returns. nope. the caller can use the invalidation fence to wait for completion β that's literally what it's for, bestie. don't be out here assuming it's finished just because the function came back. π
β RETURN β
0 on success, negative error code on error. iconic behavior honestly. π
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/xe/xe_tlb_inval.c - Xe TLB invalidation(9)
tlb_inval_fini(9)xe_gt_tlb_inval_init_early(9)xe_tlb_inval_reset(9)xe_tlb_inval_reset_timeout(9)xe_tlb_inval_ggtt(9)xe_tlb_inval_range(9)xe_tlb_inval_vm(9)xe_tlb_inval_done_handler(9)xe_tlb_inval_fence_init(9)xe_tlb_inval_idle(9)xe_tlb_inval_batch_wait(9)xe_tlb_inval_range_tilemask_submit(9)
that's the whole friend group right there, go say hi to all of them π
fr fr reminder: the fence is how you find out when it's actually done, because completion is asynchronous. don't skip the vibe check. π§
and that's a wrap! this page came to you live from ./drivers/gpu/drm/xe in the gorgeous month of October 2026, part of the Kernel API Manual. slay, go invalidate some TLBs responsibly πππ
π¦ 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