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

# pmap\_remove(9)

remove pages from a physical map

## NAME

**pmap\_remove**, **pmap\_remove\_all**, **pmap\_remove\_pages** – remove pages from a physical map

## SYNOPSIS

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

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

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

*void*\

**pmap\_remove**(*pmap\_t pmap*, *vm\_offset\_t sva*, *vm\_offset\_t eva*);

*void*\

**pmap\_remove\_all**(*vm\_page\_t m*);

*void*\

**pmap\_remove\_pages**(*pmap\_t pmap*, *vm\_offset\_t sva*, *vm\_offset\_t eva*);

## DESCRIPTION

The **pmap\_remove**() function removes the range of addresses between *sva* and *eva* from the physical map *pmap*. If *eva* is less than *sva*, then the result is undefined. It is assumed that both *sva* and *eva* are page-aligned addresses.

The **pmap\_remove\_all**() removes the physical page *m* from all physical maps in which it resides, and reflects back the modify bits to the appropriate pager.

The **pmap\_remove\_pages**() function removes all pages from the physical map *pmap*, within the range of physical addresses bounded by *sva* and *eva*. This function is called when a process exits to run down its address space more quickly than would be the case for calling **pmap\_remove**().

## SEE ALSO

**pmap**(*9*)

## AUTHORS

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