Zephyr API Documentation  3.0.0
A Scalable Open Source RTOS
3.0.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
shared_multi_heap.h File Reference

Go to the source code of this file.

Data Structures

struct  shared_multi_heap_region
 SMH region struct. More...
 

Typedefs

typedef bool(* smh_init_reg_fn_t) (struct shared_multi_heap_region *reg, uint8_t **v_addr, size_t *size)
 Region init function. More...
 

Enumerations

enum  smh_reg_attr { SMH_REG_ATTR_CACHEABLE , SMH_REG_ATTR_NON_CACHEABLE , SMH_REG_ATTR_NUM }
 Memory region attributes / capabilities. More...
 

Functions

int shared_multi_heap_pool_init (smh_init_reg_fn_t smh_init_reg_fn)
 Init the pool. More...
 
void * shared_multi_heap_alloc (enum smh_reg_attr attr, size_t bytes)
 Allocate memory from the memory shared multi-heap pool. More...
 
void shared_multi_heap_free (void *block)
 Free memory from the shared multi-heap pool. More...