FreeBSD/sys/arm/arm/pmap-v4.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)
{
	pv_entry_t pv;
	int count;
	count = 0;
	if ((m->oflags & VPO_UNMANAGED) != 0)
		return (count);
	rw_wlock(&pvh_global_lock);
	TAILQ_FOREACH(pv, &m->md.pv_list, pv_list)
		if ((pv->pv_flags & PVF_WIRED) != 0)
			count++;
	rw_wunlock(&pvh_global_lock);
	return (count);
}
int pmap_page_wired_mappings ( vm_page_t m ) { pv_entry_t pv ; int count ; count = 0 ; if ( ( m -> oflags & VPO_UNMANAGED ) != 0 ) return ( count ) ; rw_wlock ( & pvh_global_lock ) ; TAILQ_FOREACH ( pv , & m -> md . pv_list , pv_list ) if ( ( pv -> pv_flags & PVF_WIRED ) != 0 ) 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 .