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

Function rte_mempool_mem_iter

dpdk/lib/mempool/rte_mempool.c:199–212  ·  view source on GitHub ↗

call mem_cb() for each mempool memory chunk */

Source from the content-addressed store, hash-verified

197
198/* call mem_cb() for each mempool memory chunk */
199uint32_t
200rte_mempool_mem_iter(struct rte_mempool *mp,
201 rte_mempool_mem_cb_t *mem_cb, void *mem_cb_arg)
202{
203 struct rte_mempool_memhdr *hdr;
204 unsigned n = 0;
205
206 STAILQ_FOREACH(hdr, &mp->mem_list, next) {
207 mem_cb(mp, mem_cb_arg, hdr, n);
208 n++;
209 }
210
211 return n;
212}
213
214/* get the header, trailer and total size of a mempool element. */
215uint32_t

Callers 9

bucket_get_countFunction · 0.85
mlx4_mr_update_ext_mpFunction · 0.85
mlx4_mr_update_mpFunction · 0.85
mana_new_pmd_mrFunction · 0.85
mlx5_mempool_get_chunksFunction · 0.85
test_mempoolFunction · 0.85
mbuf_pool_createFunction · 0.85
pmd_test_exitFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_mempoolFunction · 0.68
mbuf_pool_createFunction · 0.68
pmd_test_exitFunction · 0.68