ContentsIndex
PreviousUpNext
Memory
Topics | Functions
Description

Provides functions for memory allocation, free, etc.

Introduction

There are a few variant memory allocation. The vm_malloc() allows a number of bytes of memory. The vm_calloc() allocates and clear the memory. The vm_realloc() re-allocates memory by copying the previously allocated memory to the newly allocated memory. It is equivalent to a memory copy. The vm_malloc_dma() allocates non-cacheable memory, which provides a faster memory access. 

All allocated memory can be freed by calling vm_free().

Limitation

N/A

Group
Functions
Function 
Description 
Allocates the specified size of memory and clear the memory with zeros. 
Frees the memory allocated by vm_malloc(), vm_calloc(), vm_realloc(), or vm_malloc_dma(). Frees null is allowed. 
Allocates the specified size of memory. Uses vm_pmng_get_memory_status() to query the available max size of memory that can be allocated. User should configure the memory pool size of the VXP. The max size of available memory may not be allocated due to memory fragmentation. 
Allocates non-cacheable (e.g. DMA - Direct Memory Access), which provide faster memory access. This function is mostly used by graphic related features. 
Reallocates the specified size of memory for the memory already allocated before. The content of the memory will be "copied". 
Links
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.