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

Function dma_allocate

dpdk/lib/dmadev/rte_dmadev.c:320–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320static struct rte_dma_dev *
321dma_allocate(const char *name, int numa_node, size_t private_data_size)
322{
323 struct rte_dma_dev *dev;
324
325 if (rte_eal_process_type() == RTE_PROC_PRIMARY)
326 dev = dma_allocate_primary(name, numa_node, private_data_size);
327 else
328 dev = dma_attach_secondary(name);
329
330 if (dev) {
331 dev->fp_obj = &rte_dma_fp_objs[dev->data->dev_id];
332 dma_fp_object_dummy(dev->fp_obj);
333 }
334
335 return dev;
336}
337
338static void
339dma_release(struct rte_dma_dev *dev)

Callers 1

rte_dma_pmd_allocateFunction · 0.85

Calls 4

rte_eal_process_typeFunction · 0.85
dma_allocate_primaryFunction · 0.85
dma_attach_secondaryFunction · 0.85
dma_fp_object_dummyFunction · 0.85

Tested by

no test coverage detected