next up previous contents index
Next: 9.5.13 memalignf: allocate aligned Up: 9.5 Memory Allocation Previous: 9.5.11 sfree: release a

9.5.12 mallocf: allocate uninitialized memory with explicit LMM flags

   

SYNOPSIS

#include <oskit/c/malloc.h>

void *mallocf(size_t size, unsigned int flags);

DESCRIPTION

Allocates uninitialized memory from malloc_lmm. The interface is similar to malloc but with an additional flags parameter which is passed to lmm_alloc.

For kernels running in the base environment on an x86, meaningful values for flags are as described in Section 10.11.1.

PARAMETERS

size
Size in bytes of desired allocation.
flags
Flags to pass to lmm_alloc.

RETURNS

Returns a pointer to the allocated memory or zero if none.



University of Utah Flux Research Group