Home
last modified time | relevance | path

Searched refs:nzents (Results 1 – 9 of 9) sorted by relevance

/titanic_44/usr/src/lib/libtsol/common/
H A Dzone.c82 uint_t nzents; in getzoneidbylabel() local
93 nzents = 0; in getzoneidbylabel()
94 if (zone_list(NULL, &nzents) != 0) in getzoneidbylabel()
98 if (nzents == 0) { in getzoneidbylabel()
108 nzents += 8; in getzoneidbylabel()
109 if ((zids = malloc(nzents * sizeof (zoneid_t))) == NULL) in getzoneidbylabel()
111 nzents_saved = nzents; in getzoneidbylabel()
113 if (zone_list(zids, &nzents) != 0) { in getzoneidbylabel()
117 if (nzents > nzents_saved) { in getzoneidbylabel()
123 for (i = 0; i < nzents; i++) { in getzoneidbylabel()
[all …]
/titanic_44/usr/src/cmd/rcap/common/
H A Dutils.c267 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()
/titanic_44/usr/src/cmd/tzreload/
H A Dtzreload.c285 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()
/titanic_44/usr/src/cmd/rcap/rcapd/
H A Drcapd_collection_zone.c84 uint_t nzents; in lcollection_update_zone() local
90 if (get_running_zones(&nzents, &zents) != 0) in lcollection_update_zone()
93 for (i = 0; i < nzents; i++) { in lcollection_update_zone()
/titanic_44/usr/src/cmd/fs.d/autofs/
H A Dauto_subr.c95 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()
/titanic_44/usr/src/cmd/zoneadmd/
H A Dvplat.c3801 uint_t nzents; in tsol_mounts() local
3829 if (zone_list(NULL, &nzents) != 0) { in tsol_mounts()
3835 if (nzents == 0) { in tsol_mounts()
3840 zids = malloc(nzents * sizeof (zoneid_t)); in tsol_mounts()
3845 nzents_saved = nzents; in tsol_mounts()
3847 if (zone_list(zids, &nzents) != 0) { in tsol_mounts()
3853 if (nzents != nzents_saved) { in tsol_mounts()
3868 for (i = 0; i < nzents; i++) { in tsol_mounts()
4071 uint_t nzents; in tsol_unmounts() local
4082 if (zone_list(NULL, &nzents) != 0) { in tsol_unmounts()
[all …]
/titanic_44/usr/src/cmd/svc/svcadm/
H A Dsvcadm.c2155 uint_t nzents = 0, zent = 0; in main() local
2217 if (zone_list(NULL, &nzents) != 0) in main()
2220 if ((zids = malloc(nzents * sizeof (zoneid_t))) == NULL) { in main()
2222 "%d zone IDs"), nzents); in main()
2225 found = nzents; in main()
2235 if (found == nzents) in main()
2687 if (do_zones && zent < nzents) in main()
/titanic_44/usr/src/cmd/zoneadm/
H A Dzoneadm.c108 static size_t nzents; variable
623 if (nzents > 0) in fetch_zents()
626 if (zone_list(NULL, &nzents) != 0) { in fetch_zents()
632 if (nzents == 0) in fetch_zents()
635 zids = safe_calloc(nzents, sizeof (zoneid_t)); in fetch_zents()
636 nzents_saved = nzents; in fetch_zents()
638 if (zone_list(zids, &nzents) != 0) { in fetch_zents()
643 if (nzents != nzents_saved) { in fetch_zents()
649 zents = safe_calloc(nzents, sizeof (zone_entry_t)); in fetch_zents()
660 for (i = 0; i < nzents; i++) { in fetch_zents()
[all …]
/titanic_44/usr/src/cmd/svc/svcs/
H A Dsvcs.c3450 uint_t nzents = 0, zent = 0; in main() local
3628 if (zone_list(NULL, &nzents) != 0) in main()
3631 if ((zids = malloc(nzents * sizeof (zoneid_t))) == NULL) { in main()
3633 "%d zone IDs"), nzents); in main()
3636 found = nzents; in main()
3646 if (found == nzents) in main()
3911 if (show_zones && zent < nzents && exit_status == 0) { in main()