pt_make_range(9)
π pt_make_range(9) π
okay bestie, welcome to the Kernel API Manual β¨ β this one's a lil function from the kernel's generic page-table world, and it's literally so simple you'll be done in like ten seconds. no cap. π«Ά
πΈ NAME πΈ
pt_make_range β returns a range that spans part of the table π
β¨ SYNOPSIS β¨
struct pt_range pt_make_range (struct pt_common *common , pt_vaddr_t va
, pt_vaddr_t last_va );
like, that's the whole signature. cute, right? π¦
π§ ARGUMENTS π§
commonβ the table π (yes, that table. the one you're working with.)vaβ the start address βlast_vaβ the last address π
π DESCRIPTION π
so here's the tea, and it's a short tea: the caller must validate the range with pt_check_range before using it. π₯
that's it. that's the whole description. no extra lore, no secret second paragraph. and yeah β "must" means must, bestie. don't be out here using an unvalidated range and then acting surprised π do the vibe check first, periodt.
π SEE ALSO π
the kernel file ./drivers/iommu/generic_pt/pt_iter.h says hi, and it brought the whole friend group along π
:
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_all_range(9)pt_upper_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)
ok and one last lil note for the girlies who read to the end π: this page lives in ./drivers/iommu/generic_pt, dated October 2026. iconic. obsessed. byeee π¦πΈβ¨
π¦ 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