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

Function rte_devargs_remove

dpdk/lib/eal/common/eal_common_devargs.c:359–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359int
360rte_devargs_remove(struct rte_devargs *devargs)
361{
362 struct rte_devargs *d;
363 void *tmp;
364
365 if (devargs == NULL || devargs->bus == NULL)
366 return -1;
367
368 RTE_TAILQ_FOREACH_SAFE(d, &devargs_list, next, tmp) {
369 if (strcmp(d->bus->name, devargs->bus->name) == 0 &&
370 strcmp(d->name, devargs->name) == 0) {
371 TAILQ_REMOVE(&devargs_list, d, next);
372 rte_devargs_reset(d);
373 free(d);
374 return 0;
375 }
376 }
377 return 1;
378}
379
380/* count the number of devices of a specified type */
381unsigned int

Callers 12

local_dev_probeFunction · 0.85
pci_unplugFunction · 0.85
pci_scan_oneFunction · 0.85
cdx_unplugFunction · 0.85
auxiliary_unplugFunction · 0.85
auxiliary_scan_oneFunction · 0.85
ifpga_cleanupFunction · 0.85
ifpga_unplugFunction · 0.85
dev_addFunction · 0.85
platform_bus_unplugFunction · 0.85
rte_vdev_initFunction · 0.85
rte_vdev_uninitFunction · 0.85

Calls 3

strcmpFunction · 0.85
rte_devargs_resetFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected