pt_make_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’…:


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