sys/amd64/amd64/pmap.c
/*
 *	pmap_is_referenced:
 *
 *	Return whether or not the specified physical page was referenced
 *	in any physical maps.
 */
Return whether or not the specified physical page was referenced
in any physical maps.
Return whether or not the specified physical page was referenced in any physical maps .
boolean_t
pmap_is_referenced(vm_page_t m)
{
	boolean_t rv;
	KASSERT((m->oflags & VPO_UNMANAGED) == 0,
	    ("pmap_is_referenced: page %p is not managed", m));
	rw_wlock(&pvh_global_lock);
	rv = pmap_is_referenced_pvh(&m->md) ||
	    ((m->flags & PG_FICTITIOUS) == 0 &&
	    pmap_is_referenced_pvh(pa_to_pvh(VM_PAGE_TO_PHYS(m))));
	rw_wunlock(&pvh_global_lock);
	return (rv);
}
boolean_t pmap_is_referenced ( vm_page_t m ) { boolean_t rv ; KASSERT ( ( m -> oflags & VPO_UNMANAGED ) == 0 , ( " " , m ) ) ; rw_wlock ( & pvh_global_lock ) ; rv = pmap_is_referenced_pvh ( & m -> md ) || ( ( m -> flags & PG_FICTITIOUS ) == 0 && pmap_is_referenced_pvh ( pa_to_pvh ( VM_PAGE_TO_PHYS ( m ) ) ) ) ; rw_wunlock ( & pvh_global_lock ) ; return ( rv ) ; }
pmap_is_referenced:
      Return whether or not the specified physical page was referenced
      in any physical maps.
pmap_is_referenced : Return whether or not the specified physical page was referenced in any physical maps .