FreeBSD/sys/x86/acpica/srat.c
/*
 * Returns true if a memory range overlaps with at least one range in
 * phys_avail[].
 */
Returns true if a memory range overlaps with at least one range in
phys_avail[].
Returns true if a memory range overlaps with at least one range in phys_avail [] .
static int
overlaps_phys_avail(vm_paddr_t start, vm_paddr_t end)
{
	int i;
	for (i = 0; phys_avail[i] != 0 && phys_avail[i + 1] != 0; i += 2) {
		if (phys_avail[i + 1] < start)
			continue;
		if (phys_avail[i] < end)
			return (1);
		break;
	}
	return (0);
}
static int overlaps_phys_avail ( vm_paddr_t start , vm_paddr_t end ) { int i ; for ( i = 0 ; phys_avail [ i ] != 0 && phys_avail [ i + 1 ] != 0 ; i += 2 ) { if ( phys_avail [ i + 1 ] < start ) continue ; if ( phys_avail [ i ] < end ) return ( 1 ) ; break ; } return ( 0 ) ; }
Returns true if a memory range overlaps with at least one range in
 phys_avail[].
Returns true if a memory range overlaps with at least one range in phys_avail [] .