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

Function find_vdev

dpdk/drivers/bus/vdev/vdev.c:217–233  ·  view source on GitHub ↗

The caller shall be responsible for thread-safe */

Source from the content-addressed store, hash-verified

215
216/* The caller shall be responsible for thread-safe */
217static struct rte_vdev_device *
218find_vdev(const char *name)
219{
220 struct rte_vdev_device *dev;
221
222 if (!name)
223 return NULL;
224
225 TAILQ_FOREACH(dev, &vdev_device_list, next) {
226 const char *devname = rte_vdev_device_name(dev);
227
228 if (!strcmp(devname, name))
229 return dev;
230 }
231
232 return NULL;
233}
234
235static struct rte_devargs *
236alloc_devargs(const char *name, const char *args)

Callers 3

insert_vdevFunction · 0.70
rte_vdev_uninitFunction · 0.70
vdev_scanFunction · 0.70

Calls 2

rte_vdev_device_nameFunction · 0.85
strcmpFunction · 0.85

Tested by

no test coverage detected