* pmap_ts_referenced: * * Return the count of reference bits for a page, clearing all of them. */
| 3002 | * Return the count of reference bits for a page, clearing all of them. |
| 3003 | */ |
| 3004 | int |
| 3005 | pmap_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: |
no outgoing calls
no test coverage detected