Lines Matching refs:a_zlst
297 * Arguments: a_zlst - handle to zoneList_t object to free
302 z_free_zone_list(zoneList_t a_zlst)
308 if (a_zlst == (zoneList_t)NULL) {
314 for (numzones = 0; a_zlst[numzones]._zlName != (char *)NULL;
316 zoneListElement_t *zelm = &a_zlst[numzones];
332 free(a_zlst);
704 * Arguments: a_zlst - zoneList_t object describing zones to lock
713 z_lock_zones(zoneList_t a_zlst, ZLOCKS_T a_lflags)
742 if (a_zlst == (zoneList_t)NULL) {
755 for (i = 0; (a_zlst[i]._zlName != (char *)NULL); i++) {
757 if (a_zlst[i]._zlStatus & ZST_LOCKED) {
762 if (a_zlst[i]._zlCurrKernelStatus != ZONE_STATE_RUNNING &&
763 a_zlst[i]._zlCurrKernelStatus != ZONE_STATE_MOUNTED) {
771 a_zlst[i]._zlStatus |= ZST_LOCKED;
774 b = _z_lock_zone(&a_zlst[i], a_lflags);
779 a_zlst[i]._zlName);
780 (void) z_unlock_zones(a_zlst, a_lflags);
1403 * Arguments: a_zlst - zoneList_t object describing zones to unlock
1412 z_unlock_zones(zoneList_t a_zlst, ZLOCKS_T a_lflags)
1435 if (a_zlst == (zoneList_t)NULL) {
1449 for (i = 0; (a_zlst[i]._zlName != (char *)NULL); i++) {
1451 if (!(a_zlst[i]._zlStatus & ZST_LOCKED)) {
1456 if (a_zlst[i]._zlCurrKernelStatus != ZONE_STATE_RUNNING &&
1457 a_zlst[i]._zlCurrKernelStatus != ZONE_STATE_MOUNTED) {
1462 b = _z_unlock_zone(&a_zlst[i], a_lflags);
1468 a_zlst[i]._zlStatus &= ~ZST_LOCKED;
1538 * Arguments: a_zlst - handle to zoneList_t object describing all zones
1539 * a_zoneIndex - index into a_zlst of the zone to return the
1552 z_zlist_change_zone_state(zoneList_t a_zlst, int a_zoneIndex,
1563 if (a_zlst == (zoneList_t)NULL) {
1570 (a_zlst[i]._zlName != (char *)NULL); i++)
1575 if (a_zlst[i]._zlName == (char *)NULL) {
1581 if (a_zlst[i]._zlCurrKernelStatus == a_newState) {
1587 _z_echoDebug(DBG_ZONES_CHG_Z_STATE, a_zlst[i]._zlName,
1588 a_zlst[i]._zlCurrKernelStatus, a_newState);
1594 return (_z_make_zone_running(&a_zlst[i]));
1599 return (_z_make_zone_down(&a_zlst[i]));
1602 return (_z_make_zone_ready(&a_zlst[i]));
1705 * Arguments: a_zlst - handle to zoneList_t object describing all zones
1706 * a_zoneIndex - index into a_zlst of the zone to return
1712 z_zlist_get_current_state(zoneList_t a_zlst, int a_zoneIndex)
1718 if (a_zlst == (zoneList_t)NULL) {
1725 (a_zlst[i]._zlName != (char *)NULL); i++)
1730 if (a_zlst[i]._zlName == (char *)NULL) {
1737 a_zlst[i]._zlName ? a_zlst[i]._zlName : "",
1738 a_zlst[i]._zlCurrKernelStatus);
1740 return (a_zlst[i]._zlCurrKernelStatus);
1746 * Arguments: a_zlst - handle to zoneList_t object describing all zones
1747 * a_zoneIndex - index into a_zlst of the zone to return the
1755 z_zlist_get_original_state(zoneList_t a_zlst, int a_zoneIndex)
1761 if (a_zlst == (zoneList_t)NULL) {
1768 (a_zlst[i]._zlName != (char *)NULL); i++)
1773 if (a_zlst[i]._zlName == (char *)NULL) {
1779 return (a_zlst[i]._zlOrigKernelStatus);
1785 * Arguments: a_zlst - handle to zoneList_t object describing all zones
1786 * a_zoneIndex - index into a_zlst of the zone to use
1795 z_zlist_get_scratch(zoneList_t a_zlst, int a_zoneIndex)
1801 if (a_zlst == NULL)
1807 if (a_zlst[i]._zlName == NULL)
1813 return (a_zlst[i]._zlScratchName == NULL ? a_zlst[i]._zlName :
1814 a_zlst[i]._zlScratchName);
1820 * Arguments: a_zlst - handle to zoneList_t object describing all zones
1821 * a_zoneIndex - index into a_zlst of the zone to return the
1830 z_zlist_get_zonename(zoneList_t a_zlst, int a_zoneIndex)
1836 if (a_zlst == (zoneList_t)NULL) {
1843 (a_zlst[i]._zlName != (char *)NULL); i++)
1848 if (a_zlst[i]._zlName == (char *)NULL) {
1854 return (a_zlst[i]._zlName);
1860 * Arguments: a_zlst - handle to zoneList_t object describing all zones
1861 * a_zoneIndex - index into a_zlst of the zone to return
1870 z_zlist_get_zonepath(zoneList_t a_zlst, int a_zoneIndex)
1876 if (a_zlst == (zoneList_t)NULL) {
1883 (a_zlst[i]._zlName != (char *)NULL); i++)
1888 if (a_zlst[i]._zlName == (char *)NULL) {
1894 return (a_zlst[i]._zlPath);
1898 z_zlist_is_zone_runnable(zoneList_t a_zlst, int a_zoneIndex)
1910 if (a_zlst == (zoneList_t)NULL) {
1917 (a_zlst[i]._zlName != (char *)NULL); i++)
1922 if (a_zlst[i]._zlName == (char *)NULL) {
1928 switch (a_zlst[i]._zlCurrKernelStatus) {
1940 if (a_zlst[i]._zlStatus & ZST_NOT_BOOTABLE) {
1957 * Arguments: a_zlst - handle to zoneList_t object describing all zones
1958 * a_zoneIndex - index into a_zlst of the zone to return the
1966 z_zlist_restore_zone_state(zoneList_t a_zlst, int a_zoneIndex)
1972 if (a_zlst == (zoneList_t)NULL) {
1979 (a_zlst[i]._zlName != (char *)NULL); i++)
1984 if (a_zlst[i]._zlName == (char *)NULL) {
1990 return (z_zlist_change_zone_state(a_zlst,
1991 a_zoneIndex, a_zlst[i]._zlOrigKernelStatus));