kvm_pgtable_stage2_mkyoung(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kvm_pgtable_stage2_mkyoung(9) β€” Kernel API Manual energy ✨

okay bestie, so you're in the Kernel API Manual and the page you opened is kvm_pgtable_stage2_mkyoung(9) β€” yes it's a mouthful, no we're not changing it, it's iconic in its own way πŸŽ€


🌸 NAME 🌸

kvm_pgtable_stage2_mkyoung β€” literally just "set the access flag in a page-table entry." that's the whole vibe. one job. she does it. periodt πŸ’…


✨ SYNOPSIS ✨

void kvm_pgtable_stage2_mkyoung (struct kvm_pgtable *pgt , u64 addr ,
enum kvm_pgtable_walk_flags flags );

look at her. void. she returns nothing and still ate 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pgt β€” the page-table structure, and it has to be initialised by kvm_pgtable_stage2_init*(). like, she needs to be set up before you show up, yk? no init, no entry 🚫
  • addr β€” the intermediate physical address that identifies which page-table entry we're talking about. this is how you find her in the crowd πŸ’«
  • flags β€” flags that control the page-table walk (ex. a shared walk). yes king, you get to steer πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

here's the tea: the offset of addr within a page is ignored. not filtered, not checked, ignored. she doesn't care what byte of the page you're pointing at πŸ™ˆ

and then β€” if there's a valid, leaf page-table entry that's used to translate addr, she sets the access flag in that entry. that's it. that's the function. note the "if" though, bestie, because if there's no valid leaf entry, there's nothing to flag and she's not out here inventing one 😭


πŸ”₯ SEE ALSO πŸ”₯

like, that's the whole friend group right there. the entire kvm_pgtable squad, all tagged in the group chat πŸ§šπŸ’œ


quick vibe check before you go: this page lives under ./arch/arm64/include/asm, and the manual's dated October 2026 β€” so yeah, she's from the future (or at least from the arm64 tree), and that's on periodt. go set that access flag, bestie, you got this πŸ’–βœ¨πŸŽ€
πŸ“¦ where this page comes from