Searched refs:child_zone (Results 1 – 1 of 1) sorted by relevance
185 struct powercap_zone *child_zone; in powercap_read_zone() local223 child_zone = calloc(1, sizeof(struct powercap_zone)); in powercap_read_zone()224 if (child_zone == NULL) in powercap_read_zone()228 zone->children[i] = child_zone; in powercap_read_zone()232 free(child_zone); in powercap_read_zone()238 strcpy(child_zone->sys_name, zone->sys_name); in powercap_read_zone()239 strcat(child_zone->sys_name, "/"); in powercap_read_zone()240 strcat(child_zone->sys_name, dent->d_name); in powercap_read_zone()241 child_zone->parent = zone; in powercap_read_zone()248 powercap_read_zone(child_zone); in powercap_read_zone()