Searched refs:child_zone (Results 1 – 1 of 1) sorted by relevance
193 struct powercap_zone *child_zone; in powercap_read_zone() local231 child_zone = calloc(1, sizeof(struct powercap_zone)); in powercap_read_zone()232 if (child_zone == NULL) in powercap_read_zone()236 zone->children[i] = child_zone; in powercap_read_zone()240 free(child_zone); in powercap_read_zone()246 strcpy(child_zone->sys_name, zone->sys_name); in powercap_read_zone()247 strcat(child_zone->sys_name, "/"); in powercap_read_zone()248 strcat(child_zone->sys_name, dent->d_name); in powercap_read_zone()249 child_zone->parent = zone; in powercap_read_zone()256 powercap_read_zone(child_zone); in powercap_read_zone()