p4d_set_huge(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

hey bestie, welcome to the Kernel API Manual πŸ’– this page is all about p4d_set_huge β€” aka β€œSet up kernel P4D mapping” ✨


✨ SYNOPSIS ✨

ok so here’s the exact signature, no cap:

int p4d_set_huge (p4d_t *p4d , phys_addr_t addr , pgprot_t prot );

πŸ’… ARGUMENTS πŸ’…

  • p4d β€” Pointer to the P4D entry 🫢
  • addr β€” Virtual address associated with the P4D entry πŸ“
  • prot β€” Protection bits to use πŸ›‘οΈ

πŸ¦‹ DESCRIPTION πŸ¦‹

real talk, the whole description is literally this:

No 512GB pages yet -- always return 0

so yeah β€” no 512GB pages yet, and it always returns 0 πŸ’€βœ¨


🌈 SEE ALSO 🌈

catch these related icons in the kernel file ./arch/x86/mm/pgtable.c πŸ‘‘:


mwah πŸ’‹ this iconic page comes from ./arch/x86/mm, dated October 2026, and it’s p4d_set_huge(9) β€” catch u later bestie 🫢🌸

πŸ“¦ where this page comes from