numam-dpdk/lib/librte_eal/common
Harry van Haaren aec9c13c52 eal: add function to release internal resources
This commit adds a new function rte_eal_cleanup().
The function serves as a hook to allow DPDK to release
internal resources (e.g.: hugepage allocations).

This function allows DPDK to become more like an ordinary
library, where the library context itself can be initialized
and cleaned up by the application.

The rte_exit() and rte_panic() functions must be considered,
particularly if they should call rte_eal_cleanup() to release any
resources or not. This patch adds the cleanup to rte_exit(),
but does not clean up on rte_panic(). The reason to not clean
up on panicing is that the developer may wish to inspect the
exact internal state of EAL and hugepages.

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Vipin Varghese <vipin.varghese@intel.com>
2018-01-29 20:33:53 +01:00
..
arch eal/x86: get hypervisor name 2018-01-12 00:39:14 +01:00
include eal: add function to release internal resources 2018-01-29 20:33:53 +01:00
eal_common_bus.c bus: include debug header 2017-10-26 23:17:31 +02:00
eal_common_cpuflags.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
eal_common_dev.c eal: remove dependency on vdev in attach 2017-11-07 16:28:56 +01:00
eal_common_devargs.c devargs: fix policy check when adding arguments 2017-08-03 21:30:47 +02:00
eal_common_errno.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
eal_common_hexdump.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
eal_common_hypervisor.c eal/x86: get hypervisor name 2018-01-12 00:39:14 +01:00
eal_common_launch.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
eal_common_lcore.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
eal_common_log.c log: fix memory leak in regexp level set 2018-01-25 23:32:06 +01:00
eal_common_memory.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
eal_common_memzone.c memzone: fix leak on allocation error 2018-01-12 15:38:29 +01:00
eal_common_options.c mbuf: maintain user and compile time mempool ops name 2018-01-29 18:52:34 +01:00
eal_common_proc.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
eal_common_string_fns.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
eal_common_tailqs.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
eal_common_thread.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
eal_common_timer.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
eal_filesystem.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
eal_hugepages.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
eal_internal_cfg.h eal: prefix mbuf pool ops name with user defined 2018-01-29 18:52:07 +01:00
eal_options.h eal: remove Xen dom0 support 2017-10-09 01:54:29 +02:00
eal_private.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
eal_thread.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
Makefile eal: introduce integer divide through reciprocal 2018-01-27 22:34:33 +01:00
malloc_elem.c malloc: fix end for bounded elements 2018-01-12 15:50:13 +01:00
malloc_elem.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
malloc_heap.c malloc: protect stats with lock 2018-01-12 15:46:19 +01:00
malloc_heap.h malloc: protect stats with lock 2018-01-12 15:46:19 +01:00
rte_keepalive.c keepalive: fix state alignment 2018-01-25 23:25:57 +01:00
rte_malloc.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_reciprocal.c eal: add u64-bit variant for reciprocal divide 2018-01-27 22:34:47 +01:00
rte_service.c service: fix memory leak with new function 2018-01-26 17:49:44 +01:00