VM_MAP_REMOVE(9)
π VM_MAP_REMOVE β the kernel dev manual, bestie edition π
okay so this is VM_MAP_REMOVE(9), from the Kernel Developer's Manual, and it's giving "I delete things and I'm chill about it." Let's get into it β¨
πΈ NAME πΈ
vm_map_remove β remove a virtual address range from a map
Like, literally. Range in, range gone. No cap. π
π SYNOPSIS π
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/vm_map.h>
int
vm_map_remove(vm_map_t map, vm_offset_t start, vm_offset_t end);
Three headers, one function, zero drama. She's low maintenance fr fr π«Ά
π¦ DESCRIPTION π¦
The vm_map_remove() function removes the given address range bounded by start and end from the target map.
That's it. That's the whole vibe. You hand her a map and two boundaries and she takes that slice of address space OUT. Bye. Gone. Not me being emotional about a memory range π
π IMPLEMENTATION NOTES π
- This is the exported form of
vm_map_delete(9), which may be called by consumers of the VM subsystem. So like,vm_map_delete(9)is the backstage version andvm_map_remove()is the one with main character energy that everyone else gets to talk to. β¨ - The function calls
vm_map_lock(9)to hold a lock onmapfor the duration of the function call. She locks the door, does her thing, and nobody's getting in mid-glow-up. ππ
β RETURN VALUES β
The vm_map_remove() always returns KERN_SUCCESS.
Always. Not "usually", not "most of the time", not "depends on your moon sign". ALWAYS. She ate and left no crumbs, and there are no crumbs to report. π₯
π SEE ALSO π
Go read those too bestie, iykyk π§
π AUTHORS π
This manual page was written by Bruce M Simpson <bms@spc.org>. Iconic behavior, we love to see it π
and that's the whole page!! ty for coming to my ted talk π
this one came out of the Debian crew, dated July 19, 2003 β yeah she's an elder but she's still slaying, respect the classics πβ¨
π¦ 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