next up previous contents index
Next: 16.8.10 amm_init: initialize an Up: 16.8 API reference Previous: 16.8.8 amm_find_gen: Locate a

16.8.9 amm_free_func: Free an AMM map entry (user-provided callout)

 

SYNOPSIS

#include <oskit/amm.h>

void amm_free_func(amm_t *amm, amm_entry_t *entry);

DESCRIPTION

User-provided function called whenever an AMM entry needs to be deallocated from the given map amm. The free function for an AMM is set at initialization time by passing a pointer to it as a parameter to amm_init_gen.

The range and attributes of the entry can be obtained using the amm_entry_field macros.

If the map is using extended map entries, this routine should clean up any map-private data before deallocating the entry.

PARAMETERS

amm
A pointer to the amm_t structure representing the address map.
entry
The entry to be destroyed.

RELATED INFORMATION

amm_entry_field, amm_init_gen



University of Utah Flux Research Group