---
name: "pmap_resident_count"
section: "9freebsd"
platform: "linux"
package: "freebsd-manpages"
version: "12.2-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/pmap_resident_count/9freebsd"
---

# pmap\_resident\_count(9freebsd)

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