pt_pgsz_lg2_to_level(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… pt_pgsz_lg2_to_level(9) โ€” Kernel API Manual ๐Ÿ’…

๐ŸŽ€ NAME ๐ŸŽ€

pt_pgsz_lg2_to_level โ€” Return the level that maps the page size โœจ


๐ŸŒธ SYNOPSIS ๐ŸŒธ

okay so the signature is literally right here, bestie:

unsigned int pt_pgsz_lg2_to_level (struct pt_common *common , unsigned
       int pgsize_lg2 );

๐Ÿฆ‹ ARGUMENTS ๐Ÿฆ‹

  • common โ€” Page table to query ๐Ÿ‘€
  • pgsize_lg2 โ€” Log2 page size ๐Ÿงฎ

๐Ÿ’– DESCRIPTION ๐Ÿ’–

So this function returns the table level that will map the given page size. That's the whole vibe ๐Ÿซถ

The page size must be part of the pt_possible_sizes for some level. No cap, that's the requirement โœจ

๐ŸŒˆ 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_max_oa_lg2(9), pt_num_items_lg2(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) ๐Ÿ’œ


๐ŸŒธ xoxo, bestie ๐ŸŒธ โ€” this page is from source/version ./drivers/iommu/generic_pt, dated October 2026, and it's the pt_pgsz_lg2_to_level(9) manual. Periodt ๐Ÿ’…

๐Ÿ“ฆ where this page comes from