FreeBSD/sys/i386/i386/i686_mem.c
/*
 * Look for an exactly-matching range.
 */
Look for an exactly-matching range.
Look for an exactly - matching range .
static struct mem_range_desc *
mem_range_match(struct mem_range_softc *sc, struct mem_range_desc *mrd)
{
	struct mem_range_desc *cand;
	int i;
	for (i = 0, cand = sc->mr_desc; i < sc->mr_ndesc; i++, cand++)
		if ((cand->mr_base == mrd->mr_base) &&
		    (cand->mr_len == mrd->mr_len))
			return (cand);
	return (NULL);
}
static struct mem_range_desc * mem_range_match ( struct mem_range_softc * sc , struct mem_range_desc * mrd ) { struct mem_range_desc * cand ; int i ; for ( i = 0 , cand = sc -> mr_desc ; i < sc -> mr_ndesc ; i ++ , cand ++ ) if ( ( cand -> mr_base == mrd -> mr_base ) && ( cand -> mr_len == mrd -> mr_len ) ) return ( cand ) ; return ( NULL ) ; }
Look for an exactly-matching range.
Look for an exactly - matching range .