pt_max_oa_lg2(9)
π 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 π₯
- Kernel file
./drivers/iommu/generic_pt/pt_common.hπ pt_attr_from_entry(9)pt_can_have_leaf(9)pt_can_have_table(9)pt_clear_entries(9)pt_entry_make_write_dirty(9)pt_entry_make_write_clean(9)pt_entry_is_write_dirty(9)pt_dirty_supported(9)pt_entry_num_contig_lg2(9)pt_entry_oa(9)pt_entry_oa_lg2sz(9)pt_entry_oa_exact(9)pt_full_va_prefix(9)pt_has_system_page_size(9)pt_install_leaf_entry(9)pt_install_table(9)pt_item_oa(9)pt_load_entry_raw(9)pt_num_items_lg2(9)pt_pgsz_lg2_to_level(9)pt_possible_sizes(9)pt_table_item_lg2sz(9)pt_table_oa_lg2sz(9)pt_table_pa(9)pt_table_ptr(9)pt_max_sw_bit(9)pt_test_sw_bit_acquire(9)pt_set_sw_bit_release(9)pt_load_entry(9)
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
- 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