/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | zone.c | 80 uint_t nzents; in getzoneidbylabel() local 91 nzents = 0; in getzoneidbylabel() 92 if (zone_list(NULL, &nzents) != 0) in getzoneidbylabel() 96 if (nzents == 0) { in getzoneidbylabel() 106 nzents += 8; in getzoneidbylabel() 107 if ((zids = malloc(nzents * sizeof (zoneid_t))) == NULL) in getzoneidbylabel() 109 nzents_saved = nzents; in getzoneidbylabel() 111 if (zone_list(zids, &nzents) != 0) { in getzoneidbylabel() 115 if (nzents > nzents_saved) { in getzoneidbylabel() 121 for (i = 0; i < nzents; i++) { in getzoneidbylabel() [all …]
|
/illumos-gate/usr/src/cmd/rcap/common/ |
H A D | utils.c | 267 get_running_zones(uint_t *nzents, zone_entry_t **zents) in get_running_zones() argument 276 if (zone_list(NULL, nzents) != 0) { in get_running_zones() 282 if (*nzents == 0) in get_running_zones() 285 if ((zids = (zoneid_t *)calloc(*nzents, sizeof (zoneid_t))) == NULL) { in get_running_zones() 290 nzents_saved = *nzents; in get_running_zones() 292 if (zone_list(zids, nzents) != 0) { in get_running_zones() 297 if (*nzents != nzents_saved) { in get_running_zones() 303 *zents = calloc(*nzents, sizeof (zone_entry_t)); in get_running_zones() 311 for (i = 0; i < *nzents; i++) { in get_running_zones() 329 *nzents = zentp - *zents; in get_running_zones()
|
/illumos-gate/usr/src/cmd/tzreload/ |
H A D | tzreload.c | 285 uint_t ui, nzents, onzents; in walk_zones() local 313 nzents = 0; in walk_zones() 314 if (zone_list(NULL, &nzents) != 0) { in walk_zones() 321 if (nzents == 0) in walk_zones() 324 if ((zids = malloc(nzents * sizeof (zoneid_t))) == NULL) { in walk_zones() 329 onzents = nzents; in walk_zones() 330 if (zone_list(zids, &nzents) != 0) { in walk_zones() 336 if (nzents != onzents) { in walk_zones() 342 for (ui = 0; ui < nzents; ui++) { in walk_zones()
|
/illumos-gate/usr/src/cmd/rcap/rcapd/ |
H A D | rcapd_collection_zone.c | 82 uint_t nzents; in lcollection_update_zone() local 88 if (get_running_zones(&nzents, &zents) != 0) in lcollection_update_zone() 91 for (i = 0; i < nzents; i++) { in lcollection_update_zone()
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | auto_subr.c | 95 uint_t nzents; in loadzone_maps() local 101 if (zone_list(NULL, &nzents) != 0) { in loadzone_maps() 106 if (nzents == 0) in loadzone_maps() 109 zids = malloc(nzents * sizeof (zoneid_t)); in loadzone_maps() 110 nzents_saved = nzents; in loadzone_maps() 112 if (zone_list(zids, &nzents) != 0) { in loadzone_maps() 116 if (nzents != nzents_saved) { in loadzone_maps() 122 for (i = 0; i < nzents; i++) { in loadzone_maps()
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 3913 uint_t nzents; in tsol_mounts() local 3941 if (zone_list(NULL, &nzents) != 0) { in tsol_mounts() 3947 if (nzents == 0) { in tsol_mounts() 3952 zids = malloc(nzents * sizeof (zoneid_t)); in tsol_mounts() 3957 nzents_saved = nzents; in tsol_mounts() 3959 if (zone_list(zids, &nzents) != 0) { in tsol_mounts() 3965 if (nzents != nzents_saved) { in tsol_mounts() 3980 for (i = 0; i < nzents; i++) { in tsol_mounts() 4183 uint_t nzents; in tsol_unmounts() local 4194 if (zone_list(NULL, &nzents) != 0) { in tsol_unmounts() [all …]
|
/illumos-gate/usr/src/cmd/svc/svcadm/ |
H A D | svcadm.c | 2248 uint_t nzents = 0, zent = 0; in main() local 2310 if (zone_list(NULL, &nzents) != 0) in main() 2313 if ((zids = malloc(nzents * sizeof (zoneid_t))) == NULL) { in main() 2315 "%d zone IDs"), nzents); in main() 2318 found = nzents; in main() 2328 if (found == nzents) in main() 2796 if (do_zones && zent < nzents) in main()
|
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zoneadm.c | 109 static size_t nzents; variable 624 if (nzents > 0) in fetch_zents() 627 if (zone_list(NULL, &nzents) != 0) { in fetch_zents() 633 if (nzents == 0) in fetch_zents() 636 zids = safe_calloc(nzents, sizeof (zoneid_t)); in fetch_zents() 637 nzents_saved = nzents; in fetch_zents() 639 if (zone_list(zids, &nzents) != 0) { in fetch_zents() 644 if (nzents != nzents_saved) { in fetch_zents() 650 zents = safe_calloc(nzents, sizeof (zone_entry_t)); in fetch_zents() 661 for (i = 0; i < nzents; i++) { in fetch_zents() [all …]
|
/illumos-gate/usr/src/cmd/svc/svcs/ |
H A D | svcs.c | 3482 uint_t nzents = 0, zent = 0; in main() local 3659 if (zone_list(NULL, &nzents) != 0) in main() 3662 if ((zids = malloc(nzents * sizeof (zoneid_t))) == NULL) { in main() 3664 "%d zone IDs"), nzents); in main() 3667 found = nzents; in main() 3677 if (found == nzents) in main() 3947 if (show_zones && zent < nzents && exit_status == 0) { in main()
|