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

Function pci_addr_kv_cmp

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

Source from the content-addressed store, hash-verified

26};
27
28static int
29pci_addr_kv_cmp(const char *key __rte_unused,
30 const char *value,
31 void *_addr2)
32{
33 struct rte_pci_addr _addr1;
34 struct rte_pci_addr *addr1 = &_addr1;
35 struct rte_pci_addr *addr2 = _addr2;
36
37 if (rte_pci_addr_parse(value, addr1))
38 return -1;
39 return -abs(rte_pci_addr_cmp(addr1, addr2));
40}
41
42static int
43pci_dev_match(const struct rte_device *dev,

Callers

nothing calls this directly

Calls 3

rte_pci_addr_parseFunction · 0.85
absFunction · 0.85
rte_pci_addr_cmpFunction · 0.85

Tested by

no test coverage detected