MC_knlCalloc#

Allocate a zero-filled WIPI-managed memory block and return its memory ID.

Prototype#

M_Uint32 MC_knlCalloc(M_Int32 size);
M_Uint32 MC_knlCalloc(M_Int32 size)#

Allocate a zero-filled WIPI-managed memory block and return its memory ID.

Like MC_knlAlloc, this returns a memory ID rather than a stable native pointer.

Ownership

The caller owns the memory ID and releases it with MC_knlFree.

API level

WIPI-C 1.2.1, ordinal 138.

Documentation status

reviewed.

Parameters:
  • size – Requested zero-filled allocation size in bytes.

Returns:

A nonzero memory ID on success, or the provider-defined failure value.

Catalog identity#

Field

Value

API level

1.2.1

Family

MC_KNL

Ordinal

138

Documentation

reviewed

Implementation class

table

ABI class

word-tail

Usage#

Like MC_knlAlloc, this returns a memory ID rather than a stable native pointer.

Parameters#

Name

Meaning

size

Requested zero-filled allocation size in bytes.

Return value#

A nonzero memory ID on success, or the provider-defined failure value.

Ownership#

The caller owns the memory ID and releases it with MC_knlFree.

Profile availability#

API membership, device ABI, and install profile are independent. The rows below describe libwipi implementation evidence, not platform-wide WIPI requirements.

ABI profile

Install profile

Current evidence

host-sim

none

headers only

ktf-samsung

none

linkable generated veneer

ktf-samsung

aram-ktf

linkable generated veneer

ktf-samsung

sch-w8300-qpst-probe

linkable generated veneer; named-device candidate

lgt-raptor

aram-raptor

observed in the scoped emulator suite

lgt-raptor

aram-wie-raptor

observed in the scoped emulator suite

skt-samsung-sch-w830-dl21

none

linkable exact-device fixed-root veneer

Compiled examples#

Evidence boundary#

Samsung/KTF selector confidence: confirmed. Catalog evidence: anycall_magichole:analysis/decompiled/wipi_mc_knl_spec_adapter.c:1119.