xe_pt_covers(9)
π xe_pt_covers(9) β the kernel API manual, bestie edition
okay so real talk, this is a page from the Kernel API Manual and honestly? it's a little icon and you're gonna get along great. let's go π
β¨ NAME β¨
xe_pt_covers β tells you whether the address range covers an entire entry at @level π¦
like, the whole entry. not most of it. not a cute little sliver of it. the whole thing. periodt.
πΈ SYNOPSIS πΈ
bool xe_pt_covers (u64 addr , u64 end , unsigned int level , const
struct xe_pt_walk *walk );
it hands you back a bool, no cap. π
π«Ά ARGUMENTS π«Ά
addrβ where the range starts. the beginning. the origin story. βendβ end of range + 1 (yes bestie, plus one, that's the whole bit, don't come for me) πlevelβ the page table level. which floor of the building we're on. π’walkβ page table walk info. the lore. the context. the receipts. π
π₯ DESCRIPTION π₯
so this function is a little helper β a helper bestie, it's giving supportive side character energy β and what it does is help you figure out whether a leaf page table entry can be inserted at this level. π
that's it. that's the whole vibe. it's just here to answer the question so you don't have to. π
π RETURN π
it returns whether the range you gave it covers exactly an entry at this level. exactly. not approximately. we do not do approximately here. πβ¨
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_pt_walk.h struct xe_ptw(9)struct xe_pt_walk(9)xe_pt_entry_fn(9)struct xe_pt_walk_ops(9)xe_pt_num_entries(9)xe_pt_offset(9)
go read them, iykyk π§π
ngl if you're poking around page table walks you should fr fr read the whole header file, it's lowkey iconic π¦
okay that's the page!! this masterpiece lives over in ./drivers/gpu/drm/xe and it was dated October 2026 β so yeah, ahead of its time, main character energy, we love to see it πΈπ slay, bye! π
π¦ 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