1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
8 #include <rte_malloc.h>
9 #include <rte_malloc_heap.h>
15 static inline unsigned
16 malloc_get_numa_socket(void)
18 unsigned socket_id = rte_socket_id();
20 if (socket_id == (unsigned)SOCKET_ID_ANY)
27 malloc_heap_alloc(struct malloc_heap *heap, const char *type, size_t size,
28 unsigned flags, size_t align, size_t bound);
31 malloc_heap_free(struct malloc_elem *elem);
34 malloc_heap_resize(struct malloc_elem *elem, size_t size);
37 malloc_heap_get_stats(struct malloc_heap *heap,
38 struct rte_malloc_socket_stats *socket_stats);
41 malloc_heap_dump(struct malloc_heap *heap, FILE *f);
44 rte_eal_malloc_heap_init(void);
50 #endif /* MALLOC_HEAP_H_ */