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

Function pull_eval_state

dpdk/lib/bpf/bpf_validate.c:2107–2118  ·  view source on GitHub ↗

* helper functions get/free eval states. */

Source from the content-addressed store, hash-verified

2105 * helper functions get/free eval states.
2106 */
2107static struct bpf_eval_state *
2108pull_eval_state(struct evst_pool *pool)
2109{
2110 uint32_t n;
2111
2112 n = pool->cur;
2113 if (n == pool->num)
2114 return NULL;
2115
2116 pool->cur = n + 1;
2117 return pool->ent + n;
2118}
2119
2120static void
2121push_eval_state(struct evst_pool *pool)

Callers 3

evst_pool_initFunction · 0.85
save_start_eval_stateFunction · 0.85
save_cur_eval_stateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected