---
name: "pmap_protect"
section: "9"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/pmap_protect"
---

# pmap\_protect(9)

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