FreeBSD/sys/powerpc/aim/mmu_oea.c
/*
 * 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
moea_page_wired_mappings(mmu_t mmu, vm_page_t m)
{
	struct pvo_entry *pvo;
	int count;
	count = 0;
	if ((m->oflags & VPO_UNMANAGED) != 0)
		return (count);
	rw_wlock(&pvh_global_lock);
	LIST_FOREACH(pvo, vm_page_to_pvoh(m), pvo_vlink)
		if ((pvo->pvo_vaddr & PVO_WIRED) != 0)
			count++;
	rw_wunlock(&pvh_global_lock);
	return (count);
}
int moea_page_wired_mappings ( mmu_t mmu , vm_page_t m ) { struct pvo_entry * pvo ; int count ; count = 0 ; if ( ( m -> oflags & VPO_UNMANAGED ) != 0 ) return ( count ) ; rw_wlock ( & pvh_global_lock ) ; LIST_FOREACH ( pvo , vm_page_to_pvoh ( m ) , pvo_vlink ) if ( ( pvo -> pvo_vaddr & PVO_WIRED ) != 0 ) count ++ ; rw_wunlock ( & pvh_global_lock ) ; return ( count ) ; }
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 .