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

Function node_has_duplicate_entry

dpdk/lib/graph/node.c:41–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41static bool
42node_has_duplicate_entry(const char *name)
43{
44 struct node *node;
45
46 /* Is duplicate name registered */
47 STAILQ_FOREACH(node, &node_list, next) {
48 if (strncmp(node->name, name, RTE_NODE_NAMESIZE) == 0) {
49 rte_errno = EEXIST;
50 return 1;
51 }
52 }
53 return 0;
54}
55
56/* Public functions */
57rte_node_t

Callers 1

__rte_node_registerFunction · 0.85

Calls 1

strncmpFunction · 0.85

Tested by

no test coverage detected