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

Function rte_mempool_walk

dpdk/lib/mempool/rte_mempool.c:1370–1386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1368}
1369
1370void rte_mempool_walk(void (*func)(struct rte_mempool *, void *),
1371 void *arg)
1372{
1373 struct rte_tailq_entry *te = NULL;
1374 struct rte_mempool_list *mempool_list;
1375 void *tmp_te;
1376
1377 mempool_list = RTE_TAILQ_CAST(rte_mempool_tailq.head, rte_mempool_list);
1378
1379 rte_mcfg_mempool_read_lock();
1380
1381 RTE_TAILQ_FOREACH_SAFE(te, mempool_list, next, tmp_te) {
1382 (*func)((struct rte_mempool *) te->data, arg);
1383 }
1384
1385 rte_mcfg_mempool_read_unlock();
1386}
1387
1388struct mempool_callback_data {
1389 TAILQ_ENTRY(mempool_callback_data) callbacks;

Callers 8

mempool_handle_listFunction · 0.85
mempool_handle_infoFunction · 0.85
mempool_tel_handle_infoFunction · 0.85
mlx5_free_shared_dev_ctxFunction · 0.85
test_mempoolFunction · 0.85

Calls 2

Tested by 1

test_mempoolFunction · 0.68