pt_table_item_lg2sz(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pt_table_item_lg2sz β€” bestie, it's the size of ONE item entry at this table level

okay so real talk, this page is pt_table_item_lg2sz(9) from the Kernel API Manual, and it's lowkey one of the shorter ones but it still ate. let's get into it πŸŽ€


✨ SYNOPSIS ✨

unsigned int pt_table_item_lg2sz (const struct pt_state *pts );

like, that's the whole vibe. one function, one argument, returns an unsigned int. clean. minimal. iconic. πŸ‘‘


🌸 ARGUMENTS 🌸

  • pts β€” The current level. that's it, that's the argument, she just wants to know what level we're at bestie πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

so the size of the item β€” that's the number this whole function is about β€” specifies how much VA and how much OA a single item occupies. yes, both. VA and OA. one item, that much space, periodt. ✨

not me telling you to also go read pt_entry_oa_lg2sz β€” because it gives you the same value except it includes the effect of contiguous entries. so like, same energy, extra spice. iykyk πŸ’…

🫢 SEE ALSO 🫢

okay this list is LONG, she's popular, she knows everybody. stay with me:

Kernel file ./drivers/iommu/generic_pt/pt_common.h and also: 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_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) 🌈


aaaand that's the tea πŸ“ this little cutie lives in ./drivers/iommu/generic_pt and the page itself is dated October 2026 β€” so yeah, mark your calendars bestie, she's from the future and she's thriving πŸ’œπŸ§š

πŸ“¦ where this page comes from