Lines Matching full:memory
14 * 2010-10-23 yi.qiu add module memory allocator
19 * KERN_SLABALLOC.C - Kernel SLAB memory allocator
77 * This function will set a hook function, which will be invoked when a memory
78 * block is allocated from heap memory.
89 * This function will set a hook function, which will be invoked when a memory
90 * block is released to heap memory.
114 * In a kernel implementation all this memory will be physical so
116 * memory. The upside is that overhead is bounded... this is the *worst*
120 * are required, only a critical section. When one cpu frees memory
155 * + ability to allocate arbitrarily large chunks of memory
468 * This function will allocate a block from system heap memory.
471 * - If there is no nbytes sized memory valid in system,
474 * @param size the size of memory to be allocated
476 * @return the allocated memory
507 ("malloc a large memory 0x%x, page cnt %d, kup %d\n", in rt_malloc()
551 * No chunks are available but nfree said we had some memory, so in rt_malloc()
552 * it must be available in the never-before-used-memory area in rt_malloc()
671 * This function will change the size of previously allocated memory block.
673 * @param ptr the previously allocated memory block
674 * @param size the new size of memory block
676 * @return the allocated memory
721 * Allocate memory for the new request size. Note that zoneindex has in rt_realloc()
740 * that are size bytes of memory each and returns a pointer to the allocated
741 * memory.
743 * The allocated memory is filled with bytes of value zero.
748 * @return pointer to allocated memory / NULL pointer if there is an error
757 /* zero the memory */ in rt_calloc()
766 * This function will release the previous allocated memory block by rt_malloc.
767 * The released memory block is taken back to system heap.
769 * @param ptr the address of memory which will be released
783 /* get memory usage */ in rt_free()
788 ("free a memory 0x%x and align to 0x%x, kup index %d\n", in rt_free()
813 ("free large memory block 0x%x, page count %d\n", in rt_free()
927 rt_kprintf("total memory: %d\n", heap_end - heap_start); in list_mem()
928 rt_kprintf("used memory : %d\n", used_mem); in list_mem()
929 rt_kprintf("maximum allocated memory: %d\n", max_mem); in list_mem()
931 FINSH_FUNCTION_EXPORT(list_mem, list memory usage information)