VM_MAP_MAX(9)
β¨ VM_MAP_MAX π
okay so bestie, we're in section 9 of the Kernel Developer's Manual β that's the kernel developer zone, very main character, very "i read source for fun" energy. and today's topic? three lil functions that just... tell you stuff about a map. that's it. that's the whole job. and honestly? iconic for that. π
πΈ NAME πΈ
vm_map_max, vm_map_min, vm_map_pmap β return map properties
like. they return properties. of a map. no notes. π
β¨ SYNOPSIS β¨
first you gotta pull in the lore:
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/vm_map.h>
then the three besties themselves:
vm_offset_t
vm_map_max(vm_map_t map);
vm_offset_t
vm_map_min(vm_map_t map);
pmap_t
vm_map_pmap(vm_map_t map);
no cap, that's the whole synopsis. short and slay. π
π¦ DESCRIPTION π¦
okay so let's break it down, one function at a time, because each one is giving something different:
vm_map_max()β returns the upper address bound of the mapmap. that's it. the top of the vibe. the ceiling, fr fr. βvm_map_min()β returns the lower address bound of the mapmap. the floor. the basement. the bottom of the map's little world. πvm_map_pmap()β returns a pointer to the physical map associated with the virtual mapmap. so the virtual map has a physical bestie and this function is the wingman that introduces you. π«Ά
and yes, all three of them take map, which is a vm_map_t. three functions, one argument, zero drama. we love a consistent queen. π
π SEE ALSO π
if you're obsessed (and you are, don't lie) go read these next:
π AUTHORS π
this manual page was written by Bruce M Simpson <bms@spc.org>. thank you for your service king, genuinely. π
and that's the whole page bestie β no crumbs left. this lil gem came to you from Debian, dated July 19, 2003, filed under VM_MAP_MAX(9). oldie but a goodie, lowkey timeless. bye bye, go read vm_map(9) next πβ¨
π¦ 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