---
name: "pmap_page_protect"
section: "9"
platform: "linux"
package: "freebsd-manpages"
version: "6.0-5"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/pmap_page_protect"
---

# pmap\_page\_protect(9)

set physical page protection

## NAME

**pmap\_page\_protect**, **pmap\_protect** – set physical page protection

## SYNOPSIS

**#include \<sys/param.h\>**

**#include \<vm/vm.h\>**

**#include \<vm/pmap.h\>**

*void*\

**pmap\_page\_protect**(*vm\_page\_t m*, *vm\_prot\_t prot*);

*void*\

**pmap\_protect**(*pmap\_t pmap*, *vm\_offset\_t sva*, *vm\_offset\_t eva*, *vm\_prot\_t pr*);

## DESCRIPTION

The **pmap\_page\_protect**() function lowers the physical page permissions to *prot* for all mappings of a given page *m*.

The **pmap\_protect**() function sets the physical page permissions to *prot* for all physical pages in the physical map *pmap* in the virtual address range between *sva* and *eva*.

## SEE ALSO

[pmap(9)](/pmap/9.md)

## AUTHORS

This manual page was written by Bruce M Simpson ⟨bms@spc.org⟩.
