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

Function rte_stack_pop

dpdk/lib/stack/rte_stack.h:132–142  ·  view source on GitHub ↗

* Pop several objects from the stack (MT-safe). * * @param s * A pointer to the stack structure. * @param obj_table * A pointer to a table of void * pointers (objects). * @param n * The number of objects to pull from the stack. * @return * Actual number of objects popped (either 0 or *n*). */

Source from the content-addressed store, hash-verified

130 * Actual number of objects popped (either 0 or *n*).
131 */
132static __rte_always_inline unsigned int
133rte_stack_pop(struct rte_stack *s, void **obj_table, unsigned int n)
134{
135 RTE_ASSERT(s != NULL);
136 RTE_ASSERT(obj_table != NULL);
137
138 if (s->flags & RTE_STACK_F_LF)
139 return __rte_stack_lf_pop(s, obj_table, n);
140 else
141 return __rte_stack_std_pop(s, obj_table, n);
142}
143
144/**
145 * Return the number of used entries in a stack.

Callers 8

stack_dequeueFunction · 0.85
test_empty_popFunction · 0.85
bulk_push_popFunction · 0.85
test_single_push_popFunction · 0.85
test_bulk_push_popFunction · 0.85
test_stack_push_popFunction · 0.85
test_stack_basicFunction · 0.85
stack_thread_push_popFunction · 0.85

Calls 2

__rte_stack_lf_popFunction · 0.85
__rte_stack_std_popFunction · 0.85

Tested by 7

test_empty_popFunction · 0.68
bulk_push_popFunction · 0.68
test_single_push_popFunction · 0.68
test_bulk_push_popFunction · 0.68
test_stack_push_popFunction · 0.68
test_stack_basicFunction · 0.68
stack_thread_push_popFunction · 0.68