1953 else if (intval == AP_COND_FAILING)
1954 clp->ap_cond = CFGA_COND_FAILING;
1955 else if (intval == AP_COND_FAILED)
1956 clp->ap_cond = CFGA_COND_FAILED;
1957 else if (intval == AP_COND_UNUSABLE)
1958 clp->ap_cond = CFGA_COND_UNUSABLE;
1959 else if (intval == AP_COND_UNKNOWN)
1960 clp->ap_cond = CFGA_COND_UNKNOWN;
1961 DPRINTF("cfga_list_ext: Name = %s, "
1962 "condition = %x\n", name, intval);
1963 ++count;
1964 }
1965
1966 clp->ap_class[0] = '\0'; /* Filled by libcfgadm */
1967 clp->ap_busy = 0;
1968 clp->ap_status_time = (time_t)-1;
1969 } /* end of while */
1970 }
1971
1972 S_FREE(snap_data);
1973 if (nvl)
1974 nvlist_free(nvl);
1975
1976 /*
1977 * if a cmdline specified ap_id doesn't match the known list of ap_ids
1978 * then report an error right away
1979 */
1980 rv = (apid_matched == B_TRUE) ? CFGA_IB_OK : CFGA_IB_AP_ERR;
1981 return (ib_err_msg(errstring, rv, ap_id, errno));
1982 }
1983
1984
1985 /*
1986 * Function:
1987 * cfga_msg
1988 * Input:
1989 * msgp - cfgadm error message for this plugin
1990 * str - string to be passed on to the message
1991 * Output:
1992 * NONE
1993 * Returns:
|
1953 else if (intval == AP_COND_FAILING)
1954 clp->ap_cond = CFGA_COND_FAILING;
1955 else if (intval == AP_COND_FAILED)
1956 clp->ap_cond = CFGA_COND_FAILED;
1957 else if (intval == AP_COND_UNUSABLE)
1958 clp->ap_cond = CFGA_COND_UNUSABLE;
1959 else if (intval == AP_COND_UNKNOWN)
1960 clp->ap_cond = CFGA_COND_UNKNOWN;
1961 DPRINTF("cfga_list_ext: Name = %s, "
1962 "condition = %x\n", name, intval);
1963 ++count;
1964 }
1965
1966 clp->ap_class[0] = '\0'; /* Filled by libcfgadm */
1967 clp->ap_busy = 0;
1968 clp->ap_status_time = (time_t)-1;
1969 } /* end of while */
1970 }
1971
1972 S_FREE(snap_data);
1973 nvlist_free(nvl);
1974
1975 /*
1976 * if a cmdline specified ap_id doesn't match the known list of ap_ids
1977 * then report an error right away
1978 */
1979 rv = (apid_matched == B_TRUE) ? CFGA_IB_OK : CFGA_IB_AP_ERR;
1980 return (ib_err_msg(errstring, rv, ap_id, errno));
1981 }
1982
1983
1984 /*
1985 * Function:
1986 * cfga_msg
1987 * Input:
1988 * msgp - cfgadm error message for this plugin
1989 * str - string to be passed on to the message
1990 * Output:
1991 * NONE
1992 * Returns:
|