pt_range_to_index(9)
β¨ pt_range_to_index β¨
okay bestie, welcome to the Kernel API Manual entry for pt_range_to_index(9) β yes that trailing (9) means it's a kernel function, we love a section-9 moment π
π NAME π
pt_range_to_index β literally just gives you the starting index for an iteration. that's it. that's the whole vibe. no cap π«Ά
πΈ SYNOPSIS πΈ
unsigned int pt_range_to_index (const struct pt_state *pts );
π¦ ARGUMENTS π¦
ptsβ the Iteration State. the main character of this whole function, honestly. you hand it over and it tells you where the iteration starts π§
π RETURN π
it returns the starting index for the iteration in pts β like, the index you kick things off at. periodt. β¨
ngl this one's short and sweet, but every detail counts, so here we are π
π SEE ALSO π
okay the friend group is huge, brace yourself, iykyk π
Kernel file ./drivers/iommu/generic_pt/pt_iter.h
pt_check_range(9)pt_index_to_va(9)pt_entry_fully_covered(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_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)
like, they all ate, go read them π₯π
and that's the page, bestie π sign-off time: this gem lives under the source/version ./drivers/iommu/generic_pt, dated October 2026 β iconic behavior honestly, mwah ππ¦
π¦ 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