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

Function dma_pool_destroy

dpdk/drivers/net/hinic/base/hinic_pmd_hwdev.c:295–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295void dma_pool_destroy(struct dma_pool *pool)
296{
297 if (!pool)
298 return;
299
300 if (rte_atomic32_read(&pool->inuse) != 0) {
301 PMD_DRV_LOG(ERR, "Leak memory, dma_pool: %s, inuse_count: %d",
302 pool->name, rte_atomic32_read(&pool->inuse));
303 }
304
305 rte_free(pool);
306}
307
308void *dma_pool_alloc(struct pci_pool *pool, dma_addr_t *dma_addr)
309{

Callers 2

hinic_cmdqs_initFunction · 0.85
hinic_cmdqs_freeFunction · 0.85

Calls 2

rte_atomic32_readFunction · 0.85
rte_freeFunction · 0.85

Tested by

no test coverage detected