src/dpdk/lib/librte_bbdev/rte_bbdev.c
static uint16_t
find_free_dev_id(void)
{
	uint16_t i;
	for (i = 0; i < RTE_BBDEV_MAX_DEVS; i++) {
		if (rte_bbdev_devices[i].state == RTE_BBDEV_UNUSED)
			return i;
	}
	return RTE_BBDEV_MAX_DEVS;
}
/* Find lowest device id with no attached device */
Find lowest device id with no attached device
Find lowest device id with no attached device
static uint16_t
find_free_dev_id(void)
{
	uint16_t i;
	for (i = 0; i < RTE_BBDEV_MAX_DEVS; i++) {
		if (rte_bbdev_devices[i].state == RTE_BBDEV_UNUSED)
			return i;
	}
	return RTE_BBDEV_MAX_DEVS;
}
static uint16_t find_free_dev_id ( void ) { uint16_t i ; for ( i = 0 ; i < RTE_BBDEV_MAX_DEVS ; i ++ ) { if ( rte_bbdev_devices [ i ] . state == RTE_BBDEV_UNUSED ) return i ; } return RTE_BBDEV_MAX_DEVS ; }
Find lowest device id with no attached device
Find lowest device id with no attached device