xe_pt_covers(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’œ

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