/* Determine the total remaining free memory from all membags.  */
size_t membag_get_total_free(void)
/* Determine the total remaining free memory from all membags.  */
size_t membag_get_total_free(void)
{
	uint8_t i;
	size_t total_free = 0;
	for (i = 0; i < ARRAY_LEN(membag_list); i++) {
		total_free += membag_list[i].blocks_free *
				membag_list[i].block_size;
	}
	return total_free;
}