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

Function graph_cleanup

dpdk/lib/graph/graph.c:214–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214static void
215graph_cleanup(struct graph *graph)
216{
217 struct graph_node *graph_node;
218
219 while (!STAILQ_EMPTY(&graph->node_list)) {
220 graph_node = STAILQ_FIRST(&graph->node_list);
221 STAILQ_REMOVE_HEAD(&graph->node_list, next);
222 free(graph_node);
223 }
224}
225
226static int
227graph_node_init(struct graph *graph)

Callers 3

rte_graph_createFunction · 0.85
rte_graph_destroyFunction · 0.85
graph_cloneFunction · 0.85

Calls 1

freeFunction · 0.50

Tested by

no test coverage detected