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

Function cdx_unplug

dpdk/drivers/bus/cdx/cdx.c:566–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566static int
567cdx_unplug(struct rte_device *dev)
568{
569 struct rte_cdx_device *cdx_dev;
570 int ret;
571
572 cdx_dev = RTE_DEV_TO_CDX_DEV(dev);
573 ret = cdx_detach_dev(cdx_dev);
574 if (ret == 0) {
575 cdx_remove_device(cdx_dev);
576 rte_devargs_remove(dev->devargs);
577 free(cdx_dev);
578 }
579 return ret;
580}
581
582static int
583cdx_dma_map(struct rte_device *dev, void *addr, uint64_t iova, size_t len)

Callers

nothing calls this directly

Calls 4

cdx_detach_devFunction · 0.85
cdx_remove_deviceFunction · 0.85
rte_devargs_removeFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected