---
name: "pmap_qremove"
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_qremove"
---

# pmap\_qremove(9)

manage temporary kernel space mappings

## NAME

**pmap\_qenter**, **pmap\_qremove** – manage temporary kernel space mappings

## SYNOPSIS

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

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

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

*void*\

**pmap\_qenter**(*vm\_offset\_t sva*, *vm\_page\_t \*m*, *int count*);

*void*\

**pmap\_qremove**(*vm\_offset\_t sva*, *int count*);

## DESCRIPTION

The **pmap\_qenter**() function accepts a linear array of *count* pointers to wired pages *\*m*, and enters each of these pages into the kernel virtual address (KVA) space, beginning at the address *sva*.

The **pmap\_qremove**() function tears out a mapping from the kernel virtual address space, beginning at *sva* and for *count* pages.

## IMPLEMENTATION NOTES

The **pmap\_qenter**() function is intended for temporary mappings that do not require page modification or reference counting. Old mappings are simply overwritten. The pages *must* be wired into physical memory.

The corresponding **pmap\_qremove**() function is intended to remove such temporary mappings.

## SEE ALSO

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

## AUTHORS

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