PMAP_REMOVE(9)
π PMAP_REMOVE(9) π
okay bestie, welcome to PMAP_REMOVE(9), straight out of the Kernel Developer's Manual β¨. this is the page for the little removal trio that handles physical maps, and yes, it's giving kernel-core πΈ.
β¨ NAME β¨
pmap_remove, pmap_remove_all, and pmap_remove_pages β remove pages from a physical map. that's the name section, periodt π
.
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/pmap.h>
void
pmap_remove(pmap_t pmap, vm_offset_t sva, vm_offset_t eva);
void
pmap_remove_all(vm_page_t m);
void
pmap_remove_pages(pmap_t pmap);
π¦ DESCRIPTION π¦
pmap_remove() β okay so this function removes the range of addresses between sva and eva from the physical map pmap. it's the main-character removal call π
.
β οΈ ifevais less thansva, then the result is undefined π β for real, undefined. also, it is assumed that bothsvaandevaare page-aligned addresses.
pmap_remove_all() β this one removes the physical page m from all physical maps in which it resides, and reflects back the modify bits to the appropriate pager. slay π.
pmap_remove_pages() β removes all user pages from the physical map pmap. this function is called when a process exits, so it can run down its address space more quickly than would be the case for calling pmap_remove() β speedy exit cleanup β¨.
π SEE ALSO π
pmap(9)β go read this too, iykyk π«Ά
π AUTHORS π
this manual page was written by Bruce M Simpson <bms@spc.org> β thank you for the lore, king π«‘π.
final sign-off, bestie: this cutie is from Debian, dated July 21, 2003, and it lives at PMAP_REMOVE(9). mwah πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2003 Bruce M Simpson <bms@spc.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms