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_qenter, pmap_qremove — manage temporary kernel space mappings

Authors

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

Debian                                          February 15, 2018                                 PMAP_QENTER(9)

Description

       The pmap_qenter() function accepts a linear array of count pointers to wired pages *m, and enters each of
       these  pages  into  the  kernel virtual address (KVA) space, beginning at the address sva.  The pages are
       mapped non-executable, if possible.  (For example, non-PAE i386 has  no  capability  to  map  pages  non-
       executable.)

       The  pmap_qremove()  function tears out a mapping from the kernel virtual address space, beginning at sva
       and for count pages.

Implementation Notes

       The pmap_qenter() function is intended for temporary mappings that do not require  page  modification  or
       reference counting.  Old mappings are simply overwritten.  The pages must be wired into physical memory.

       The corresponding pmap_qremove() function is intended to remove such temporary mappings.

Name

       pmap_qenter, pmap_qremove — manage temporary kernel space mappings

See Also

pmap(9)

Synopsis

#include<sys/param.h>#include<vm/vm.h>#include<vm/pmap.h>voidpmap_qenter(vm_offset_tsva, vm_page_t*m, intcount);

       voidpmap_qremove(vm_offset_tsva, intcount);

See Also