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

Function graph_next_free_id

dpdk/lib/graph/graph.c:36–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36static rte_graph_t
37graph_next_free_id(void)
38{
39 struct graph *graph;
40 rte_graph_t id = 0;
41
42 STAILQ_FOREACH(graph, &graph_list, next) {
43 if (id < graph->id)
44 break;
45 id = graph->id + 1;
46 }
47
48 return id;
49}
50
51static void
52graph_insert_ordered(struct graph *graph)

Callers 2

rte_graph_createFunction · 0.85
graph_cloneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected