next up previous contents index
Next: 16.8.19 amm_select: Returns an Up: 16.8 API reference Previous: 16.8.17 amm_protect: Modify the

16.8.18 amm_reserve: Mark as unavailable an address range in an AMM (simple interface)

 

SYNOPSIS

#include <oskit/amm.h>

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

DESCRIPTION

Mark the specified address range as AMM_RESERVED. All entries within the range are effected regardless of existing attributes.

Amm_Reserve is a simplified interface to amm_modify intended to be used with amm_init, amm_allocate, amm_deallocate, and amm_protect.

PARAMETERS

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

RETURNS

Returns zero if successful, an error code otherwise.

RELATED INFORMATION

amm_allocate, amm_deallocate, amm_init, amm_modify, amm_protect



University of Utah Flux Research Group