PDK API Guide for J721E
MemoryP

Introduction

MemoryP interface

Files

file  MemoryP.h
 Memory module for the RTOS Porting Interface.
 

Data Structures

struct  MemoryP_Stats
 Memory Heap stats. More...
 

Functions

void * MemoryP_ctrlAlloc (uint32_t size, uint8_t alignment)
 Function which is used to allocate memory for control operations. More...
 
void MemoryP_ctrlFree (void *ptr, uint32_t size)
 Function which is used to free previously allocated control memory. More...
 
void * MemoryP_dataAlloc (uint32_t size, uint8_t alignment)
 Function which is used to allocate memory for data operations. More...
 
void MemoryP_dataFree (void *ptr, uint32_t size)
 Function which is used to free previously allocated data memory. More...
 
void MemoryP_getStats (MemoryP_Stats *stats)
 Function which is used to get data memory stats. More...
 

Function Documentation

void* MemoryP_ctrlAlloc ( uint32_t  size,
uint8_t  alignment 
)

Function which is used to allocate memory for control operations.

Parameters
sizeSize of the requested memory
alignmentRequested alignment in bytes
Returns
Pointer to the allocated memory on success or a NULL on an error
void MemoryP_ctrlFree ( void *  ptr,
uint32_t  size 
)

Function which is used to free previously allocated control memory.

Parameters
ptrPointer to the memory to be cleaned up
sizeSize of the memory which is being cleaned up
Returns
None
void* MemoryP_dataAlloc ( uint32_t  size,
uint8_t  alignment 
)

Function which is used to allocate memory for data operations.

Parameters
sizeSize of the requested memory
alignmentRequested alignment in bytes
Returns
Pointer to the allocated memory on success or a NULL on an error
void MemoryP_dataFree ( void *  ptr,
uint32_t  size 
)

Function which is used to free previously allocated data memory.

Parameters
ptrPointer to the memory to be cleaned up
sizeSize of the memory which is being cleaned up
Returns
None
void MemoryP_getStats ( MemoryP_Stats stats)

Function which is used to get data memory stats.

Parameters
statsPointer to memory stats structure
Returns
None