next up previous contents index
Next: 16.8.8 amm_find_gen: Locate a Up: 16.8 API reference Previous: 16.8.6 amm_entry_field: Accessor macros

16.8.7 amm_find_addr: Locate the map entry containing a specific address

 

SYNOPSIS

#include <oskit/amm.h>

amm_entry_t *amm_find_addr(amm_t *amm, oskit_addr_t addr);

DESCRIPTION

Locates the map entry describing the given address in the map amm and returns a pointer to it. Since AMM maps contain every possible address in some entry, this routine will always succeed; i.e., it will always return a valid amm_entry_t pointer.

AMM-private fields of the returned entry can be queried with the amm_entry_field macros.

PARAMETERS

amm
A pointer to the amm_t structure representing the address map.
addr
Address to locate.

RETURNS

Returns a pointer to the entry containing the desired address.



University of Utah Flux Research Group