pt_table_pa(9)
π pt_table_pa β the manual page, but make it make sense
okay so bestie, welcome to pt_table_pa(9) from the Kernel API Manual β¨ this one's short and sweet and honestly kinda iconic in its simplicity β it's the little function that hands you back a physical address and refuses to elaborate π
πΈ NAME πΈ
pt_table_pa β return the CPU physical address of the table entry</p> π
β¨ SYNOPSIS β¨
pt_oaddr_t pt_table_pa (const struct pt_state *pts );
that's it. one arg. no drama. we love a low-maintenance signature π«Ά
π¦ ARGUMENTS π¦
ptsβ the entry you're querying, bestie. that's the whole vibe check π
π DESCRIPTION π
okay so here's the tea β β this function is only ever called on PT_ENTRY_TABLE entries. like, that's its whole lane. don't be sending it anything else, it's not that girl π
and the rule? must return the same value passed to pt_install_table. no cap. no cap at ALL. it's literally giving "what goes in comes back out" energy π
bestie please note the must β this isn't a suggestion, it's a contract, and the table entry is holding you to it π
π₯ SEE ALSO π₯
the whole friend group showed up for this one, so let's give them all their flowers π (kernel file: ./drivers/iommu/generic_pt/pt_common.h β that's the group chat, iykyk)
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_oa_lg2sz(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)
like, all of them. the entire roster. squad goals fr fr π
and that's the page, bestie!! π this lil section of the manual lives at ./drivers/iommu/generic_pt and it's dated October 2026 β so if you're reading this from the future, hiii, hope the kernel's slaying ππ¦β¨
π¦ 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