PMAP_GROWKERNEL(9)
π PMAP_GROWKERNEL β like, the kernel dev manual page (section 9, bestie) π
okay so picture this: you're deep in the 9 section of the Kernel Developer's Manual, and you've stumbled onto pmap_growkernel. she's short, she's sweet, she does exactly one thing, and honestly? she ate. let's get into it π
β¨ NAME β¨
pmap_growkernel β grow the kernel virtual address (KVA) space π±β‘οΈπ³
like literally, that's the whole gig. she makes the KVA space bigger. no cap.
π¦ SYNOPSIS π¦
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/pmap.h>
void
pmap_growkernel(vm_offset_t addr);
three includes, one function, zero stress. the way that <sys/param.h> and <vm/vm.h> and <vm/pmap.h> all gotta be there first though β bestie, don't skip them, the compiler will absolutely notice π
she returns void, meaning she gives you nothing back and that's on purpose. she's not about that return-value life. take the vm_offset_t addr and go π«Ά
π DESCRIPTION π
okay so the pmap_growkernel() function grows the kernel virtual address space to the virtual address addr. that's it. that's the vibe. you hand her an addr, she stretches the KVA space out until it reaches it. main character energy, fr fr π₯
and if that growth needs more page entries? she'll allocate more page entries if required. she just handles it. no drama, no asking you twice, no follow-up questions. iconic behavior honestly π
just rememberaddris avm_offset_t, so keep your types correct or it's giving undefined chaos π
π SEE ALSO π
pmap(9)β the rest of the pmap crew, iykyk π§
π AUTHORS π
This manual page was written by Bruce M Simpson <bms@spc.org> β ty for your service king, we salute you πβ¨
aaaand that's the whole page, bestie! π this lil beauty is from the Debian crew, dated July 21, 2003 β vintage, retro, still slaying after all these years π go forth and grow that kernel virtual address space, you've got this πΈβ¨π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2003 Bruce M Simpson <bms@spc.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms