pt_top_memsize_lg2(9)
okay bestie, welcome to the pt_top_memsize_lg2(9) page from the Kernel API Manual β¨ this one is short, but weβre giving it full main-character energy anyway π
π NAME π
pt_top_memsize_lg2 β and then a dash with absolutely nothing after it. Thatβs the name, no cap π«Ά (mysterious, lowkey iconic).
β¨ SYNOPSIS β¨
unsigned int pt_top_memsize_lg2 (struct pt_common *common , uintptr_t top_of_table );
π ARGUMENTS π
commonβ Table. Thatβs it, bestie β the whole description is literally βTableβ π§top_of_tableβ Top of table value from_pt_top_setπΈ
π¦ DESCRIPTION π¦
So this computes the allocation size of the top table β yes, the whole thing. For PT_FEAT_DYNAMIC_TOP, it will compute the top size assuming the table will grow. Growth mindset era, fr fr π±β¨
πΈ SEE ALSO πΈ
Kernel file ./drivers/iommu/generic_pt/pt_iter.h β plus the whole friend group:
pt_check_range(9)pt_index_to_va(9)pt_entry_fully_covered(9)pt_range_to_index(9)pt_range_to_end_index(9)pt_next_entry(9)for_each_pt_level_entry(9)pt_load_single_entry(9)pt_top_range(9)pt_all_range(9)pt_upper_range(9)pt_make_range(9)pt_init(9)pt_init_top(9)pt_descend(9)pt_walk_range(9)pt_range_slice(9)pt_compute_best_pgsize(9)PT_MAKE_LEVELS(9)
mwah π β source/version: ./drivers/iommu/generic_pt; date: October 2026; page: pt_top_memsize_lg2(9) π«Άπ
π¦ 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