* pmap_is_referenced: * * Return whether or not the specified physical page was referenced * in any physical maps. */
| 5392 | * in any physical maps. |
| 5393 | */ |
| 5394 | boolean_t |
| 5395 | pmap_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. |
nothing calls this directly
no test coverage detected