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

Function graph_node_id_to_ptr

dpdk/lib/graph/graph_populate.c:109–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109struct rte_node *
110graph_node_id_to_ptr(const struct rte_graph *graph, rte_node_t id)
111{
112 rte_node_t count;
113 rte_graph_off_t off;
114 struct rte_node *node;
115
116 rte_graph_foreach_node(count, off, graph, node)
117 if (unlikely(node->id == id))
118 return node;
119
120 return NULL;
121}
122
123struct rte_node *
124graph_node_name_to_ptr(const struct rte_graph *graph, const char *name)

Callers 1

stats_mem_populateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected