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

Function pmap_ts_referenced

freebsd/mips/mips/pmap.c:3004–3017  ·  view source on GitHub ↗

* pmap_ts_referenced: * * Return the count of reference bits for a page, clearing all of them. */

Source from the content-addressed store, hash-verified

3002 * Return the count of reference bits for a page, clearing all of them.
3003 */
3004int
3005pmap_ts_referenced(vm_page_t m)
3006{
3007
3008 KASSERT((m->oflags & VPO_UNMANAGED) == 0,
3009 ("pmap_ts_referenced: page %p is not managed", m));
3010 if (m->md.pv_flags & PV_TABLE_REF) {
3011 rw_wlock(&pvh_global_lock);
3012 m->md.pv_flags &= ~PV_TABLE_REF;
3013 rw_wunlock(&pvh_global_lock);
3014 return (1);
3015 }
3016 return (0);
3017}
3018
3019/*
3020 * pmap_is_modified:

Callers 3

vm_pageout_launderFunction · 0.50
vm_pageout_scan_activeFunction · 0.50
vm_pageout_scan_inactiveFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected