pt_max_oa_lg2(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pt_max_oa_lg2(9) β€” Kernel API Manual πŸŽ€

okay bestie, welcome to the pt_max_oa_lg2 page, part of the Kernel API Manual ✨ it's short, it's sweet, and it's lowkey kind of important, so let's get into it 🫢


✨ NAME ✨

pt_max_oa_lg2 β€” return the maximum OA the table format can hold πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

unsigned int pt_max_oa_lg2 (const struct pt_common *common );

🌸 ARGUMENTS 🌸

  • common β€” the page table you wanna query, bestie. that's it, that's the whole argument πŸ™ˆ

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea β˜• β€” the value oalog2_to_max_int(pt_max_oa_lg2) is literally the MAX for the OA. not "a" max, the max. it's the absolute maximum address the table can hold, periodt πŸ’…

but wait, there's a lil plot twist πŸŽ€ struct pt_common max_oasz_lg2 sets a lower dynamic maximum based on HW capability. so like, this function is giving absolute-ceiling main character energy, while max_oasz_lg2 is the realistic one depending on what your hardware can actually do. both iconic, both matter ✨


πŸ”₯ SEE ALSO πŸ”₯

like, go read the whole friend group, iykyk πŸ’œ


and that's the page, bestie!! πŸ¦‹ this one lives in ./drivers/iommu/generic_pt, dated October 2026 β€” go off and query those page tables, no cap πŸŒˆβ­πŸ’–

πŸ“¦ where this page comes from