Lines Matching full:memory
10 * fix memory check in rt_realloc function
70 * This function will set a hook function, which will be invoked when a memory
71 * block is allocated from heap memory.
81 * This function will set a hook function, which will be invoked when a memory
82 * block is released to heap memory.
199 * This function will initialize system heap memory.
201 * @param begin_addr the beginning address of system heap memory.
202 * @param end_addr the end address of system heap memory.
216 /* calculate the aligned memory size */ in rt_system_heap_init()
266 * Allocate a block of memory with a minimum of 'size' bytes.
270 * @return pointer to allocated memory or NULL if no free memory was found.
293 RT_DEBUG_LOG(RT_DEBUG_MEM, ("no memory\n")); in rt_malloc()
302 /* take memory semaphore */ in rt_malloc()
327 * the 2 regions would be combined, resulting in more free memory in rt_malloc()
371 /* set memory block magic */ in rt_malloc()
395 ("allocate memory at 0x%x, size: %d\n", in rt_malloc()
402 /* return the memory data except mem struct */ in rt_malloc()
414 * This function will change the previously allocated memory block.
416 * @param rmem pointer to memory allocated by rt_malloc
419 * @return the changed memory block address
434 RT_DEBUG_LOG(RT_DEBUG_MEM, ("realloc: out of memory\n")); in rt_realloc()
444 /* allocate a new memory block */ in rt_realloc()
453 /* illegal memory */ in rt_realloc()
473 /* split memory block */ in rt_realloc()
501 /* expand memory */ in rt_realloc()
503 if (nmem != RT_NULL) /* check memory */ in rt_realloc()
515 * that are size bytes of memory each and returns a pointer to the allocated
516 * memory.
518 * The allocated memory is filled with bytes of value zero.
523 * @return pointer to allocated memory / NULL pointer if there is an error
532 /* zero the memory */ in rt_calloc()
541 * This function will release the previously allocated memory block by
542 * rt_malloc. The released memory block is taken back to system heap.
544 * @param rmem the address of memory which will be released
564 RT_DEBUG_LOG(RT_DEBUG_MEM, ("illegal memory\n")); in rt_free()
573 ("release memory 0x%x, size: %d\n", in rt_free()
630 rt_kprintf("total memory: %d\n", mem_size_aligned); in list_mem()
631 rt_kprintf("used memory : %d\n", used_mem); in list_mem()
632 rt_kprintf("maximum allocated memory: %d\n", max_mem); in list_mem()
634 FINSH_FUNCTION_EXPORT(list_mem, list memory usage information) in FINSH_FUNCTION_EXPORT()
655 rt_kprintf("Memory block wrong:\n"); in FINSH_FUNCTION_EXPORT()
664 MSH_CMD_EXPORT(memcheck, check memory data);
677 rt_kprintf("\n--memory item information --\n"); in memtrace()
702 MSH_CMD_EXPORT(memtrace, dump memory trace information);