pmap_ts_referenced(9)

pmap_ts_referenced9

Return information about physical pages

Part of pmap_is_modified(9).

Usage

#include <sys/param.h>

#include <vm/vm.h>

#include <vm/pmap.h>

bool

pmap_is_modified(vm_page_t m);

int

pmap_ts_referenced(vm_page_t m);

Overview

The pmap_is_modified() and pmap_ts_referenced() functions return information about physical pages.

Return values

The pmap_is_modified() function returns the status of the “page modified” bit for the physical page m.

The pmap_ts_referenced() function returns a count of reference bits for a page m, clearing those bits. It is not necessary for every reference bit to be cleared, but it is necessary that 0 only be returned when there are no remaining reference bits set on the page.

Releases

25 releases since FreeBSD 11.0-RELEASE; the text changed 12 times.

  1. 11.0
  2. 11.1
  3. 11.2
  4. 11.3
  5. 11.4
  6. 12.0
  7. 12.1
  8. 12.2
  9. 12.3
  10. 12.4
  11. 13.0–13.2
  12. 13.3–14.5
  13. 15.0–16.0

Authors

This manual page was written by Bruce M Simpson ⟨[email protected]⟩.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.