src/dpdk/drivers/bus/vmbus/vmbus_common.c
static int
vmbus_probe_all_drivers(struct rte_vmbus_device *dev)
{
	struct rte_vmbus_driver *dr;
	int rc;

	/* Check if a driver is already loaded */
	if (rte_dev_is_probed(&dev->device)) {
		VMBUS_LOG(DEBUG, "VMBUS driver already loaded");
		return 0;
	}

	FOREACH_DRIVER_ON_VMBUS(dr) {
		rc = vmbus_probe_one_driver(dr, dev);
		if (rc < 0) /* negative is an error */
			return -1;

		if (rc > 0) /* positive driver doesn't support it */
			continue;

		return 0;
	}
	return 1;
}
/*
 * If device class GUID matches, call the probe function of
 * registere drivers for the vmbus device.
 * Return -1 if initialization failed,
 * and 1 if no driver found for this device.
 */
If device class GUID matches, call the probe function of
registere drivers for the vmbus device.
Return -1 if initialization failed,
and 1 if no driver found for this device.
If device class GUID matches call the probe function of registere drivers for the vmbus device . Return - 1 if initialization failed and 1 if no driver found for this device .
static int
vmbus_probe_all_drivers(struct rte_vmbus_device *dev)
{
	struct rte_vmbus_driver *dr;
	int rc;
	if (rte_dev_is_probed(&dev->device)) {
		VMBUS_LOG(DEBUG, "VMBUS driver already loaded");
		return 0;
	}
	FOREACH_DRIVER_ON_VMBUS(dr) {
		rc = vmbus_probe_one_driver(dr, dev);
		if (rc < 0) 
			return -1;
		if (rc > 0) 
			continue;
		return 0;
	}
	return 1;
}
static int vmbus_probe_all_drivers ( struct rte_vmbus_device * dev ) { struct rte_vmbus_driver * dr ; int rc ; if ( rte_dev_is_probed ( & dev -> device ) ) { VMBUS_LOG ( DEBUG , " " ) ; return 0 ; } FOREACH_DRIVER_ON_VMBUS ( dr ) { rc = vmbus_probe_one_driver ( dr , dev ) ; if ( rc < 0 ) return -1 ; if ( rc > 0 ) continue ; return 0 ; } return 1 ; }
If device class GUID matches, call the probe function of
 registere drivers for the vmbus device.
If device class GUID matches call the probe function of registere drivers for the vmbus device .
/* Check if a driver is already loaded */ /* negative is an error */ /* positive driver doesn't support it */