---
name: "pmap_wired_count"
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_wired_count"
---

# pmap\_wired\_count(9)

return page resident and wiring statistics

## NAME

**pmap\_resident\_count**, **pmap\_wired\_count** – return page resident and wiring statistics

## SYNOPSIS

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

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

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

*long*\

**pmap\_resident\_count**(*pmap\_t pmap*);

*long*\

**pmap\_wired\_count**(*pmap\_t pmap*);

## DESCRIPTION

The **pmap\_resident\_count**() and **pmap\_wired\_count**() macros allow **pmap** consumers to retrieve statistics from the *pm\_stats* member of the machine-dependent structure *struct* *pmap*.

## IMPLEMENTATION NOTES

Both functions are defined as in-line macros. The members which they access have type *long*.

## RETURN VALUES

The **pmap\_resident\_count**() returns the number of pages in the physical map *pmap* which are currently resident in main memory.

The **pmap\_wired\_count**() returns the number of pages in the physical map *pmap* which are currently wired into in main memory.

## SEE ALSO

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

## AUTHORS

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