# /space/home/slher/rel/Beken/v6_4_5/macsw/modules/ke/src/ke_mem.c File Reference

Implementation of the heap management module. More...

`#include "co_int.h"`
`#include "co_bool.h"`
`#include "arch.h"`
`#include "dbg_assert.h"`
`#include "co_math.h"`
`#include "ke_config.h"`
`#include "ke_env.h"`
`#include "ke_mem.h"`

Go to the source code of this file.

## Data Structures
struct | mblock_free
| Free memory block delimiter structure (size must be word multiple). More...
struct | mblock_used
| Used memory block delimiter structure (size must be word multiple). More...
## Defines
#define | KE_HEAP_SIZE NX_HEAP_SIZE
| Heap size for nX.
## Functions
struct mblock_free * | ke_mem_init (void)
| Heap initialization.
void * | ke_malloc (uint32_t size)
| Allocation of a block of memory.
void | ke_free (void *mem_ptr)
| Freeing of a block of memory.
## Variables
uint8_t | ke_mem_heap [KE_HEAP_SIZE]
| Data area reserved for the kernel heap.

## Detailed Description

Implementation of the heap management module.

Copyright (C) RivieraWaves 2011-2019

Definition in file ke_mem.c.