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

Function rte_mempool_ops_dequeue_bulk

dpdk/lib/mempool/rte_mempool.h:774–789  ·  view source on GitHub ↗

* @internal Wrapper for mempool_ops dequeue callback. * * @param mp * Pointer to the memory pool. * @param obj_table * Pointer to a table of void * pointers (objects). * @param n * Number of objects to get. * @return * - 0: Success; got n objects. * - <0: Error; code of dequeue function. */

Source from the content-addressed store, hash-verified

772 * - <0: Error; code of dequeue function.
773 */
774static inline int
775rte_mempool_ops_dequeue_bulk(struct rte_mempool *mp,
776 void **obj_table, unsigned n)
777{
778 struct rte_mempool_ops *ops;
779 int ret;
780
781 rte_mempool_trace_ops_dequeue_bulk(mp, obj_table, n);
782 ops = rte_mempool_get_ops(mp->ops_index);
783 ret = ops->dequeue(mp, obj_table, n);
784 if (ret == 0) {
785 RTE_MEMPOOL_STAT_ADD(mp, get_common_pool_bulk, 1);
786 RTE_MEMPOOL_STAT_ADD(mp, get_common_pool_objs, n);
787 }
788 return ret;
789}
790
791/**
792 * @internal Wrapper for mempool_ops dequeue_contig_blocks callback.

Callers 4

idpf_singleq_rearmFunction · 0.85
idpf_splitq_rearmFunction · 0.85

Calls 1

rte_mempool_get_opsFunction · 0.85

Tested by

no test coverage detected