]>
git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/dpdk/lib/librte_eal/common/include/rte_malloc_heap.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
5 #ifndef _RTE_MALLOC_HEAP_H_
6 #define _RTE_MALLOC_HEAP_H_
10 #include <rte_spinlock.h>
11 #include <rte_memory.h>
13 /* Number of free lists per heap, grouped by size. */
14 #define RTE_HEAP_NUM_FREELISTS 13
15 #define RTE_HEAP_NAME_MAX_LEN 32
17 /* dummy definition, for pointers */
21 * Structure to hold malloc heap
25 LIST_HEAD(, malloc_elem
) free_head
[RTE_HEAP_NUM_FREELISTS
];
26 struct malloc_elem
*volatile first
;
27 struct malloc_elem
*volatile last
;
30 unsigned int socket_id
;
32 char name
[RTE_HEAP_NAME_MAX_LEN
];
33 } __rte_cache_aligned
;
35 #endif /* _RTE_MALLOC_HEAP_H_ */