Function allocm_probe

Function Documentation

int allocm_probe(struct allocm_entry *map, size_t max_elts, size_t index)

Search a metadata area for a free datablock/node.

Parameters:
  • map – Pointer to the start of elements/nodes metadata block

  • max_elts – Max # of elements for the data structure (i.e. the size of the metadata area in units)

  • index – Index to start probing at.

Returns:

Index of free datablock in map, or -1 if none found