Apps Components Interfaces All Files Source Tree | source: tos.interfaces.MemAlloc.nc |
Interface for dynamic memory allocators.
Commands |
Events |
Commands - Details |
Parameters: |
handle - Region to resize. size - New size. |
Returns: | SUCCESS if reallocated, FAIL otherwise. |
Parameters: |
handle - Handle to region to lock. |
Returns: | SUCCESS if locked successfuly, FAIL otherwise. |
Parameters: |
handle - Handle to region to unlock. |
Returns: | SUCCESS if unlocked successfuly, FAIL otherwise. |
Parameters: |
handle - Handle to region to free. |
Returns: | Size of freed region. |
Returns: | Whether the request to compact was accepted. |
Parameters: |
A - memory region. |
Returns: | The region's size. |
Parameters: |
handle - The region to check. |
Returns: | Whether the region is locked. |
Returns: | The number of free bytes. |
Events - Details |
Parameters: |
handle - The handle to the requested region. success - Whether the allocation was successful. |
Returns: | Should always return SUCCESS. |
Parameters: |
handle - The handle to the requested region. success - Whether the reallocation was successful. |
Returns: | Should always return SUCCESS. |
Returns: | Should always return SUCCESS. |