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

Function stack_enqueue

dpdk/drivers/mempool/stack/rte_mempool_stack.c:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44static int
45stack_enqueue(struct rte_mempool *mp, void * const *obj_table,
46 unsigned int n)
47{
48 struct rte_stack *s = mp->pool_data;
49
50 return rte_stack_push(s, obj_table, n) == 0 ? -ENOBUFS : 0;
51}
52
53static int
54stack_dequeue(struct rte_mempool *mp, void **obj_table,

Callers

nothing calls this directly

Calls 1

rte_stack_pushFunction · 0.85

Tested by

no test coverage detected