next up previous contents index
Next: 12 Minimal C Library: Up: 11.4 Memory Interface Previous: 11.4.6 alloc_gen: Allocate a

11.4.7 avail: Return the amount of free memory

 

SYNOPSIS

#include <oskit/com/mem.h>

oskit_size_t oskit_mem_avail(oskit_mem_t *m, oskit_u32_t flags);

DESCRIPTION

Return the amount of free space in the memory object pool. If flags is non-zero, it should be a memory type flag, which indicates that the return value should be the amount of free space of that type.

PARAMETERS

m
The memory object to operate on.
flags
Options and constraints.

RETURNS

Returns the amount of memory available on success.


Utah Flux Research Group