Lines Matching refs:freelist
74 static heap_node* freelist = NULL; variable
87 freelist = (heap_node*)heap; in init_heap()
88 freelist->next_node = offset_from_node(list_end); in init_heap()
89 freelist->len = HEAP_SIZE / sizeof(heap_node); in init_heap()
106 if (NULL == freelist) in fallback_malloc()
110 for (p = freelist, prev = 0; p && p != list_end; in fallback_malloc()
125 freelist = node_from_offset(p->next_node); in fallback_malloc()
148 for (p = freelist, prev = 0; p && p != list_end; in fallback_free()
168 freelist = cp; in fallback_free()
179 cp->next_node = offset_from_node(freelist); in fallback_free()
180 freelist = cp; in fallback_free()
187 if (NULL == freelist) in print_free_list()
190 for (p = freelist, prev = 0; p && p != list_end; in print_free_list()