FreeBSD/sys/arm/arm/pmap-v6.c
/*
 *	pmap_page_wired_mappings:
 *
 *	Return the number of managed mappings to the given physical page
 *	that are wired.
 */
Return the number of managed mappings to the given physical page
that are wired.
Return the number of managed mappings to the given physical page that are wired .
int
pmap_page_wired_mappings(vm_page_t m)
{
	int count;
	count = 0;
	if ((m->oflags & VPO_UNMANAGED) != 0)
		return (count);
	rw_wlock(&pvh_global_lock);
	count = pmap_pvh_wired_mappings(&m->md, count);
	if ((m->flags & PG_FICTITIOUS) == 0) {
		count = pmap_pvh_wired_mappings(pa_to_pvh(VM_PAGE_TO_PHYS(m)),
		    count);
	}
	rw_wunlock(&pvh_global_lock);
	return (count);
}
int pmap_page_wired_mappings ( vm_page_t m ) { int count ; count = 0 ; if ( ( m -> oflags & VPO_UNMANAGED ) != 0 ) return ( count ) ; rw_wlock ( & pvh_global_lock ) ; count = pmap_pvh_wired_mappings ( & m -> md , count ) ; if ( ( m -> flags & PG_FICTITIOUS ) == 0 ) { count = pmap_pvh_wired_mappings ( pa_to_pvh ( VM_PAGE_TO_PHYS ( m ) ) , count ) ; } rw_wunlock ( & pvh_global_lock ) ; return ( count ) ; }
pmap_page_wired_mappings:
      Return the number of managed mappings to the given physical page
      that are wired.
pmap_page_wired_mappings : Return the number of managed mappings to the given physical page that are wired .