table of contents
other versions
- wheezy 8.2-1
| VM_PAGE_PROTECT(9) | Kernel Developer's Manual | VM_PAGE_PROTECT(9) |
NAME¶
vm_page_protect — lower a page's protectionSYNOPSIS¶
#include <sys/param.h>#include <vm/vm.h>
#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 atVM_PROT_NONE, the function does nothing.
Its arguments are:
- mem
- The page whose protection is lowered.
- prot
- The protection the page should be reduced to. If
VM_PROT_NONEis specified, then thePG_WRITABLEandPG_MAPPEDflags are cleared and the pmap_page's protection is set toVM_PROT_NONE. IfVM_PROT_READis specified, then thePG_WRITABLEflag is cleared and the pmap_page's protection is set toVM_PROT_READ.
AUTHORS¶
This manual page was written by Chad David ⟨davidc@acns.ab.ca⟩.| July 14, 2001 | Debian |