---
name: "pmap_wired_count"
section: "9"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/pmap_resident_count"
---

# pmap\_wired\_count(9)

return page resident and wiring statistics

Part of [pmap\_resident\_count(9)](/pmap_resident_count/9.md).

## 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*⟩.
