VM_MAP_CREATE(9)
π VM_MAP_CREATE π
okay so bestie, we're in the Kernel Developer's Manual section 9 today, and the page is called vm_map_create. it's giving "let's build a map from scratch" energy and honestly? iconic. πΊοΈβ¨
β¨ NAME β¨
vm_map_create β create a new vm_map structure π
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/vm_map.h>
vm_map_t
vm_map_create(pmap_t pmap, vm_offset_t min, vm_offset_t max);
π DESCRIPTION π
so like, vm_map_create() does exactly what it says on the tin, no cap. it creates and returns a brand new, empty map structure. π¦
and this lil baby map? it comes associated with the physical map pmap, and it's got upper and lower address bounds that you hand it yourself β max for the top and min for the bottom, respectively. π«Ά
lowkey important:maxis the upper bound,minis the lower bound. don't mix them up bestie, that's not the vibe. π
π§ IMPLEMENTATION NOTES π§
the kernel's zone allocator is what's doing the heavy lifting here to allocate the map. main character allocator behaviour fr fr. π
β RETURN VALUES β
- if it works? slay. you get a pointer to the newly allocated map. π
- if it doesn't? π you get
NULL. that's it. that's the whole tragedy.
π SEE ALSO π
go read those too, iykyk πβ¨
π AUTHORS π
this manual page was written by Bruce M Simpson <bms@spc.org>. thank you for your service king π«‘π
and that's the whole page bestie!! π this one shipped out from Debian back on July 19, 2003 β yeah, it's vintage, but it ate and left no crumbs. π β¨ bye pookie, go make some maps π¦π
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2003 Bruce M Simpson <bms@spc.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms