pt_table_oa_lg2sz(9)
π pt_table_oa_lg2sz(9) π
okay bestie, so this one is from the Kernel API Manual (section 9, kernel-land, very demure) and it's genuinely such a neat little helper: pt_table_oa_lg2sz β "Return the VA/OA size of the entire table". iconic name, iykyk π
β¨ SYNOPSIS β¨
unsigned int pt_table_oa_lg2sz (const struct pt_state *pts );
that's it. one argument. lowkey elegant, ngl π
πΈ ARGUMENTS πΈ
ptsβ the current level. that's literally it, that's the whole parameter, she's aconst struct pt_state *and she's just here to tell us where we are π¦
π« DESCRIPTION π«
so basically: this function returns the size of the VA decoded by the entire table level. that's the vibe. that's the whole function. no extra lore, no hidden side quests, just a straight-up size report for the whole table level π
fr fr that's the entire description β it's a short king, we respect it π
π₯ SEE ALSO π₯
- the kernel file
./drivers/iommu/generic_pt/pt_common.hβ that's where she lives, go say hi π«Ά
and the whole friend group, all section 9, all iconic, no skips:
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_max_oa_lg2(9)pt_num_items_lg2(9)pt_pgsz_lg2_to_level(9)pt_possible_sizes(9)pt_table_item_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)
go read them all, bestie, they're all gas no brakes πβ
and that's the whole page, mwah π this lil cutie came from ./drivers/iommu/generic_pt, dated October 2026 β periodt, see u in the next manpage πβ¨π
π¦ 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