Memory allocation in L2 memory from FC.
More...
void pi_l2_free |
( |
void * |
chunk, |
|
|
int |
size |
|
) |
| |
- Parameters
-
chunk | Chunk to be freed. |
size | Size in bytes of the memory to be freed. |
void* pi_l2_malloc |
( |
int |
size | ) |
|
The allocated memory is 4-bytes aligned. The caller has to provide back the size of the allocated chunk when freeing it.
- Parameters
-
size | Size in bytes of the memory to be allocated. |
- Returns
- The allocated chunk or NULL if there was not enough memory available.
void* pi_l2_malloc_align |
( |
int |
size, |
|
|
int |
align |
|
) |
| |
The allocated memory is aligned on the specified number of bytes. The caller has to provide back the size of the allocated chunk when freeing it.
- Parameters
-
size | Size in bytes of the memory to be allocated. |
align | Alignment in bytes. |
- Returns
- The allocated chunk or NULL if there was not enough memory available.
void pi_l2_malloc_dump |
( |
void |
| ) |
|
This function can be used to display free blocks available from the L2 allocator.