pt_load_single_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ“–πŸ’œ


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