#include <oskit/c/malloc.h>void *smallocf(size_t size, unsigned int flags);
Allocates uninitialized memory from malloc_lmm. The interface is similar to smalloc but with an additional flags parameter which is passed to lmm_alloc. As with smalloc, the user must keep track of the size of the allocated chunk and pass that size to sfree when releasing the chunk.For kernels running in the base environment on an x86, meaningful values for flags are as described in Section 10.11.1.
- size
- Size in bytes of desired allocation.
- flags
- Flags to pass to lmm_alloc.
Returns a pointer to the allocated memory or zero if none.