FreeBSD/sys/arm/arm/pmap-v6.c
/*
 *  Conditionally create a pv entry.
 */
Conditionally create a pv entry.
Conditionally create a pv entry .
static boolean_t
pmap_try_insert_pv_entry(pmap_t pmap, vm_offset_t va, vm_page_t m)
{
	pv_entry_t pv;
	rw_assert(&pvh_global_lock, RA_WLOCKED);
	PMAP_LOCK_ASSERT(pmap, MA_OWNED);
	if (pv_entry_count < pv_entry_high_water &&
	    (pv = get_pv_entry(pmap, TRUE)) != NULL) {
		pv->pv_va = va;
		TAILQ_INSERT_TAIL(&m->md.pv_list, pv, pv_next);
		return (TRUE);
	} else
		return (FALSE);
}
static boolean_t pmap_try_insert_pv_entry ( pmap_t pmap , vm_offset_t va , vm_page_t m ) { pv_entry_t pv ; rw_assert ( & pvh_global_lock , RA_WLOCKED ) ; PMAP_LOCK_ASSERT ( pmap , MA_OWNED ) ; if ( pv_entry_count < pv_entry_high_water && ( pv = get_pv_entry ( pmap , TRUE ) ) != NULL ) { pv -> pv_va = va ; TAILQ_INSERT_TAIL ( & m -> md . pv_list , pv , pv_next ) ; return ( TRUE ) ; } else return ( FALSE ) ; }
Conditionally create a pv entry.
Conditionally create a pv entry .