ChibiOS/RT Architecture - Reference Manual - Guides |
Memory Pools macros and structures. More...
Go to the source code of this file.
Data Structures | |
struct | pool_header |
Memory pool free object header. More... | |
struct | MemoryPool |
Memory pool descriptor. More... | |
Defines | |
#define | _MEMORYPOOL_DATA(name, size, provider) {NULL, MEM_ALIGN_SIZE(size), provider} |
Data part of a static memory pool initializer. | |
#define | MEMORYPOOL_DECL(name, size, provider) MemoryPool name = _MEMORYPOOL_DATA(name, size, provider) |
Static memory pool initializer in hungry mode. | |
Functions | |
void | chPoolInit (MemoryPool *mp, size_t size, memgetfunc_t provider) |
Initializes an empty memory pool. | |
void * | chPoolAllocI (MemoryPool *mp) |
Allocates an object from a memory pool. | |
void * | chPoolAlloc (MemoryPool *mp) |
Allocates an object from a memory pool. | |
void | chPoolFreeI (MemoryPool *mp, void *objp) |
Releases (or adds) an object into (to) a memory pool. | |
void | chPoolFree (MemoryPool *mp, void *objp) |
Releases (or adds) an object into (to) a memory pool. |
Memory Pools macros and structures.
Definition in file chmempools.h.