logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pmap_copy, pmap_copy_page — copy physical memory pages

Authors

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

Debian                                            July 21, 2003                                     PMAP_COPY(9)

Description

       The  pmap_copy()  function  copies  the  range specified by src_addr and len from the source physical map
       src_pmap to the destination physical map dst_pmap at the address dst_addr.

       The pmap_copy_page() function copies the physical page src to the physical page dst, by mapping the  page
       into kernel virtual address space (KVA), and using bcopy() to copy the page.

Implementation Notes

       The  pmap_copy()  routine  is  only  advisory  and  need  not  do anything.  Actually implementing it may
       seriously reduce system performance.

       The pmap_copy_page() routine only operates upon a single page.

Name

       pmap_copy, pmap_copy_page — copy physical memory pages

See Also

bcopy(3), pmap(9)

Synopsis

#include<sys/param.h>#include<vm/vm.h>#include<vm/pmap.h>voidpmap_copy(pmap_tdst_pmap, pmap_tsrc_pmap, vm_offset_tdst_addr, vm_size_tlen, vm_offset_tsrc_addr);

       voidpmap_copy_page(vm_page_tsrc, vm_page_tdst);

See Also