pt_init_top(9)
π
pt_init_top(9) β like, the Kernel API Manual page for pt_init_top β¨
okay bestie, real talk: this one's a tiny little function but it's giving main character energy in the page-table-iterator saga π
πΈ NAME πΈ
pt_init_top β initializes a pt_state right there on the stack, no cap π
β¨ SYNOPSIS β¨
struct pt_state pt_init_top (struct pt_range *range );
π«Ά ARGUMENTS π«Ά
rangeβ the range pointer you're embedding into the state. yeah. it just gets tucked in there, iykyk π
π¦ DESCRIPTION π¦
so the pt_state points at the top most level. that's it, that's the vibe. top-level icon behavior only πβ¨
π₯ SEE ALSO π₯
Kernel file ./drivers/iommu/generic_pt/pt_iter.h β go read it, seriously, it's the whole friend group π
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_make_range(9)pt_init(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)
ngl this page is short but she ate. go call the rest of the iterator functions, they're all waiting for you in that header file ππ§
and that's the whole thing, bestie π this came from ./drivers/iommu/generic_pt, dated October 2026 β mwah, slay, periodt ππ
π¦ 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