Home
last modified time | relevance | path

Searched refs:blk_alloc (Results 1 – 1 of 1) sorted by relevance

/AliOS-Things-master/components/ota/2ndboot/updater/
A Dlibc.c302 blk_head_t *blk_alloc = NULL; in ota_heap_malloc() local
316 blk_alloc = freelist_head.next; in ota_heap_malloc()
317 while ((blk_alloc->magic_size < alloc_size) && (blk_alloc->next != NULL)) { in ota_heap_malloc()
318 blk_prev = blk_alloc; in ota_heap_malloc()
319 blk_alloc = blk_alloc->next; in ota_heap_malloc()
321 if (blk_alloc->next == NULL) { in ota_heap_malloc()
325 blk_prev->next = blk_alloc->next; in ota_heap_malloc()
331 blk_alloc->magic_size = alloc_size; in ota_heap_malloc()
336 heap_free_size -= blk_alloc->magic_size; in ota_heap_malloc()
341 blk_alloc->magic_size |= XZ_HEAP_MAGIC; in ota_heap_malloc()
[all …]

Completed in 3 milliseconds