Function soti_distribute_memory#

Function Documentation#

void *soti_distribute_memory(void *mem, const ndir_t *p_nnz, ord_t order, flag_t flag, sotinum_t *res)#

Function that distribute memory along the different components of an OTI number.

Parameters:
  • mem – [in] Addres of the allocated memory.

  • p_nnz – [in] List of values corresponding to the allocation size per element.

  • order – [in] OTI Truncation order.

  • flag – [in] Memory flag. flag=1 means memory is owned by the respective sotinum, otherwise flag=0.

  • res – [in] Addres of the resulting OTI number that will be distributed accordingly.

  • void* – [out] Address after every item was distributed.