p4d_set_huge(9)
π 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 π:
reserve_top_address(9)p4d_clear_huge(9)pud_set_huge(9)pmd_set_huge(9)pud_clear_huge(9)pmd_clear_huge(9)pmd_free_pte_page(9)
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
- 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