MCPcopy Create free account
hub / github.com/F-Stack/f-stack / malloc_heap_add_memory

Function malloc_heap_add_memory

dpdk/lib/eal/common/malloc_heap.c:89–104  ·  view source on GitHub ↗

* Expand the heap with a memory area. */

Source from the content-addressed store, hash-verified

87 * Expand the heap with a memory area.
88 */
89static struct malloc_elem *
90malloc_heap_add_memory(struct malloc_heap *heap, struct rte_memseg_list *msl,
91 void *start, size_t len, bool dirty)
92{
93 struct malloc_elem *elem = start;
94
95 malloc_elem_init(elem, heap, msl, len, elem, len, dirty);
96
97 malloc_elem_insert(elem);
98
99 elem = malloc_elem_join_adjacent_free(elem);
100
101 malloc_elem_free_list_insert(elem);
102
103 return elem;
104}
105
106static int
107malloc_add_seg(const struct rte_memseg_list *msl,

Callers 3

malloc_add_segFunction · 0.85
alloc_pages_on_heapFunction · 0.85

Calls 4

malloc_elem_initFunction · 0.85
malloc_elem_insertFunction · 0.85

Tested by

no test coverage detected