#include <oskit/amm.h>void amm_free_func(amm_t *amm, amm_entry_t *entry);
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.
- amm
- A pointer to the amm_t structure representing the address map.
- entry
- The entry to be destroyed.
amm_entry_field, amm_init_gen