ChibiOS 21.11.4
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.
#define chCoreAllocAlignedWithOffsetI   chCoreAllocFromTopI
 Allocates a memory block.
#define chCoreAllocAlignedWithOffset   chCoreAllocFromTop
 Allocates a memory block.

Typedefs

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

Functions

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

Detailed Description

Core memory manager macros and structures.

Definition in file chmemcore.h.