pt_top_range(9)
π pt_top_range(9) β like, the Kernel API Manual page you didn't know you needed π
okay so bestie, welcome to the glow-up of pt_top_range(9) from the Kernel API Manual β yes, that's the manual name, we're not hiding it, we're wearing it like a cute little accessory β¨
πΈ NAME πΈ
pt_top_range β returns a range that spans part of the top level π«Ά literally just a slice of the top level, that's the whole vibe
π¦ SYNOPSIS π¦
struct pt_range pt_top_range (struct pt_common *common );
no cap, that's the exact signature, character for character π
π ARGUMENTS π
commonβ the table π yeah that's it, it's just the table, she's the main character here
β DESCRIPTION β
okay so here's the tea β for PT_FEAT_SIGN_EXTEND, this function returns the lower range, and it covers half the total page table. half! like it's splitting the page table with its bestie π
otherwise β and by "otherwise" I mean literally any other case β it returns the entire page table. the whole thing. full send. π₯
π SEE ALSO π
Kernel file ./drivers/iommu/generic_pt/pt_iter.h β and bestie, the whole friend group is here, iykyk π
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_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_top_memsize_lg2(9)pt_compute_best_pgsize(9)PT_MAKE_LEVELS(9)
and that's the page, bestie π this icon of a manpage came to you from ./drivers/iommu/generic_pt, dated October 2026, under the Kernel API Manual banner β periodt, go read the whole friend group, they all ate π
β¨π
π¦ 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