Private functions */
| 22 | |
| 23 | /* Private functions */ |
| 24 | static struct graph * |
| 25 | graph_from_id(rte_graph_t id) |
| 26 | { |
| 27 | struct graph *graph; |
| 28 | STAILQ_FOREACH(graph, &graph_list, next) { |
| 29 | if (graph->id == id) |
| 30 | return graph; |
| 31 | } |
| 32 | rte_errno = EINVAL; |
| 33 | return NULL; |
| 34 | } |
| 35 | |
| 36 | static rte_graph_t |
| 37 | graph_next_free_id(void) |
no outgoing calls
no test coverage detected