src/dpdk/drivers/bus/vmbus/vmbus_common.c
int
rte_vmbus_probe(void)
{
	struct rte_vmbus_device *dev;
	size_t probed = 0, failed = 0;
	char ubuf[RTE_UUID_STRLEN];

	FOREACH_DEVICE_ON_VMBUS(dev) {
		probed++;

		rte_uuid_unparse(dev->device_id, ubuf, sizeof(ubuf));

		/* TODO: add allowlist/blocklist */

		if (vmbus_probe_all_drivers(dev) < 0) {
			VMBUS_LOG(NOTICE,
				"Requested device %s cannot be used", ubuf);
			rte_errno = errno;
			failed++;
		}
	}

	return (probed && probed == failed) ? -1 : 0;
}
/*
 * Scan the vmbus, and call the devinit() function for
 * all registered drivers that have a matching entry in its id_table
 * for discovered devices.
 */
Scan the vmbus, and call the devinit() function for
all registered drivers that have a matching entry in its id_table
for discovered devices.
Scan the vmbus and call the devinit () function for all registered drivers that have a matching entry in its id_table for discovered devices .
int
rte_vmbus_probe(void)
{
	struct rte_vmbus_device *dev;
	size_t probed = 0, failed = 0;
	char ubuf[RTE_UUID_STRLEN];
	FOREACH_DEVICE_ON_VMBUS(dev) {
		probed++;
		rte_uuid_unparse(dev->device_id, ubuf, sizeof(ubuf));
		if (vmbus_probe_all_drivers(dev) < 0) {
			VMBUS_LOG(NOTICE,
				"Requested device %s cannot be used", ubuf);
			rte_errno = errno;
			failed++;
		}
	}
	return (probed && probed == failed) ? -1 : 0;
}
int rte_vmbus_probe ( void ) { struct rte_vmbus_device * dev ; size_t probed = 0 , failed = 0 ; char ubuf [ RTE_UUID_STRLEN ] ; FOREACH_DEVICE_ON_VMBUS ( dev ) { probed ++ ; rte_uuid_unparse ( dev -> device_id , ubuf , sizeof ( ubuf ) ) ; if ( vmbus_probe_all_drivers ( dev ) < 0 ) { VMBUS_LOG ( NOTICE , " " , ubuf ) ; rte_errno = errno ; failed ++ ; } } return ( probed && probed == failed ) ? -1 : 0 ; }
Scan the vmbus, and call the devinit() function for
 all registered drivers that have a matching entry in its id_table
 for discovered devices.
Scan the vmbus and call the devinit () function for all registered drivers that have a matching entry in its id_table for discovered devices .
/* TODO: add allowlist/blocklist */