1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
10 #include <rte_malloc.h>
11 #include <rte_malloc_heap.h>
17 static inline unsigned
18 malloc_get_numa_socket(void)
20 unsigned socket_id = rte_socket_id();
22 if (socket_id == (unsigned)SOCKET_ID_ANY)
29 malloc_heap_alloc(struct malloc_heap *heap, const char *type, size_t size,
30 unsigned int flags, size_t align, size_t bound, bool contig);
33 malloc_heap_free(struct malloc_elem *elem);
36 malloc_heap_resize(struct malloc_elem *elem, size_t size);
39 malloc_heap_get_stats(struct malloc_heap *heap,
40 struct rte_malloc_socket_stats *socket_stats);
43 malloc_heap_dump(struct malloc_heap *heap, FILE *f);
46 rte_eal_malloc_heap_init(void);
52 #endif /* MALLOC_HEAP_H_ */