Memory allocation in L2 from cluster cores.
More...
This API uses cluster delegation to FC to allocate memory in L2.
This structure is used by the runtime to manage a cluster remote allocation. It must be instantiated once for each allocation and must be kept alive until the allocation is finished. It can be instantiated as a normal variable, for example as a global variable, a local one on the stack, or through a memory allocator.
This structure is used by the runtime to manage a cluster remote free. It must be instantiated once for each free and must be kept alive until the free is finished. It can be instantiated as a normal variable, for example as a global variable, a local one on the stack, or through a memory allocator.
- Parameters
-
chunk | Chunk to be freed. |
size | Size in bytes of the memory to be freed. |
req | Request structure used for termination. |
This blocks the calling core until the specified cluster remote free is finished.
- Parameters
-
req | Request structure used for termination. |
- Parameters
-
size | Size in bytes of the memory to be allocated. |
req | Request structure used for termination. |
This blocks the calling core until the specified cluster remote allocation is finished.
- Parameters
-
req | Request structure used for termination. |
- Returns
- Allocated chunk or NULL if there was not enough memory available.