gpio_aggregator_count_lines
num_lines = gpio_aggregator_count_lines(aggr);
if (gpio_aggregator_count_lines(aggr) == 0)