---
name: "pmap_enter"
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_enter"
---

# pmap\_enter(9)

insert a virtual page into a physical map

## NAME

**pmap\_enter** – insert a virtual page into a physical map

## SYNOPSIS

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

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

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

*void*\

**pmap\_enter**(*pmap\_t pmap*, *vm\_offset\_t va*, *vm\_page\_t p*, *vm\_prot\_t prot*, *boolean\_t wired*);

## DESCRIPTION

The **pmap\_enter**() function inserts the given physical page *p*, into the physical map *pmap*, at the virtual address *va*, with the protection *prot*. If *wired* is TRUE, then increment the wired count for the page as soon as the mapping is inserted into *pmap*.

## IMPLEMENTATION NOTES

This routine MAY NOT lazy-evaluate the entry; it is required by specification to make the requested entry at the time it is called.

## SEE ALSO

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

## AUTHORS

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