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

Function dma_pool_alloc

dpdk/drivers/dma/dpaa/dpaa_qdma.c:100–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100static void
101*dma_pool_alloc(int size, int aligned, dma_addr_t *phy_addr)
102{
103 void *virt_addr;
104
105 virt_addr = rte_malloc("dma pool alloc", size, aligned);
106 if (!virt_addr)
107 return NULL;
108
109 *phy_addr = rte_mem_virt2iova(virt_addr);
110
111 return virt_addr;
112}
113
114static void
115dma_pool_free(void *addr)

Calls 2

rte_mallocFunction · 0.85
rte_mem_virt2iovaFunction · 0.50

Tested by

no test coverage detected