ChibiOS  21.6.0
chmemcore.h File Reference

Core memory manager macros and structures. More...

Go to the source code of this file.

Data Structures

struct  memcore_t
 Type of memory core object. More...
 

Macros

#define CH_CFG_MEMCORE_SIZE   0
 Managed RAM size. More...
 
#define chCoreAllocAlignedWithOffsetI   chCoreAllocFromTopI
 Allocates a memory block. More...
 
#define chCoreAllocAlignedWithOffset   chCoreAllocFromTop
 Allocates a memory block. More...
 

Typedefs

typedef void *(* memgetfunc_t) (size_t size, unsigned align)
 Memory get function. More...
 
typedef void *(* memgetfunc2_t) (size_t size, unsigned align, size_t offset)
 Enhanced memory get function. More...
 

Functions

void __core_init (void)
 Low level memory manager initialization. More...
 
void * chCoreAllocFromBaseI (size_t size, unsigned align, size_t offset)
 Allocates a memory block starting from the lowest address upward. More...
 
void * chCoreAllocFromTopI (size_t size, unsigned align, size_t offset)
 Allocates a memory block starting from the top address downward. More...
 
void * chCoreAllocFromBase (size_t size, unsigned align, size_t offset)
 Allocates a memory block starting from the lowest address upward. More...
 
void * chCoreAllocFromTop (size_t size, unsigned align, size_t offset)
 Allocates a memory block starting from the top address downward. More...
 
size_t chCoreGetStatusX (void)
 Core memory status. More...
 
static void * chCoreAllocAlignedI (size_t size, unsigned align)
 Allocates a memory block. More...
 
static void * chCoreAllocAligned (size_t size, unsigned align)
 Allocates a memory block. More...
 
static void * chCoreAllocI (size_t size)
 Allocates a memory block. More...
 
static void * chCoreAlloc (size_t size)
 Allocates a memory block. More...
 

Detailed Description

Core memory manager macros and structures.

Definition in file chmemcore.h.