Lines Matching refs:zids
81 zoneid_t *zids; in getzoneidbylabel() local
109 if ((zids = malloc(nzents * sizeof (zoneid_t))) == NULL) in getzoneidbylabel()
113 if (zone_list(zids, &nzents) != 0) { in getzoneidbylabel()
114 free(zids); in getzoneidbylabel()
119 free(zids); in getzoneidbylabel()
126 if (zids[i] == GLOBAL_ZONEID) in getzoneidbylabel()
129 if (zone_getattr(zids[i], ZONE_ATTR_SLBL, &test_sl, in getzoneidbylabel()
134 zoneid = zids[i]; in getzoneidbylabel()
135 free(zids); in getzoneidbylabel()
139 free(zids); in getzoneidbylabel()
199 zoneid_t *zids; in getlabelbypath() local
216 zids = malloc(nzents * sizeof (zoneid_t)); in getlabelbypath()
217 if (zids == NULL) in getlabelbypath()
222 if (zone_list(zids, &nzents) != 0) { in getlabelbypath()
223 free(zids); in getlabelbypath()
228 free(zids); in getlabelbypath()
234 free(zids); in getlabelbypath()
242 if (zids[i] == GLOBAL_ZONEID) in getlabelbypath()
245 if (zone_getattr(zids[i], ZONE_ATTR_ROOT, zoneroot, in getlabelbypath()
261 if (zone_getattr(zids[i], ZONE_ATTR_SLBL, slabel, in getlabelbypath()
265 free(zids); in getlabelbypath()
269 free(zids); in getlabelbypath()