MCPcopy Create free account
hub / github.com/F-Stack/f-stack / device_attach

Function device_attach

dpdk/drivers/bus/platform/platform.c:440–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440static int
441device_attach(struct rte_platform_device *pdev)
442{
443 struct rte_platform_driver *pdrv;
444
445 FOREACH_DRIVER_ON_PLATFORM_BUS(pdrv) {
446 if (driver_match_device(pdrv, pdev))
447 break;
448 }
449
450 if (pdrv == NULL)
451 return -ENODEV;
452
453 return driver_probe_device(pdrv, pdev);
454}
455
456static int
457platform_bus_probe(void)

Callers 2

platform_bus_probeFunction · 0.70
platform_bus_plugFunction · 0.70

Calls 2

driver_match_deviceFunction · 0.85
driver_probe_deviceFunction · 0.85

Tested by

no test coverage detected