PMAP_REMOVE(9)

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

πŸ’– 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 πŸ’….

⚠️ if eva is less than sva, then the result is undefined 😭 β€” for real, undefined. also, it is assumed that both sva and eva are 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