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

Function set_node_colour

dpdk/lib/bpf/bpf_validate.c:1809–1820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1807}
1808
1809static void
1810set_node_colour(struct bpf_verifier *bvf, struct inst_node *node,
1811 uint32_t new)
1812{
1813 uint32_t prev;
1814
1815 prev = node->colour;
1816 node->colour = new;
1817
1818 bvf->node_colour[prev]--;
1819 bvf->node_colour[new]++;
1820}
1821
1822/*
1823 * helper function, add new edge between two nodes.

Callers 1

dfsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected