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

Function rte_graph_from_name

dpdk/lib/graph/graph.c:616–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616rte_graph_t
617rte_graph_from_name(const char *name)
618{
619 struct graph *graph;
620
621 STAILQ_FOREACH(graph, &graph_list, next)
622 if (strncmp(graph->name, name, RTE_GRAPH_NAMESIZE) == 0)
623 return graph->id;
624
625 return RTE_GRAPH_ID_INVALID;
626}
627
628char *
629rte_graph_id_to_name(rte_graph_t id)

Callers 4

graph_cloneFunction · 0.85
test_graph_cloneFunction · 0.85
graph_teardownFunction · 0.85
mainFunction · 0.85

Calls 1

strncmpFunction · 0.85

Tested by 2

test_graph_cloneFunction · 0.68
graph_teardownFunction · 0.68