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

Function platform_bus_plug

dpdk/drivers/bus/platform/platform.c:492–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492static int
493platform_bus_plug(struct rte_device *dev)
494{
495 struct rte_platform_device *pdev;
496
497 if (!dev_allowed(dev->name))
498 return -EPERM;
499
500 if (!dev_is_bound_vfio_platform(dev->name))
501 return -EPERM;
502
503 pdev = RTE_DEV_TO_PLATFORM_DEV(dev);
504 if (pdev == NULL)
505 return -EINVAL;
506
507 return device_attach(pdev);
508}
509
510static void
511device_release_driver(struct rte_platform_device *pdev)

Callers

nothing calls this directly

Calls 3

dev_allowedFunction · 0.85
device_attachFunction · 0.70

Tested by

no test coverage detected