Lines Matching defs:class
82 self_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class)
93 * fmd_module_error() will send another event of class EFMD_MOD_FAIL
97 if (strcmp(class, fmd_errclass(EFMD_MODULE)) == 0 &&
116 class = err == EFMD_MOD_FAIL ? FMD_FLT_MOD : FMD_FLT_CONF;
117 flt = fmd_protocol_fault(class, 100, mod, NULL, NULL, NULL);
130 if (strncmp(class, "ereport.io.ddi.", strlen("ereport.io.ddi.")) == 0)
134 * If we get any other type of event then it is of a class for which
136 * errors, which we ignore. Otherwise we keep one case per class and
139 if (strcmp(class, FM_LIST_SUSPECT_CLASS) == 0 ||
140 strcmp(class, FM_LIST_ISOLATED_CLASS) == 0 ||
141 strcmp(class, FM_LIST_UPDATED_CLASS) == 0 ||
142 strcmp(class, FM_LIST_RESOLVED_CLASS) == 0 ||
143 strcmp(class, FM_LIST_REPAIRED_CLASS) == 0 ||
144 strncmp(class, FM_FAULT_CLASS, strlen(FM_FAULT_CLASS)) == 0 ||
145 strncmp(class, FM_DEFECT_CLASS, strlen(FM_DEFECT_CLASS)) == 0)
148 if (strncmp(class, FMD_ERR_CLASS, FMD_ERR_CLASS_LEN) == 0)
151 if (strncmp(class, FMD_RSRC_CLASS, FMD_RSRC_CLASS_LEN) == 0)
154 if (strncmp(class, SYSEVENT_RSRC_CLASS, SYSEVENT_RSRC_CLASS_LEN) == 0)
157 if (self_case_lookup(hdl, SC_CLASS, class) != NULL)
158 return; /* case is already open against this class */
160 if (strncmp(class, FM_IREPORT_CLASS ".",
164 cp = fmd_case_open(hdl, self_case_create(hdl, SC_CLASS, class));
169 (void) nvlist_add_string(flt, "nosub_class", class);