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

Function rollback_expand_heap

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

this function is exposed in malloc_mp.h */

Source from the content-addressed store, hash-verified

278
279/* this function is exposed in malloc_mp.h */
280void
281rollback_expand_heap(struct rte_memseg **ms, int n_segs,
282 struct malloc_elem *elem, void *map_addr, size_t map_len)
283{
284 if (elem != NULL) {
285 malloc_elem_free_list_remove(elem);
286 malloc_elem_hide_region(elem, map_addr, map_len);
287 }
288
289 eal_memalloc_free_seg_bulk(ms, n_segs);
290}
291
292/* this function is exposed in malloc_mp.h */
293struct malloc_elem *

Callers 3

alloc_pages_on_heapFunction · 0.85
try_expand_heap_primaryFunction · 0.85
handle_sync_responseFunction · 0.85

Calls 3

malloc_elem_hide_regionFunction · 0.85

Tested by

no test coverage detected