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

Function auxiliary_dev_iterate

dpdk/drivers/bus/auxiliary/auxiliary_params.c:43–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void *
44auxiliary_dev_iterate(const void *start,
45 const char *str,
46 const struct rte_dev_iterator *it __rte_unused)
47{
48 rte_bus_find_device_t find_device;
49 struct rte_kvargs *kvargs = NULL;
50 struct rte_device *dev;
51
52 if (str != NULL) {
53 kvargs = rte_kvargs_parse(str, auxiliary_params_keys);
54 if (kvargs == NULL) {
55 AUXILIARY_LOG(ERR, "cannot parse argument list %s",
56 str);
57 rte_errno = EINVAL;
58 return NULL;
59 }
60 }
61 find_device = auxiliary_bus.bus.find_device;
62 dev = find_device(start, auxiliary_dev_match, kvargs);
63 rte_kvargs_free(kvargs);
64 return dev;
65}

Callers

nothing calls this directly

Calls 3

rte_kvargs_parseFunction · 0.85
find_deviceFunction · 0.85
rte_kvargs_freeFunction · 0.85

Tested by

no test coverage detected