Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
shared_multi_heap.h File Reference

Public API for Shared Multi-Heap framework. More...

Go to the source code of this file.

Data Structures

struct  shared_multi_heap_region
 SMH region struct. More...
 

Macros

#define MAX_SHARED_MULTI_HEAP_ATTR   SMH_REG_ATTR_NUM
 Maximum number of standard attributes.
 

Enumerations

enum  shared_multi_heap_attr { SMH_REG_ATTR_CACHEABLE , SMH_REG_ATTR_NON_CACHEABLE , SMH_REG_ATTR_NUM }
 SMH region attributes enumeration type. More...
 

Functions

int shared_multi_heap_pool_init (void)
 Init the pool.
 
void * shared_multi_heap_alloc (enum shared_multi_heap_attr attr, size_t bytes)
 Allocate memory from the memory shared multi-heap pool.
 
void * shared_multi_heap_aligned_alloc (enum shared_multi_heap_attr attr, size_t align, size_t bytes)
 Allocate aligned memory from the memory shared multi-heap pool.
 
void shared_multi_heap_free (void *block)
 Free memory from the shared multi-heap pool.
 
int shared_multi_heap_add (struct shared_multi_heap_region *region, void *user_data)
 Add an heap region to the shared multi-heap pool.
 

Detailed Description

Public API for Shared Multi-Heap framework.