VM_PAGE_PROTECT (9) | Kernel routines | Unix Manual Pages | :man▋
vm_page_protect - "lower a pages protection"
.In vm/vm_page.h void vm_page_protect "vm_page_t mem" "int prot"
The vm_page_protect function lowers a pages 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:
| mem || The page whose protection is lowered. |
| prot || The protection the page should be reduced to. If VM_PROT_NONE is specified, then the PG_WRITABLE and PG_MAPPED flags are cleared and the pmap_pages protection is set to VM_PROT_NONE. If VM_PROT_READ is specified, then the PG_WRITABLE flag is cleared and the pmap_pages protection is set to VM_PROT_READ. |
Higher protection requests are ignored.
This manual page was written by
.An Chad David Aq firstname.lastname@example.org .
shtml">manServer 1.07 from vm_page_protect.9 using doc macros.
|July 14, 2001 ||VM_PAGE_PROTECT (9) || |
Share this page