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

# vm\_page\_wire(9)

wire and unwire pages

## NAME

**vm\_page\_wire**, **vm\_page\_unwire** – wire and unwire pages

## SYNOPSIS

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

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

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

*void*\

**vm\_page\_wire**(*vm\_page\_t m*);

*void*\

**vm\_page\_unwire**(*vm\_page\_t m*, *int activate*);

## DESCRIPTION

The **vm\_page\_wire**() function increments the wire count on a page, and removes it from whatever queue it is on.

The **vm\_page\_unwire**() function releases one of the wirings on the page. When *write\_count* reaches zero the page is placed back onto either the active queue (if *activate* is non-zero) or onto the inactive queue (if *activate* is zero). If the page is unmanaged (PG\_UNMANAGED is set) then the page is left on PQ\_NONE.

## AUTHORS

This manual page was written by Chad David ⟨davidc@acns.ab.ca⟩.
