MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pmap_is_referenced

Function pmap_is_referenced

freebsd/arm64/arm64/pmap.c:5394–5401  ·  view source on GitHub ↗

* pmap_is_referenced: * * Return whether or not the specified physical page was referenced * in any physical maps. */

Source from the content-addressed store, hash-verified

5392 * in any physical maps.
5393 */
5394boolean_t
5395pmap_is_referenced(vm_page_t m)
5396{
5397
5398 KASSERT((m->oflags & VPO_UNMANAGED) == 0,
5399 ("pmap_is_referenced: page %p is not managed", m));
5400 return (pmap_page_test_mappings(m, TRUE, FALSE));
5401}
5402
5403/*
5404 * Clear the write and modified bits in each of the given page's mappings.

Callers

nothing calls this directly

Calls 1

pmap_page_test_mappingsFunction · 0.70

Tested by

no test coverage detected