next up previous contents index
Next: 15.6.10 lmm_free_page: free a Up: 15.6 API reference Previous: 15.6.8 lmm_alloc_page: allocate a

15.6.9 lmm_free: free previously-allocated memory

   

SYNOPSIS

#include <oskit/lmm.h>

void lmm_free(lmm_t *lmm, void *block, oskit_size_t size);

DESCRIPTION

This routine is used to return a memory block allocated with one of the above lmm_alloc functions to the LMM pool from which it was allocated.

PARAMETERS

lmm
The memory pool from which the memory block was allocated.
block
A pointer to the memory block to free, as returned by one of the lmm_alloc functions.
size
The size of the memory block to free, as specified to the allocation function when the block was allocated.



University of Utah Flux Research Group