1 typedef unsigned long uint64_t;
2 typedef uint64_t size_t;
3 typedef unsigned uint32_t;
4 typedef int int32_t;
5 
6 struct rte_memseg {
7     uint64_t phys_addr;      /**< Start physical address. */
8     union {
9         void *addr;         /**< Start virtual address. */
10         uint64_t addr_64;   /**< Makes sure addr is always 64 bits */
11     };
12     size_t len;               /**< Length of the segment. */
13     uint64_t hugepage_sz;       /**< The pagesize of underlying memory */
14     int32_t socket_id;          /**< NUMA socket ID. */
15     uint32_t nchannel;          /**< Number of channels. */
16     uint32_t nrank;             /**< Number of ranks. */
17 } __attribute__((__packed__));
18