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

Function rte_eal_using_phys_addrs

dpdk/lib/eal/linux/eal_memory.c:1688–1701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1686}
1687
1688int
1689rte_eal_using_phys_addrs(void)
1690{
1691 if (phys_addrs_available == -1) {
1692 uint64_t tmp = 0;
1693
1694 if (rte_eal_has_hugepages() != 0 &&
1695 rte_mem_virt2phy(&tmp) != RTE_BAD_PHYS_ADDR)
1696 phys_addrs_available = 1;
1697 else
1698 phys_addrs_available = 0;
1699 }
1700 return phys_addrs_available;
1701}
1702
1703static int __rte_unused
1704memseg_primary_init_32(void)

Callers 4

rte_eal_initFunction · 0.70
eal_legacy_hugepage_initFunction · 0.70
alloc_pages_on_heapFunction · 0.50
rte_pci_map_deviceFunction · 0.50

Calls 2

rte_eal_has_hugepagesFunction · 0.85
rte_mem_virt2phyFunction · 0.70

Tested by

no test coverage detected