Microchip® Advanced Software Framework

dlmalloc.h File Reference
#include "conf_dlmalloc.h"
#include <sys/types.h>

Data Structures

struct  mallinfo
 

Macros

#define ABORT_ON_ASSERT_FAILURE   1
 
#define DEFAULT_GRANULARITY   ((size_t)64U * (size_t)1024U)
 
#define DEFAULT_MMAP_THRESHOLD   ((size_t)256U * (size_t)1024U)
 
#define DEFAULT_TRIM_THRESHOLD   ((size_t)2U * (size_t)1024U * (size_t)1024U)
 
#define FOOTERS   0
 
#define HAVE_MORECORE   0
 
#define INSECURE   0
 
#define M_GRANULARITY   (-2)
 
#define M_MMAP_THRESHOLD   (-3)
 
#define M_TRIM_THRESHOLD   (-1)
 
#define MALLINFO_FIELD_TYPE   size_t
 
#define MALLOC_ALIGNMENT   ((size_t)8U)
 
#define MAP_ANONYMOUS   1
 
#define MAX_SIZE_T   (~(size_t)0)
 
#define MMAP_CLEARS   1
 
#define MORECORE_CONTIGUOUS   0
 
#define MSPACES   1
 
#define NO_MALLINFO   0
 
#define PROCEED_ON_ERROR   0
 
#define USE_BUILTIN_FFS   0
 
#define USE_DEV_RANDOM   0
 
#define USE_LOCKS   0
 

Typedefs

typedef void * mspace
 

Functions

mspace create_mspace (size_t capacity, int locked)
 
mspace create_mspace_with_base (void *base, size_t capacity, int locked)
 
size_t destroy_mspace (mspace msp)
 
void * mspace_calloc (mspace msp, size_t n_elements, size_t elem_size)
 
size_t mspace_footprint (mspace msp)
 
void mspace_free (mspace msp, void *mem)
 
void ** mspace_independent_calloc (mspace msp, size_t n_elements, size_t elem_size, void *chunks[])
 
void ** mspace_independent_comalloc (mspace msp, size_t n_elements, size_t sizes[], void *chunks[])
 
struct mallinfo mspace_mallinfo (mspace msp)
 
void * mspace_malloc (mspace msp, size_t bytes)
 
void mspace_malloc_stats (mspace msp)
 
int mspace_mallopt (int, int)
 
size_t mspace_max_footprint (mspace msp)
 
void * mspace_memalign (mspace msp, size_t alignment, size_t bytes)
 
void * mspace_realloc (mspace msp, void *mem, size_t newsize)
 
int mspace_trim (mspace msp, size_t pad)
 

#define ABORT_ON_ASSERT_FAILURE   1
#define DEFAULT_GRANULARITY   ((size_t)64U * (size_t)1024U)

Referenced by init_mparams().

#define DEFAULT_MMAP_THRESHOLD   ((size_t)256U * (size_t)1024U)

Referenced by init_mparams().

#define DEFAULT_TRIM_THRESHOLD   ((size_t)2U * (size_t)1024U * (size_t)1024U)

Referenced by init_mparams().

#define FOOTERS   0
#define HAVE_MORECORE   0

Referenced by sys_alloc(), and sys_trim().

#define INSECURE   0
#define M_GRANULARITY   (-2)

Referenced by change_mparam().

#define M_MMAP_THRESHOLD   (-3)

Referenced by change_mparam().

#define M_TRIM_THRESHOLD   (-1)

Referenced by change_mparam().

#define MALLINFO_FIELD_TYPE   size_t
#define MALLOC_ALIGNMENT   ((size_t)8U)

Referenced by init_mparams(), and internal_memalign().

#define MAP_ANONYMOUS   1
#define MAX_SIZE_T   (~(size_t)0)
#define MMAP_CLEARS   1
#define MORECORE_CONTIGUOUS   0

Referenced by sys_alloc().

#define MSPACES   1
#define NO_MALLINFO   0
#define PROCEED_ON_ERROR   0
#define USE_BUILTIN_FFS   0
#define USE_DEV_RANDOM   0
#define USE_LOCKS   0

typedef void* mspace

mspace create_mspace_with_base ( void *  base,
size_t  capacity,
int  locked 
)
void* mspace_calloc ( mspace  msp,
size_t  n_elements,
size_t  elem_size 
)
size_t mspace_footprint ( mspace  msp)
void** mspace_independent_calloc ( mspace  msp,
size_t  n_elements,
size_t  elem_size,
void *  chunks[] 
)
void** mspace_independent_comalloc ( mspace  msp,
size_t  n_elements,
size_t  sizes[],
void *  chunks[] 
)
struct mallinfo mspace_mallinfo ( mspace  msp)
void mspace_malloc_stats ( mspace  msp)
int mspace_mallopt ( int  ,
int   
)

References change_mparam().

size_t mspace_max_footprint ( mspace  msp)
void* mspace_memalign ( mspace  msp,
size_t  alignment,
size_t  bytes 
)
void* mspace_realloc ( mspace  msp,
void *  mem,
size_t  newsize 
)
int mspace_trim ( mspace  msp,
size_t  pad 
)