]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_eal.h
eal: add function to release internal resources
[dpdk.git] / lib / librte_eal / common / include / rte_eal.h
index 2aba2c8bd4db1ccabc25e0836624ddaf4014c73c..8b36feabcb39403ab836058b0a08f0d1c99fe876 100644 (file)
@@ -169,6 +169,22 @@ int rte_eal_iopl_init(void);
  */
 int rte_eal_init(int argc, char **argv);
 
+/**
+ * @warning
+ * @b EXPERIMENTAL: this API may change without prior notice
+ *
+ * Clean up the Environment Abstraction Layer (EAL)
+ *
+ * This function must be called to release any internal resources that EAL has
+ * allocated during rte_eal_init(). After this call, no DPDK function calls may
+ * be made. It is expected that common usage of this function is to call it
+ * just before terminating the process.
+ *
+ * @return 0 Successfully released all internal EAL resources
+ * @return -EFAULT There was an error in releasing all resources.
+ */
+int rte_eal_cleanup(void);
+
 /**
  * Check if a primary process is currently alive
  *