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

Function cdx_dev_iterate

dpdk/drivers/bus/cdx/cdx.c:629–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627}
628
629static void *
630cdx_dev_iterate(const void *start,
631 const char *str,
632 const struct rte_dev_iterator *it __rte_unused)
633{
634 rte_bus_find_device_t find_device;
635 struct rte_kvargs *kvargs = NULL;
636 struct rte_device *dev;
637
638 if (str != NULL) {
639 kvargs = rte_kvargs_parse(str, cdx_params_keys);
640 if (kvargs == NULL) {
641 CDX_BUS_ERR("cannot parse argument list %s", str);
642 rte_errno = EINVAL;
643 return NULL;
644 }
645 }
646 find_device = rte_cdx_bus.bus.find_device;
647 dev = find_device(start, cdx_dev_match, kvargs);
648 rte_kvargs_free(kvargs);
649 return dev;
650}
651
652struct rte_cdx_bus rte_cdx_bus = {
653 .bus = {

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