pt_top_memsize_lg2(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


mwah πŸ’‹ β€” source/version: ./drivers/iommu/generic_pt; date: October 2026; page: pt_top_memsize_lg2(9) πŸ«ΆπŸ’–

πŸ“¦ where this page comes from