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

Function rte_mem_iova2virt

dpdk/lib/eal/common/eal_common_memory.c:380–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380void *
381rte_mem_iova2virt(rte_iova_t iova)
382{
383 struct virtiova vi;
384 const struct internal_config *internal_conf =
385 eal_get_internal_configuration();
386
387 memset(&vi, 0, sizeof(vi));
388
389 vi.iova = iova;
390 /* for legacy mem, we can get away with scanning VA-contiguous segments,
391 * as we know they are PA-contiguous as well
392 */
393 if (internal_conf->legacy_mem)
394 rte_memseg_contig_walk(find_virt_legacy, &vi);
395 else
396 rte_memseg_walk(find_virt, &vi);
397
398 return vi.virt;
399}
400
401struct rte_memseg *
402rte_mem_virt2memseg(const void *addr, const struct rte_memseg_list *msl)

Callers 4

caam_jr_dma_ptovFunction · 0.85
pfe_mem_ptovFunction · 0.85
dpaa2_mem_ptovFunction · 0.85
rte_dpaa_mem_ptovFunction · 0.85

Calls 4

memsetFunction · 0.85
rte_memseg_contig_walkFunction · 0.85
rte_memseg_walkFunction · 0.85

Tested by

no test coverage detected