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

Function platform_bus_probe

dpdk/drivers/bus/platform/platform.c:456–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456static int
457platform_bus_probe(void)
458{
459 struct rte_platform_device *pdev;
460 int ret;
461
462 FOREACH_DEVICE_ON_PLATFORM_BUS(pdev) {
463 ret = device_attach(pdev);
464 if (ret == -EBUSY) {
465 PLATFORM_LOG(DEBUG, "device %s already probed\n", pdev->name);
466 continue;
467 }
468 if (ret)
469 PLATFORM_LOG(ERR, "failed to probe %s\n", pdev->name);
470 }
471
472 return 0;
473}
474
475static struct rte_device *
476platform_bus_find_device(const struct rte_device *start, rte_dev_cmp_t cmp, const void *data)

Callers

nothing calls this directly

Calls 1

device_attachFunction · 0.70

Tested by

no test coverage detected