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

Function rte_stack_free_count

dpdk/lib/stack/rte_stack.h:171–177  ·  view source on GitHub ↗

* Return the number of free entries in a stack. * * @param s * A pointer to the stack structure. * @return * The number of free entries in the stack. */

Source from the content-addressed store, hash-verified

169 * The number of free entries in the stack.
170 */
171static __rte_always_inline unsigned int
172rte_stack_free_count(struct rte_stack *s)
173{
174 RTE_ASSERT(s != NULL);
175
176 return s->capacity - rte_stack_count(s);
177}
178
179/**
180 * Create a new stack named *name* in memory.

Callers 2

test_stack_push_popFunction · 0.85
test_stack_basicFunction · 0.85

Calls 1

rte_stack_countFunction · 0.85

Tested by 2

test_stack_push_popFunction · 0.68
test_stack_basicFunction · 0.68