PMAP_COPY(9)
π PMAP_COPY π (section 9, kernel devs only, bestie)
okay so this is PMAP_COPY(9) from the Kernel Developer's Manual, and it's literally all about copying physical memory pages. two functions, one job, let's go β¨
πΈ NAME πΈ
pmap_copy, pmap_copy_page β copy physical memory pages
π SYNOPSIS π
#include <sys/param.h>
#include <vm/vm.h>
#include <vm/pmap.h>
void
pmap_copy(pmap_t dst_pmap, pmap_t src_pmap, vm_offset_t dst_addr,
vm_size_t len, vm_offset_t src_addr);
void
pmap_copy_page(vm_page_t src, vm_page_t dst);
β¨ DESCRIPTION β¨
so the pmap_copy() function copies the range that src_addr and len are specifying β that whole stretch β from the source physical map src_pmap over to the destination physical map dst_pmap, and it drops it at the address dst_addr. that's the move π
and then pmap_copy_page() is the single-page girlie: it copies the physical page src to the physical page dst. how? it maps the page into kernel virtual address space (KVA), and then uses bcopy() to actually do the copy. periodt π«Ά
π IMPLEMENTATION NOTES π
ngl this is the part you need to read twice, bestie.
the pmap_copy() routine is only advisory and need not do anything. like, it's allowed to just... not. and here's the tea: actually implementing it may seriously reduce system performance. so yeah, no cap, doing the thing can make everything worse. π
the pmap_copy_page() routine only operates upon a single page. one page. that's it. don't ask it for more. π
π₯ SEE ALSO π₯
π AUTHORS π
this manual page was written by Bruce M Simpson <bms@spc.org>. iconic of him, honestly π
and that's the whole page, bestie β tysm for reading π¦ this was the PMAP_COPY(9) page from Debian, dated July 21, 2003 π mwah, go copy some pages responsibly π
β¨
π¦ 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