reserve_top_address(9)
β¨ reserve_top_address(9) β¨
okay so bestie, welcome to the Kernel API Manual β this one's a tiny function with a big job, and it's genuinely iconic for it π
πΈ NAME πΈ
reserve_top_address β it reserves a hole in the top of the kernel address space, no cap π³οΈπ
π¦ SYNOPSIS π¦
void reserve_top_address(unsigned long reserve);
π ARGUMENTS π
reserveβ the size of the hole you wanna reserve. yeah that's it, that's the whole argument π«Ά
π DESCRIPTION π
So likeβ¦ you can use this to relocate the fixmap area and poke a hole in the top of the kernel address space, which makes room for a hypervisor π§β¨
literally just "excuse me, moving the fixmap over, gotta carve out some space up top" and the kernel is like "say less" π
π SEE ALSO π
- Kernel file
./arch/x86/mm/pgtable.c p4d_set_huge(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)
like a whole little pgtable friend group, go say hi ππ
mwah π that's the whole page β brought to you by ./arch/x86/mm, stamped October 2026, and calling itself reserve_top_address(9) one more time for the people in the back π£ slay.
π¦ 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