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_get_stats(struct malloc_heap *heap,
32 struct rte_malloc_socket_stats *socket_stats);
35 rte_eal_malloc_heap_init(void);
41 #endif /* MALLOC_HEAP_H_ */