table of contents
- wheezy 8.2-1
|VM_PAGE_PROTECT(9)||Kernel Developer's Manual||VM_PAGE_PROTECT(9)|
NAME¶vm_page_protect — lower a page's protection
#include <vm/vm_page.h> void
vm_page_protect(vm_page_t mem, int prot);
DESCRIPTION¶The vm_page_protect() function lowers a page's protection. The protection is never raised by this function; therefore, if the page is already at
VM_PROT_NONE, the function does nothing. Its arguments are:
- The page whose protection is lowered.
- The protection the page should be reduced to. If
VM_PROT_NONEis specified, then the
PG_MAPPEDflags are cleared and the pmap_page's protection is set to
VM_PROT_READis specified, then the
PG_WRITABLEflag is cleared and the pmap_page's protection is set to
AUTHORS¶This manual page was written by Chad David ⟨email@example.com⟩.
|July 14, 2001||Debian|