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

Function device_release_driver

dpdk/drivers/bus/platform/platform.c:510–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510static void
511device_release_driver(struct rte_platform_device *pdev)
512{
513 struct rte_platform_driver *pdrv;
514 int ret;
515
516 pdrv = pdev->driver;
517 if (pdrv != NULL && pdrv->remove != NULL) {
518 ret = pdrv->remove(pdev);
519 if (ret)
520 PLATFORM_LOG(WARNING, "failed to remove %s\n", pdev->name);
521 }
522
523 pdev->device.driver = NULL;
524 pdev->driver = NULL;
525}
526
527static int
528platform_bus_unplug(struct rte_device *dev)

Callers 1

platform_bus_unplugFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected