numam-dpdk/lib/librte_eal/linux
Dmitry Kozlyuk c4b89ecb64 eal: introduce memory management wrappers
Introduce OS-independent wrappers for memory management operations used
across DPDK and specifically in common code of EAL:

* rte_mem_map()
* rte_mem_unmap()
* rte_mem_page_size()
* rte_mem_lock()

Windows uses different APIs for memory mapping and reservation, while
Unices reserve memory by mapping it. Introduce EAL private functions to
support memory reservation in common code:

* eal_mem_reserve()
* eal_mem_free()
* eal_mem_set_dump()

Wrappers follow POSIX semantics limited to DPDK tasks, but their
signatures deliberately differ from POSIX ones to be more safe and
expressive. New symbols are internal. Being thin wrappers, they require
no special maintenance.

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
2020-06-15 19:25:05 +02:00
..
include eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
eal_alarm.c trace: add alarm tracepoints 2020-04-23 15:39:47 +02:00
eal_cpuflags.c eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
eal_debug.c eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
eal_dev.c eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
eal_hugepage_info.c eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
eal_interrupts.c trace: add interrupt tracepoints 2020-04-23 15:39:55 +02:00
eal_lcore.c eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
eal_log.c replace unused attributes 2020-04-16 18:30:58 +02:00
eal_memalloc.c eal: introduce memory management wrappers 2020-06-15 19:25:05 +02:00
eal_memory.c eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
eal_thread.c trace: add thread tracepoints 2020-04-23 15:39:53 +02:00
eal_timer.c replace unused attributes 2020-04-16 18:30:58 +02:00
eal_vfio_mp_sync.c eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
eal_vfio.c vfio: fix use after free with multiprocess 2020-04-21 18:13:44 +02:00
eal_vfio.h eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
eal.c telemetry: fix init log printing 2020-05-24 18:01:31 +02:00
Makefile eal: introduce memory management wrappers 2020-06-15 19:25:05 +02:00
meson.build eal: add telemetry as dependency 2020-05-11 00:37:16 +02:00