pt_load_single_entry(9)
π
pt_load_single_entry (9) β Kernel API Manual π
okay bestie so this one lives in the Kernel API Manual and it's genuinely such a vibe β a whole function that's basically the solo edition of pt_load_entry(), built to be used from inside a walker β¨
πΈ NAME πΈ
pt_load_single_entry β the version of pt_load_entry() that's usable within a walker π«Ά
β SYNOPSIS β
enum pt_entry_type pt_load_single_entry (struct pt_state *pts );
like, that's the whole signature, no cap π
π¦ ARGUMENTS π¦
ptsβ the Iteration State π (yes that's literally its job, she's carrying the walk state for you)
π DESCRIPTION π
so here's the tea π: this is the alternative to for_each_pt_level_entry for the specific case where your walker function only ever touches a single entry. that's it, that's the whole situation β one entry, one function, iconic behaviour π
like if for_each_pt_level_entry is the whole group chat, pt_load_single_entry is the DM. different energy, same friend group π
ngl, keep it straight: it's an alternative to for_each_pt_level_entry when the walker function uses only a single entry. no extra lore, that's the fact fr fr β¨
π§ SEE ALSO π§
Kernel file ./drivers/iommu/generic_pt/pt_iter.h β go read her, she's the main character of this whole saga ππ
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_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)
and that's the page bestie!! π shipped straight out of ./drivers/iommu/generic_pt, dated October 2026, and yes she ate π
π₯ 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