X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Finclude%2Frte_eal.h;h=8b36feabcb39403ab836058b0a08f0d1c99fe876;hb=aec9c13c5257;hp=2aba2c8bd4db1ccabc25e0836624ddaf4014c73c;hpb=1dd133ae073d9e2bcf6f471f3b831385aa0051c4;p=dpdk.git diff --git a/lib/librte_eal/common/include/rte_eal.h b/lib/librte_eal/common/include/rte_eal.h index 2aba2c8bd4..8b36feabcb 100644 --- a/lib/librte_eal/common/include/rte_eal.h +++ b/lib/librte_eal/common/include/rte_eal.h @@ -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 *