Functions provided by the rtl_malloc.o module: void *rt_malloc (size_t size); void *rt_calloc (size_t nelem, size_t elem_size); void rt_free (void *ptr); void *rt_realloc (void *p, size_t new_len); #define malloc rt_malloc #define free rt_free #define realloc rt_realloc #define calloc rt_calloc free() function do not perform any validation checks. The pointer passed must have been returned by a previous call to malloc(), calloc() or realloc(). Otherwise, or if free(ptr) has already been called before, undefined behaviour occurs. When the rtl_malloc module is loaded, the default memory pool allocated is 1Mb. You can change the memory pool with the module parameter "max_size". For a 512Kb initial memory pool: # insmod rtl_malloc.o max_size=512