Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
165
11.16.4.5 MM_ERROR utMmanGetSize ( MML_MMAN_HEAP_HANDLE hdlmem, MM_U32
∗
size )
Get the size of the heap.
Note:
Typically, an application would not use this function, but call mmlGdcVideoGetSize()
Parameters
in
hdlmem
Heap to get information for.
out
size
Pointer to variable to receive the information.
Return values
MML_OK
On success.
MML_ERR_MMAN_INVALID_PARAMETER
If hdlmem is NULL.
11.16.4.6 MM_ERROR utMmanHeapAlloc ( MML_MMAN_HEAP_HANDLE hdlmem, MM_U32 size,
MM_U32 alignment, MM_ADDR
∗
addr )
Allocate a block of memory from the specified heap.
Note:
Typically, an application would not use this function (see utMmanCreateHeap).
Parameters
in
hdlmem
Heap to perform the allocation from.
in
size
Number of bytes to allocate.
in
alignment
Alignment to use for the allocation.
out
addr
Pointer to the newly allocated memory.
Return values
MML_OK
On success.
MML_ERR_MMAN_INVALID_PARAMETER
If a parameter is invalid.
MML_ERR_MMAN_NO_MEMORY
If not enough system memory for internal data.
MML_ERR_MMAN_NO_VRAM
If no contiguous block of size bytes with alignment is
available.
11.16.4.7 MM_ERROR utMmanHeapFree ( MML_MMAN_HEAP_HANDLE hdlmem, void
∗
addr )
Free a block of memory previously allocated by utMmanHeapAlloc.
Note:
Typically, an application would not use this function (see utMmanCreateHeap).
Parameters
in
hdlmem
Heap to perform the free from.
in
addr
Pointer to the memory to free.
Return values
MML_OK
On success.
MML_ERR_MMAN_INVALID_PARAMETER
If hdlmem is NULL.
MML_ERR_MMAN_INVALID_MEMORY
If addr does not point to a currently allocated
memory block.