Skip to main content

Name

ec_mt_alloc — Makes an allocation against a given memtype

Synopsis

#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>;

Description

**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”.

Note

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?