New upstream version 18.11.1
[deb_dpdk.git] / lib / librte_eal / common / eal_filesystem.h
index 6e0331f..89a3add 100644 (file)
 int
 eal_create_runtime_dir(void);
 
+int
+eal_clean_runtime_dir(void);
+
+/** Function to return hugefile prefix that's currently set up */
+const char *
+eal_get_hugefile_prefix(void);
+
 #define RUNTIME_CONFIG_FNAME "config"
 static inline const char *
 eal_runtime_config_path(void)
@@ -86,7 +93,7 @@ static inline const char *
 eal_get_hugefile_path(char *buffer, size_t buflen, const char *hugedir, int f_id)
 {
        snprintf(buffer, buflen, HUGEFILE_FMT, hugedir,
-                       internal_config.hugefile_prefix, f_id);
+                       eal_get_hugefile_prefix(), f_id);
        buffer[buflen - 1] = '\0';
        return buffer;
 }