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

Function rte_mempool_obj_iter

dpdk/lib/mempool/rte_mempool.c:181–196  ·  view source on GitHub ↗

call obj_cb() for each mempool element */

Source from the content-addressed store, hash-verified

179
180/* call obj_cb() for each mempool element */
181uint32_t
182rte_mempool_obj_iter(struct rte_mempool *mp,
183 rte_mempool_obj_cb_t *obj_cb, void *obj_cb_arg)
184{
185 struct rte_mempool_objhdr *hdr;
186 void *obj;
187 unsigned n = 0;
188
189 STAILQ_FOREACH(hdr, &mp->elt_list, next) {
190 obj = (char *)hdr + sizeof(*hdr);
191 obj_cb(mp, obj_cb_arg, obj, n);
192 n++;
193 }
194
195 return n;
196}
197
198/* call mem_cb() for each mempool memory chunk */
199uint32_t

Callers 15

rte_mempool_createFunction · 0.85
mempool_audit_cookiesFunction · 0.85
mlx5_mempool_get_extmemFunction · 0.85
test_mempool_perfFunction · 0.85
test_mempoolFunction · 0.85
ml_inference_resultFunction · 0.85

Calls

no outgoing calls

Tested by 5

test_mempool_perfFunction · 0.68
test_mempoolFunction · 0.68
ml_inference_resultFunction · 0.68
mbuf_pool_createFunction · 0.68