Skip to main content


ec_mt_alloc — Makes an allocation against a given memtype


#include "ec_malloc.h"

| void * **ec_mt_alloc** ( | def, |   | |   | size); |   |

struct ec_mem_type_def * <var class="pdparam">def</var>; size_t <var class="pdparam">size</var>;


**Configuration Change. ** This feature is available starting from Momentum 3.0.18.

Makes an allocation against a given memtype. For a list of memory types see the section called “Memory Types”.


This performs a raw allocation from the allocator backend. Do not call this function directly, ec_malloc will call it at the appropriate time.

Size will be the size to use for the allocation.

Was this page helpful?