#define RTE_LINUXAPP_HUGEPAGES_H_
#include <stddef.h>
+#include <stdint.h>
+#include <limits.h>
#define MAX_HUGEPAGE_PATH PATH_MAX
* Structure used to store informations about hugepages that we mapped
* through the files in hugetlbfs.
*/
-struct hugepage {
+struct hugepage_file {
void *orig_va; /**< virtual addr of first mmap() */
void *final_va; /**< virtual addr of 2nd mmap() */
uint64_t physaddr; /**< physical addr */
int socket_id; /**< NUMA socket ID */
int file_id; /**< the '%d' in HUGEFILE_FMT */
int memseg_id; /**< the memory segment to which page belongs */
+#ifdef RTE_EAL_SINGLE_FILE_SEGMENTS
+ int repeated; /**< number of times the page size is repeated */
+#endif
char filepath[MAX_HUGEPAGE_PATH]; /**< path to backing file on filesystem */
};