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

Function rte_pci_dev_iterate

dpdk/drivers/bus/pci/pci_params.c:61–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void *
62rte_pci_dev_iterate(const void *start,
63 const char *str,
64 const struct rte_dev_iterator *it __rte_unused)
65{
66 rte_bus_find_device_t find_device;
67 struct rte_kvargs *kvargs = NULL;
68 struct rte_device *dev;
69
70 if (str != NULL) {
71 kvargs = rte_kvargs_parse(str, pci_params_keys);
72 if (kvargs == NULL) {
73 RTE_LOG(ERR, EAL, "cannot parse argument list\n");
74 rte_errno = EINVAL;
75 return NULL;
76 }
77 }
78 find_device = rte_pci_bus.bus.find_device;
79 dev = find_device(start, pci_dev_match, kvargs);
80 rte_kvargs_free(kvargs);
81 return dev;
82}
83
84int
85rte_pci_devargs_parse(struct rte_devargs *da)

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