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

Function get_next_node

dpdk/lib/bpf/bpf_validate.c:1794–1807  ·  view source on GitHub ↗

* helper function, used to walk through constructed CFG. */

Source from the content-addressed store, hash-verified

1792 * helper function, used to walk through constructed CFG.
1793 */
1794static struct inst_node *
1795get_next_node(struct bpf_verifier *bvf, struct inst_node *node)
1796{
1797 uint32_t ce, ne, dst;
1798
1799 ne = node->nb_edge;
1800 ce = node->cur_edge;
1801 if (ce == ne)
1802 return NULL;
1803
1804 node->cur_edge++;
1805 dst = node->edge_dest[ce];
1806 return bvf->in + dst;
1807}
1808
1809static void
1810set_node_colour(struct bpf_verifier *bvf, struct inst_node *node,

Callers 2

dfsFunction · 0.85
evaluateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected