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

Function vdev_parse

dpdk/drivers/bus/vdev/vdev.c:115–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115static int
116vdev_parse(const char *name, void *addr)
117{
118 struct rte_vdev_driver **out = addr;
119 struct rte_vdev_driver *driver = NULL;
120
121 TAILQ_FOREACH(driver, &vdev_driver_list, next) {
122 if (strncmp(driver->driver.name, name,
123 strlen(driver->driver.name)) == 0)
124 break;
125 if (driver->driver.alias &&
126 strncmp(driver->driver.alias, name,
127 strlen(driver->driver.alias)) == 0)
128 break;
129 }
130 if (driver != NULL &&
131 addr != NULL)
132 *out = driver;
133 return driver == NULL;
134}
135
136static int
137vdev_dma_map(struct rte_device *dev, void *addr, uint64_t iova, size_t len)

Callers 2

vdev_probe_all_driversFunction · 0.85
vdev_get_iommu_classFunction · 0.85

Calls 1

strncmpFunction · 0.85

Tested by

no test coverage detected