ChibiOS/RT  6.0.3
chmemheaps.h File Reference

Memory heaps macros and structures. More...

Go to the source code of this file.

Data Structures

union  heap_header
 Memory heap block header. More...
 
struct  memory_heap
 Structure describing a memory heap. More...
 

Macros

#define CH_HEAP_ALIGNMENT   8U
 Minimum alignment used for heap. More...
 
#define CH_HEAP_AREA(name, size)
 Allocation of an aligned static heap buffer. More...
 

Typedefs

typedef struct memory_heap memory_heap_t
 Type of a memory heap. More...
 
typedef union heap_header heap_header_t
 Type of a memory heap header. More...
 

Functions

void _heap_init (void)
 Initializes the default heap. More...
 
void chHeapObjectInit (memory_heap_t *heapp, void *buf, size_t size)
 Initializes a memory heap from a static memory area. More...
 
void * chHeapAllocAligned (memory_heap_t *heapp, size_t size, unsigned align)
 Allocates a block of memory from the heap by using the first-fit algorithm. More...
 
void chHeapFree (void *p)
 Frees a previously allocated memory block. More...
 
size_t chHeapStatus (memory_heap_t *heapp, size_t *totalp, size_t *largestp)
 Reports the heap status. More...
 
static void * chHeapAlloc (memory_heap_t *heapp, size_t size)
 Allocates a block of memory from the heap by using the first-fit algorithm. More...
 
static size_t chHeapGetSize (const void *p)
 Returns the size of an allocated block. More...
 

Detailed Description

Memory heaps macros and structures.

Definition in file chmemheaps.h.