#include <oskit/amm.h>int amm_deallocate(amm_t *amm, oskit_addr_t addr, oskit_size_t size);
Marks a range of address space as AMM_FREE. Only pieces of the range marked as AMM_ALLOCATED (e.g., allocated with amm_allocate) are ``freed,'' all other regions are ignored.Amm_Deallocate is a simplified interface to amm_modify intended to be used with amm_init, amm_allocate, amm_protect, and amm_reserve.
- amm
- A pointer to the amm_t structure representing the address map.
- addr
- Start address of the range.
- size
- Size of the range.
Returns zero if successful, an error code otherwise.
amm_allocate, amm_init, amm_modify, amm_protect, amm_reserve