kvm_pgd_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

kvm_pgd_alloc β€” bestie, this is the one that allocates and initialises a KVM GPA page directory ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

pgd_t * kvm_pgd_alloc (void );

πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” literally no arguments, she takes nothing, she needs nothing, she simply arrives πŸ’…

🌸 DESCRIPTION 🌸

okay so picture this: you need a blank KVM GPA page directory β€” a PGD β€” and this function is the one who hands it to you, freshly allocated, already initialised, no cap πŸ’œ

what's it for? representing guest physical to host physical page mappings. that's the whole vibe. it's giving "translator between two worlds" and honestly? iconic πŸ‘‘


⭐ RETURN ⭐

  • on the slay side: a pointer to your brand-new KVM GPA page directory 🫢
  • on the not-so-slay side: NULL when the allocation fails 😭 (yes, she can fail, always check, fr fr)

🌈 SEE ALSO 🌈

kernel file ./arch/mips/kvm/mmu.c is right there holding it down, plus the whole friend group:

iykyk πŸ’«


and that's the whole page, bestie β€” brought to you from the kvm_pgd_alloc(9) section of the Kernel API Manual, filed under ./arch/mips/kvm, dated October 2026 πŸŽ€ go forth and allocate responsibly, mwah πŸ’–πŸ§š

πŸ“¦ where this page comes from