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

Function platform_bus_unplug

dpdk/drivers/bus/platform/platform.c:527–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525}
526
527static int
528platform_bus_unplug(struct rte_device *dev)
529{
530 struct rte_platform_device *pdev;
531
532 pdev = RTE_DEV_TO_PLATFORM_DEV(dev);
533 if (pdev == NULL)
534 return -EINVAL;
535
536 device_release_driver(pdev);
537 device_cleanup(pdev);
538 rte_devargs_remove(pdev->device.devargs);
539 free(pdev);
540
541 return 0;
542}
543
544static int
545platform_bus_parse(const char *name, void *addr)

Callers 1

platform_bus_cleanupFunction · 0.85

Calls 4

device_release_driverFunction · 0.85
device_cleanupFunction · 0.85
rte_devargs_removeFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected