34 #ifndef _RTE_MEMZONE_H_ 35 #define _RTE_MEMZONE_H_ 61 #define RTE_MEMZONE_2MB 0x00000001 62 #define RTE_MEMZONE_1GB 0x00000002 63 #define RTE_MEMZONE_16MB 0x00000100 64 #define RTE_MEMZONE_16GB 0x00000200 65 #define RTE_MEMZONE_256KB 0x00010000 66 #define RTE_MEMZONE_256MB 0x00020000 67 #define RTE_MEMZONE_512MB 0x00040000 68 #define RTE_MEMZONE_4GB 0x00080000 69 #define RTE_MEMZONE_SIZE_HINT_ONLY 0x00000004 77 #define RTE_MEMZONE_NAMESIZE 32 78 char name[RTE_MEMZONE_NAMESIZE]; 80 phys_addr_t phys_addr; 85 #ifdef RTE_LIBRTE_IVSHMEM 96 } __attribute__((__packed__));
196 unsigned flags,
unsigned align);
254 unsigned flags,
unsigned align,
unsigned bound);
const struct rte_memzone * rte_memzone_reserve(const char *name, size_t len, int socket_id, unsigned flags)
const struct rte_memzone * rte_memzone_lookup(const char *name)
const struct rte_memzone * rte_memzone_reserve_bounded(const char *name, size_t len, int socket_id, unsigned flags, unsigned align, unsigned bound)
void rte_memzone_walk(void(*func)(const struct rte_memzone *, void *arg), void *arg)
void rte_memzone_dump(FILE *f)
const struct rte_memzone * rte_memzone_reserve_aligned(const char *name, size_t len, int socket_id, unsigned flags, unsigned align)
char name[RTE_MEMZONE_NAMESIZE]
int rte_memzone_free(const struct rte_memzone *mz)