X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Flinuxapp%2Feal%2Finclude%2Feal_hugepages.h;h=064cdb0adc81b7f4aa3070a7df7e20584254b3bf;hb=d10296d7ea9c7e4f0da51ff2fb9c89b838e06940;hp=16b3b5fe715c89eb61b08e8889a95ddbf76f8ade;hpb=1c1d4d7a923d4804f1926fc5264f9ecdd8977b04;p=dpdk.git diff --git a/lib/librte_eal/linuxapp/eal/include/eal_hugepages.h b/lib/librte_eal/linuxapp/eal/include/eal_hugepages.h index 16b3b5fe71..064cdb0adc 100644 --- a/lib/librte_eal/linuxapp/eal/include/eal_hugepages.h +++ b/lib/librte_eal/linuxapp/eal/include/eal_hugepages.h @@ -1,7 +1,7 @@ /*- * BSD LICENSE * - * Copyright(c) 2010-2013 Intel Corporation. All rights reserved. + * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -35,6 +35,8 @@ #define RTE_LINUXAPP_HUGEPAGES_H_ #include +#include +#include #define MAX_HUGEPAGE_PATH PATH_MAX @@ -42,7 +44,7 @@ * 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 */ @@ -50,6 +52,9 @@ struct hugepage { 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 */ };