Lines Matching defs:asru
1469 nvlist_t *asru;
1471 &asru, 0) != 0) {
1475 (void) nvlist_remove_all(asru,
1477 if (nvlist_add_uint32(asru,
1482 cpui = cpu_create(hdl, asru, i,
1484 nvlist_free(asru);
1644 cpu_create(fmd_hdl_t *hdl, nvlist_t *asru, uint32_t cpuid, uint8_t level,
1679 cmd_fmri_init(hdl, &cpu->cpu_asru, asru, "cpu_asru_%d",
1682 cmd_fmri_init(hdl, &cpu->cpu_asru, asru, "cpu_asru_%d_%d",
1697 cmd_fmri_init(hdl, &cpu->cpu_fru, asru, "cpu_fru_%d",
1700 cmd_fmri_init(hdl, &cpu->cpu_fru, asru, "cpu_fru_%d_%d",
1723 nvlist_t *asru;
1736 if (nvlist_dup(cpu->cpu_asru_nvl, &asru, 0) != 0)
1737 fmd_hdl_abort(hdl, "cannot copy asru\n");
1739 (void) nvlist_remove_all(asru, FM_FMRI_CPU_ID);
1740 if (nvlist_add_uint32(asru, FM_FMRI_CPU_ID, i) != 0) {
1742 "cannot add thread %d to asru\n", i);
1744 if (fmd_nvl_fmri_present(hdl, asru) &&
1745 !fmd_nvl_fmri_unusable(hdl, asru)) {
1746 nvlist_free(asru);
1751 nvlist_free(asru);
1764 cmd_cpu_lookup(fmd_hdl_t *hdl, nvlist_t *asru, const char *class,
1773 if (fmd_nvl_fmri_expand(hdl, asru) < 0) {
1778 if (nvlist_lookup_pairs(asru, 0,
1811 if (!fmd_nvl_fmri_present(hdl, asru) ||
1812 fmd_nvl_fmri_unusable(hdl, asru)) {
1818 cpu = cpu_create(hdl, asru,