pt_range_to_end_index(9)
π pt_range_to_end_index(9) β like, the Kernel API Manual page, bestie β¨
Okay so grab a snack π because we're diving into pt_range_to_end_index(9) from the Kernel API Manual, and honestly? She's a little icon. Short page, main character energy, zero filler. Let's go π«Ά
πΈ NAME πΈ
pt_range_to_end_index β ending index iteration. That's it, that's the vibe: it's the ending index, and it's about iterating. Periodt π
β¨ SYNOPSIS β¨
unsigned int pt_range_to_end_index (const struct pt_state *pts );
Yep, that's the whole signature. Copy it exactly, don't get cute with it π₯
π ARGUMENTS π
ptsβ the Iteration State. She's aconst struct pt_state *, so hands off, we're just looking π
β RETURN β
It gives you back the last index for the iteration in pts. Like the final stop on the group chat road trip, no cap ππ¨ The return type is unsigned int, and that is not a drill.
π¦ SEE ALSO π¦
A whole friend group, lowkey iconic π
Kernel file ./drivers/iommu/generic_pt/pt_iter.h, plus:
pt_check_range(9)pt_index_to_va(9)pt_entry_fully_covered(9)pt_range_to_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_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)
π Friendly reminder that the "ending index iteration" thing is literally the whole description here β no extra lore in this page, so don't go inventing any. Iykyk π
And that's the page!! Signing off from ./drivers/iommu/generic_pt π§, dated October 2026 β mwah, slay, go read the SEE ALSO list, she's long but she 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