VM_MAP_DELETE(9)
π VM_MAP_DELETE β kernel dev girlies, this one's for you π
okay so bestie, welcome to section 9 of the Kernel Developer's Manual πΈ this is the page for vm_map_delete, and it's giving extremely internal, do not touch unless you know what you're doing energy. no cap. let's get into it π«Ά
β¨ NAME β¨
vm_map_delete β deallocate an address range from a map πΊοΈπ
π¦ SYNOPSIS π¦
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/vm_map.h>
int
vm_map_delete(vm_map_t map, vm_offset_t start, vm_offset_t end);
like, three headers, one function, zero drama. she's lowkey elegant π
π DESCRIPTION π
so vm_map_delete() deallocates the address range that's bounded by start and end, straight out of the map. that's it. that's the whole vibe. it takes that chunk of address space and it's gone πβ¨
π₯ IMPLEMENTATION NOTES π₯
listen. this function is for FreeBSD VM internal use only. i'm so serious.
if you're a FreeBSD VM consumer (hey bestie π), the one you actually want is vm_map_remove(9). that's the main character. vm_map_delete() is backstage. do not put her on the red carpet π
β RETURN VALUES β
vm_map_delete() always returns KERN_SUCCESS. always. every single time. no surprises, no plot twists, she ate and left no crumbs π
π SEE ALSO π
go read those too, iykyk π¦
π AUTHORS π
this manual page was written by Bruce M Simpson <bms@spc.org>. thank you king, we love a documented syscall π«ΆπΈ
and that's the whole page, bestie!! π this one's from Debian, dated July 19, 2003 β yes she's an elder but she still slays β¨ mwah, go forth and not call this function directly unless you're literally the VM subsystem π
π¦ 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