xe_pt_walk_range(9)
π xe_pt_walk_range(9) β like, the Kernel API Manual era π
okay bestie, gather round, because this one is a lil helper function from the Kernel API Manual and it's honestly serving "I do one thing and I do it well" energy. Let's get into it π
β¨ NAME β¨
xe_pt_walk_range β walks a range of a gpu page table tree, and hits up a callback for every single page-table entry at all the levels. yes, all of them. no skipped levels, no cutting corners, we're thorough here π
πΈ SYNOPSIS πΈ
int xe_pt_walk_range (struct xe_ptw *parent , unsigned int level , u64
addr , u64 end , struct xe_pt_walk *walk );
that's the whole vibe. five args, one int coming back at you β¨
π¦ ARGUMENTS π¦
parentβ the root page table where the walk starts. like, the main character of the tree πlevelβ the level of that root page table. gotta know where you're starting, iykyk.addrβ the virtual address start. where we begin, bestie π±endβ the virtual address end + 1. yes, plus one β it's that exclusive-end thing, don't come for me, that's just how it is πwalkβ the walk info. all the walk-y details live in here π«Ά
π DESCRIPTION π
so likeβ¦ it's similar to the CPU page-table walker, right? this is a helper that walks a gpu page table and calls a callback function you provide for each entry. that's it, that's the whole job. it's giving "reliable friend who texts back" energy, fr fr β¨
no cap, that's genuinely all it does β you hand it a tree and a range, it strolls through and pings your callback at every entry on the way. iconic behaviour honestly π
π₯ RETURN π₯
0on success β slay, we did it π- a negative error code on error β and bestie, listen, that error is propagated from the callback, so if your callback throws hands, that's what you get back. also, on error the walk is terminated. like, stopped. done. no more entries. periodt π
fr fr though: error in the callback = walk over. plan accordingly π«Ά
π SEE ALSO π
Kernel file ./drivers/gpu/drm/xe/xe_pt_walk.c GPU page-table tree walking.(9)β the source file itself, go read it, it's right there πxe_pt_walk_shared(9)β its bestie, go say hi π
and that's the page!! πΈ this lil drop came to you from ./drivers/gpu/drm/xe (the source/version, mwah π) and it's dated October 2026 β mark your calendars bestie, that's the era we're in βπ§ββοΈ
π¦ 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