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

Function rte_stack_count

dpdk/lib/stack/rte_stack.h:152–161  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

150 * The number of used entries in the stack.
151 */
152static __rte_always_inline unsigned int
153rte_stack_count(struct rte_stack *s)
154{
155 RTE_ASSERT(s != NULL);
156
157 if (s->flags & RTE_STACK_F_LF)
158 return __rte_stack_lf_count(s);
159 else
160 return __rte_stack_std_count(s);
161}
162
163/**
164 * Return the number of free entries in a stack.

Callers 4

rte_stack_free_countFunction · 0.85
stack_get_countFunction · 0.85
test_stack_push_popFunction · 0.85
test_stack_basicFunction · 0.85

Calls 2

__rte_stack_std_countFunction · 0.85
__rte_stack_lf_countFunction · 0.70

Tested by 2

test_stack_push_popFunction · 0.68
test_stack_basicFunction · 0.68