xe_pt_walk_shared(9)
π xe_pt_walk_shared(9) π
okay bestie, welcome to the Kernel API Manual glow-up for xe_pt_walk_shared(9) β this is the one about walking shared page tables of a page-table tree, and it's lowkey iconic for unbind-type stuff. π«Ά
β¨ NAME β¨
xe_pt_walk_shared β walk shared page tables of a page-table tree.
π¦ SYNOPSIS π¦
int xe_pt_walk_shared (struct xe_ptw *parent , unsigned int level , u64
addr , u64 end , struct xe_pt_walk *walk );
πΈ ARGUMENTS πΈ
parentβ root page table directory. the main-character tree root.levelβ level of the root. yes bestie, the root's level.addrβ start address. where the vibe begins.endβ last address + 1. not just the last address β it's last address + 1; that part matters, no cap.walkβ walk info. the little info bundle that keeps the walk going.
π DESCRIPTION π
okay so this function is similar to xe_pt_walk_range, but it skips page tables that are private to the range. slay.
and because the root (or parent) page table is typically also a shared page table, this function is different in one specific way: it calls the pt_entry callback and the post_descend callback also for the root. yes, the root gets callback attention too.
you can detect the root in the callbacks by checking whether parent == *child. that's the little root-detection vibe check.
walking only the shared page tables is common for unbind-type operations, where the page-table entries for an address range are cleared or detached from the main page-table tree. very "cleaning up the shared bits" energy.
π₯ RETURN π₯
0 on success, and a negative error code on error: if a callback returns an error, the walk will be terminated and the error returned by this function. periodt.
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_pt_walk.cGPU page-table tree walking.(9),xe_pt_walk_range(9)
xoxo, from ./drivers/gpu/drm/xe, dated October 2026, signed with love by xe_pt_walk_shared(9) π
β¨
π¦ 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