94void *
calloc(
size_t nmemb,
size_t size);
184#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 201112L)
206#define DEFAULT_MXFAST 64
208#define M_TRIM_THRESHOLD -1
209#define DEFAULT_TRIM_THRESHOLD (256*1024)
212#define DEFAULT_TOP_PAD 0
214#define M_MMAP_THRESHOLD -3
215#define DEFAULT_MMAP_THRESHOLD (256*1024)
218#define DEFAULT_MMAP_MAX 65536
void * memalign(size_t alignment, size_t size)
Allocate a block of memory aligned to a specified block size.
int mem_check_block(void *p)
Only available with KM_DBG.
void * calloc(size_t nmemb, size_t size)
Allocate a block of memory and initialize it to 0.
void * valloc(size_t size)
Allocate a block of memory aligned to the system page size.
void * aligned_alloc(size_t alignment, size_t size)
Allocate memory aligned to a specified block size.
int malloc_irq_safe(void)
Determine if it is safe to call malloc() in an IRQ context.
void * malloc(size_t size)
Allocate a block of memory.
void malloc_stats(void)
Debug function.
int mem_check_all(void)
Only available with KM_DBG.
void * realloc(void *ptr, size_t size)
Change the size of a previously allocated block of memory.
void free(void *ptr)
Release a previously allocated block of memory.
ANSI C functions.
Definition malloc.h:38
int smblks
number of fastbin blocks
Definition malloc.h:44
int uordblks
total allocated space
Definition malloc.h:54
int fsmblks
space available in freed fastbin blocks
Definition malloc.h:52
int arena
non-mmapped space allocated from system
Definition malloc.h:40
int usmblks
maximum total allocated space
Definition malloc.h:50
int hblks
number of mmapped regions
Definition malloc.h:46
int ordblks
number of free chunks
Definition malloc.h:42
int fordblks
total free space
Definition malloc.h:56
int hblkhd
space in mmapped regions
Definition malloc.h:48
int keepcost
top-most, releasable (via malloc_trim) space
Definition malloc.h:58