pt_all_range(9)
π pt_all_range(9) π
okay so bestie, welcome to the pt_all_range manpage from the Kernel API Manual β yes, the whole manual, we're doing this π«Ά
β¨ NAME β¨
pt_all_range β returns a range that spans the entire page table, no cap π
πΈ SYNOPSIS πΈ
struct pt_range pt_all_range (struct pt_common *common );
π ARGUMENTS π
commonβ the table. that's it. that's the whole argument. she's lowkey a one-parameter icon π
π¦ DESCRIPTION π¦
so the range you get back spans the whole page table β like, all of it, every last crumb, main character energy π.
but bestie, listen to me, this part is important: because of how PT_FEAT_SIGN_EXTEND is supported, range->va and range->last_va will be incorrect during the iteration. as in, do not touch them. do not look at them. do not pass go. π
fr fr, they "must not be accessed" β that's not a vibe suggestion, that's the rule. if you read them mid-iteration you're on your own π
π SEE ALSO π
kernel file ./drivers/iommu/generic_pt/pt_iter.h β go read her, she knows things π
the whole squad, in order:
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_top_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)
okay that's the whole page, you ate that π
β¨ this came to you courtesy of ./drivers/iommu/generic_pt, dated October 2026 β mwah, stan, periodt ππ
π¦ 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