/* Walk the group of registered statistics and call walk_func() for each element in the list. This function  */
int stats_group_walk(stats_group_walk_fn *walk_func, void *arg)
/* Walk the group of registered statistics and call walk_func() for each element in the list. This function  */
int stats_group_walk(stats_group_walk_fn *walk_func, void *arg)
{
	struct stats_hdr *hdr;
	int rc;
	for (hdr = stats_list; hdr != NULL; hdr = hdr->s_next) {
		rc = walk_func(hdr, arg);
		if (rc != 0) {
			return rc;
		}
	}
	return 0;
}