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

Function rte_eal_memdevice_init

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

Source from the content-addressed store, hash-verified

641}
642
643static int
644rte_eal_memdevice_init(void)
645{
646 struct rte_config *config;
647 const struct internal_config *internal_conf;
648
649 if (rte_eal_process_type() == RTE_PROC_SECONDARY)
650 return 0;
651
652 internal_conf = eal_get_internal_configuration();
653 config = rte_eal_get_configuration();
654 config->mem_config->nchannel = internal_conf->force_nchannel;
655 config->mem_config->nrank = internal_conf->force_nrank;
656
657 return 0;
658}
659
660/* Lock page in physical memory and prevent from swapping. */
661int

Callers 1

rte_eal_memory_initFunction · 0.85

Calls 3

rte_eal_process_typeFunction · 0.85

Tested by

no test coverage detected