*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> vm_page_protect (9)              
Title
Content
Arch
Section
 

VM_PAGE_PROTECT(9)

Contents


NAME    [Toc]    [Back]

     vm_page_protect -- lower a page's protection

SYNOPSIS    [Toc]    [Back]

     #include <sys/param.h>
     #include <vm/vm.h>
     #include <vm/vm_page.h>

     void
     vm_page_protect(vm_page_t mem, int prot);

DESCRIPTION    [Toc]    [Back]

     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:

     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_page's protection is set to VM_PROT_NONE.  If VM_PROT_READ
	   is specified, then the PG_WRITABLE flag is cleared and the
	   pmap_page's protection is set to VM_PROT_READ.

     Higher protection requests are ignored.

AUTHORS    [Toc]    [Back]

     This man page was written by Chad David <davidc@acns.ab.ca>.


FreeBSD 5.2.1			 July 14, 2001			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
pmap_page_protect FreeBSD set physical page protection
pmap_protect FreeBSD set physical page protection
lbound IRIX Returns all the lower bounds or a specified lower bound of an array
pts OpenBSD Manage AFS protection database
mprotect FreeBSD control the protection of pages
mprotect OpenBSD control the protection of pages
mprotect NetBSD control the protection of pages
mprotect IRIX set protection of memory mapping
fbtab OpenBSD change device protection upon login
fbtab FreeBSD change device protection upon login
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service