pt_check_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pt_check_range(9) β€” the kernel API manual, but make it cute

okay so bestie, welcome to pt_check_range from the Kernel API Manual β€” this is the little vibe-check function that makes sure a range is actually, y'know, iterable. no cap, it's giving gatekeeper but in a helpful way 🫢


✨ NAME ✨

pt_check_range β€” validates that the range can be iterated. literally its whole job. iconic behavior honestly πŸ‘‘


🌸 SYNOPSIS 🌸

int pt_check_range (struct pt_range *range );

πŸŽ€ ARGUMENTS πŸŽ€

  • range β€” the range we're validating, bestie. that's the one. the range in question. πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

so what it does is: it checks that VA and last_va both fall within the permitted range of VAs. like, are you supposed to be here, girl? πŸ‘€

and if the format is using PT_FEAT_SIGN_EXTEND, then it also checks that the sign extension is correct. double duty, highkey obsessed with how thorough it is ✨

fr fr, this is the function that goes "mhm mhm, and the sign extension? correct? slay." πŸ’…

🌈 SEE ALSO 🌈


and that's the whole page, bestie β€” the squad over at ./drivers/iommu/generic_pt dropped this in October 2026, and it's still filed under pt_check_range(9) if you ever need to find it again. go off, range validator πŸ”₯πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from