pt_init(9)
π pt_init(9) π β Kernel API Manual
β¨ NAME β¨
pt_init β initialize a pt_state on the stack, bestie π«Άβ¨
π¦ SYNOPSIS π¦
copy this exact signature, no edits, it's iconic:
struct pt_state pt_init (struct pt_range *range , unsigned int level ,
struct pt_table_p *table );
π ARGUMENTS π
rangeβ the range pointer to embed in the state π«levelβ the table level for the state, periodt πtableβ pointer to the table memory at level π
π DESCRIPTION π
It's literally a helper to initialize the on-stack pt_state from the walker arguments β that's the whole assignment, and it ate π₯
π SEE ALSO π
Kernel file: ./drivers/iommu/generic_pt/pt_iter.h π§
the full bestie lineup:
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_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)
source/version: ./drivers/iommu/generic_pt β’ date: October 2026 β’ pt_init(9) β byeee, love u, hydrate πβ¨
π¦ 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