* helper functions get/free eval states. */
| 2105 | * helper functions get/free eval states. |
| 2106 | */ |
| 2107 | static struct bpf_eval_state * |
| 2108 | pull_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 | |
| 2120 | static void |
| 2121 | push_eval_state(struct evst_pool *pool) |
no outgoing calls
no test coverage detected