src/dpdk/lib/librte_eal/common/eal_common_devargs.c
unsigned int
rte_devargs_type_count(enum rte_devtype devtype)
{
	struct rte_devargs *devargs;
	unsigned int count = 0;

	TAILQ_FOREACH(devargs, &devargs_list, next) {
		if (devargs->type != devtype)
			continue;
		count++;
	}
	return count;
}
/* count the number of devices of a specified type */
count the number of devices of a specified type
count the number of devices of a specified type
unsigned int
rte_devargs_type_count(enum rte_devtype devtype)
{
	struct rte_devargs *devargs;
	unsigned int count = 0;
	TAILQ_FOREACH(devargs, &devargs_list, next) {
		if (devargs->type != devtype)
			continue;
		count++;
	}
	return count;
}
unsigned int rte_devargs_type_count ( enum rte_devtype devtype ) { struct rte_devargs * devargs ; unsigned int count = 0 ; TAILQ_FOREACH ( devargs , & devargs_list , next ) { if ( devargs -> type != devtype ) continue ; count ++ ; } return count ; }
count the number of devices of a specified type
count the number of devices of a specified type