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

# pmap\_mincore(9freebsd)

determine if a virtual address is resident in physical memory

## NAME

**pmap\_mincore** – determine if a virtual address is resident in physical memory

## SYNOPSIS

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

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

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

*int*\

**pmap\_mincore**(*pmap\_t pmap*, *vm\_offset\_t addr*);

## DESCRIPTION

The **pmap\_mincore**() function determines if the page at the virtual address *addr* in the physical map *pmap* is resident in physical memory. It is the machine-dependent interface used by the [mincore(2)](/mincore/2.md) system call.

## RETURN VALUES

If the page is resident in physical memory, a mask of flags is returned, whose meaning is documented in [mincore(2)](/mincore/2.md); otherwise, 0 is returned.

The *pmap* must exist and *addr* must be mapped into the *pmap*. If any error occurs, the machine-dependent implementation should return 0.

## SEE ALSO

[mincore(2)](/mincore/2.md), [pmap(9)](/pmap/9.md)

## AUTHORS

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