---
name: "pmap_protect"
section: "9freebsd"
platform: "linux"
package: "freebsd-manpages"
version: "12.2-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/pmap_protect/9freebsd"
---

# pmap\_protect(9freebsd)

set physical page protection

## NAME

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

## SYNOPSIS

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

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

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

*void*\

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

## DESCRIPTION

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*⟩.
