VM_MAP_REMOVE(9)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to the vm_map_remove(9) page from the Kernel Developer's Manual πŸ’… this one is short and highkey iconic.

vm_map_remove β€” remove a virtual address range from a map. periodt.

✨ SYNOPSIS ✨

here's the exact spellbook, no cap πŸͺ„:

#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);

πŸ’– DESCRIPTION πŸ’–

so vm_map_remove() removes the given address range bounded by start and end from the target map. that's the whole vibe: start, end, gone from the map ✨.

πŸŽ€ IMPLEMENTATION NOTES πŸŽ€

quick lore drop πŸ‘€: this is the exported form of vm_map_delete(9), which may be called by consumers of the VM subsystem.

also, the function calls vm_map_lock(9) to hold a lock on map for the duration of the function call. lock it in, bestie πŸ”’.

πŸ¦‹ RETURN VALUES πŸ¦‹

vm_map_remove() always returns KERN_SUCCESS. every single time. no cap, that's the whole return value story πŸ’€βœ¨.

🌈 SEE ALSO 🌈

go read these next, bestie:

πŸ‘‘ AUTHORS πŸ‘‘

this manual page was written by Bruce M Simpson <bms@spc.org> 🫢.


xoxo, this page's source/version is Debian, dated July 19, 2003 πŸ’‹

πŸ“¦ where this page comes from