23 #include <rte_compat.h>
24 #include <rte_config.h>
27 #define RTE_PGSIZE_4K (1ULL << 12)
28 #define RTE_PGSIZE_64K (1ULL << 16)
29 #define RTE_PGSIZE_256K (1ULL << 18)
30 #define RTE_PGSIZE_2M (1ULL << 21)
31 #define RTE_PGSIZE_16M (1ULL << 24)
32 #define RTE_PGSIZE_256M (1ULL << 28)
33 #define RTE_PGSIZE_512M (1ULL << 29)
34 #define RTE_PGSIZE_1G (1ULL << 30)
35 #define RTE_PGSIZE_4G (1ULL << 32)
36 #define RTE_PGSIZE_16G (1ULL << 34)
38 #define SOCKET_ID_ANY -1
43 #define RTE_MEMSEG_FLAG_DO_NOT_FREE (1 << 0)
82 struct rte_fbarray memseg_arr;
173 const struct rte_memseg *ms,
void *arg);
185 const struct rte_memseg *ms,
size_t len,
void *arg);
462 unsigned int n_pages,
size_t page_sz);
651 #define RTE_MEM_EVENT_CALLBACK_NAME_LEN 64
658 const void *addr,
size_t len,
void *arg);
709 #define RTE_MEM_ALLOC_VALIDATOR_NAME_LEN 64
718 size_t cur_limit,
size_t new_len);
__rte_experimental int rte_memseg_list_walk(rte_memseg_list_walk_t func, void *arg)
__rte_experimental int rte_memseg_walk(rte_memseg_walk_t func, void *arg)
__rte_experimental int rte_mem_alloc_validator_unregister(const char *name, int socket_id)
Unregister validator callback for memory allocations.
unsigned rte_memory_get_nchannel(void)
__rte_experimental int rte_memseg_contig_walk_thread_unsafe(rte_memseg_contig_walk_t func, void *arg)
__rte_experimental struct rte_memseg * rte_mem_virt2memseg(const void *virt, const struct rte_memseg_list *msl)
__rte_experimental int rte_memseg_get_fd_thread_unsafe(const struct rte_memseg *ms)
__rte_experimental int rte_memseg_walk_thread_unsafe(rte_memseg_walk_t func, void *arg)
__rte_experimental int rte_memseg_contig_walk(rte_memseg_contig_walk_t func, void *arg)
int rte_eal_using_phys_addrs(void)
int rte_mem_lock_page(const void *virt)
__rte_experimental int rte_memseg_list_walk_thread_unsafe(rte_memseg_list_walk_t func, void *arg)
__rte_experimental int rte_memseg_get_fd_offset_thread_unsafe(const struct rte_memseg *ms, size_t *offset)
unsigned rte_memory_get_nrank(void)
__rte_experimental int rte_memseg_get_fd(const struct rte_memseg *ms)
int(* rte_memseg_walk_t)(const struct rte_memseg_list *msl, const struct rte_memseg *ms, void *arg)
phys_addr_t rte_mem_virt2phy(const void *virt)
uint64_t rte_eal_get_physmem_size(void)
__rte_experimental int rte_mem_event_callback_unregister(const char *name, void *arg)
__rte_experimental void rte_mem_set_dma_mask(uint8_t maskbits)
void(* rte_mem_event_callback_t)(enum rte_mem_event event_type, const void *addr, size_t len, void *arg)
__rte_experimental int rte_mem_alloc_validator_register(const char *name, rte_mem_alloc_validator_t clb, int socket_id, size_t limit)
Register validator callback for memory allocations.
__rte_experimental int rte_extmem_attach(void *va_addr, size_t len)
__rte_experimental int rte_extmem_detach(void *va_addr, size_t len)
__rte_experimental void * rte_mem_iova2virt(rte_iova_t iova)
volatile uint32_t version
void rte_dump_physmem_layout(FILE *f)
__rte_experimental int rte_extmem_unregister(void *va_addr, size_t len)
int(* rte_memseg_contig_walk_t)(const struct rte_memseg_list *msl, const struct rte_memseg *ms, size_t len, void *arg)
__rte_experimental struct rte_memseg_list * rte_mem_virt2memseg_list(const void *virt)
int(* rte_mem_alloc_validator_t)(int socket_id, size_t cur_limit, size_t new_len)
__rte_experimental int rte_extmem_register(void *va_addr, size_t len, rte_iova_t iova_addrs[], unsigned int n_pages, size_t page_sz)
__rte_experimental int rte_mem_check_dma_mask_thread_unsafe(uint8_t maskbits)
int(* rte_memseg_list_walk_t)(const struct rte_memseg_list *msl, void *arg)
__rte_experimental int rte_mem_check_dma_mask(uint8_t maskbits)
__rte_experimental int rte_mem_event_callback_register(const char *name, rte_mem_event_callback_t clb, void *arg)
rte_iova_t rte_mem_virt2iova(const void *virt)
__rte_experimental int rte_memseg_get_fd_offset(const struct rte_memseg *ms, size_t *offset)