pt_full_va_prefix(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pt_full_va_prefix β€” the top bits of the VA ✨

okay so bestie, we're in the kernel API manual for pt_full_va_prefix(9) β€” yes that's a function name, yes it's a mouthful, no we're not renaming it 🫢


🌸 SYNOPSIS 🌸

pt_vaddr_t pt_full_va_prefix (const struct pt_common *common );

that's the whole vibe. one argument. one return. slay.


πŸ’– ARGUMENTS πŸ’–

  • common β€” the page table you're querying, bestie. that's it, that's the input πŸŽ€

✨ DESCRIPTION ✨

okay so here's the tea β˜• β€” this value is usually 0. like, normally, that's just the answer, no drama.

but πŸ’€ some formats have their VA space going downward from PT_VADDR_MAX, and for those, this function returns that instead. so not zero. a whole different vibe.

and here's the part you cannot skip, i'm serious, highkey important πŸ‘‘ β€” this value must always be adjusted by struct pt_common max_vasz_lg2. always. every time. no cap. don't just grab the return value and run off into the sunset πŸƒβ€β™€οΈπŸ’¨


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file itself, in all its glory:

  • ./drivers/iommu/generic_pt/pt_common.h

and the whole friend group 🫢 (go say hi to all of them):


and that's the whole page, bestie πŸ’œ go read a page table, you got this 🌈⭐

source: ./drivers/iommu/generic_pt β€” dated October 2026, manual section pt_full_va_prefix(9) πŸŽ€ ok bye ily 🫢
πŸ“¦ where this page comes from