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

Function RTE_EAL_DEVARGS_FOREACH

dpdk/app/test/process.h:46–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 int count = 0;
45
46 RTE_EAL_DEVARGS_FOREACH(NULL, devargs) {
47 if (strlen(devargs->name) == 0)
48 continue;
49
50 if (devargs->data == NULL || strlen(devargs->data) == 0) {
51 if (asprintf(&argv[count], PREFIX_ALLOW"%s", devargs->name) < 0)
52 break;
53 } else {
54 if (asprintf(&argv[count], PREFIX_ALLOW"%s,%s",
55 devargs->name, devargs->data) < 0)
56 break;
57 }
58
59 if (++count == max_capacity)
60 break;
61 }
62
63 return count;
64}

Callers 12

devargs_already_listedFunction · 0.85
search_devargsFunction · 0.85
pci_devargs_lookupFunction · 0.85
cdx_devargs_lookupFunction · 0.85
auxiliary_devargs_lookupFunction · 0.85
ifpga_scanFunction · 0.85
fslmc_devargs_lookupFunction · 0.85
dev_devargsFunction · 0.85
vmbus_devargs_lookupFunction · 0.85
vdev_scanFunction · 0.85
dpaa_devargs_lookupFunction · 0.85

Calls 1

asprintfFunction · 0.85

Tested by

no test coverage detected