next up previous contents index
Next: 16.8.4 amm_destroy: Destroy an Up: 16.8 API reference Previous: 16.8.2 amm_allocate: Allocate an

16.8.3 amm_deallocate: Deallocate an address range in an AMM (simple interface)

 

SYNOPSIS

#include <oskit/amm.h>

int amm_deallocate(amm_t *amm, oskit_addr_t addr, oskit_size_t size);

DESCRIPTION

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.

PARAMETERS

amm
A pointer to the amm_t structure representing the address map.
addr
Start address of the range.
size
Size of the range.

RETURNS

Returns zero if successful, an error code otherwise.

RELATED INFORMATION

amm_allocate, amm_init, amm_modify, amm_protect, amm_reserve



University of Utah Flux Research Group