FreeBSD/sys/dev/bhnd/bhndb/bhndb.c
/* ascending core index comparison used by bhndb_find_hostb_device() */
ascending core index comparison used by bhndb_find_hostb_device()
ascending core index comparison used by bhndb_find_hostb_device ()
static int
compare_core_index(const void *lhs, const void *rhs)
{
	u_int left = bhnd_get_core_index(*(const device_t *) lhs);
	u_int right = bhnd_get_core_index(*(const device_t *) rhs);
	if (left < right)
		return (-1);
	else if (left > right)
		return (1);
	else
		return (0);
}
static int compare_core_index ( const void * lhs , const void * rhs ) { u_int left = bhnd_get_core_index ( * ( const device_t * ) lhs ) ; u_int right = bhnd_get_core_index ( * ( const device_t * ) rhs ) ; if ( left < right ) return ( -1 ) ; else if ( left > right ) return ( 1 ) ; else return ( 0 ) ; }
ascending core index comparison used by bhndb_find_hostb_device()
ascending core index comparison used by bhndb_find_hostb_device ()