next up previous contents index
Next: 7.7.10 fs_realloc: Resize a Up: 7.7 Dependencies on the Previous: 7.7.8 fs_wakeup: Wakeup any

7.7.9 fs_malloc: Allocate memory from the heap

 

SYNOPSIS

#include <oskit/fs/fs.h>

void *fs_malloc(oskit_u32_t size);

DIRECTION

filesystem library tex2html_wrap_inline32841 client OS

DESCRIPTION

This function returns a pointer to a chunk of contiguous memory of at least size bytes. The client operating system need not provide any alignment guarantees for the chunk of memory.

PARAMETERS

size
The desired number of bytes.

RETURNS

Returns a pointer to the chunk of memory, or NULL on error.



University of Utah Flux Research Group