Lines Matching defs:fmcase
120 fmd_case_t *fmcase; /* what fmd 'case' we associate with */
133 fmd_case_t *fmcase;
143 fmd_case_t *fmcase, nvlist_t *detector, char *arg);
325 fmd_case_t *fmcase, fmd_event_t *ffep, nvlist_t *nvl)
357 publish_undiagnosable(hdl, ffep, fmcase, detector, arg);
378 publish_undiagnosable(hdl, ffep, fmcase, detector, arg);
395 platform_save_config(hdl, fmcase);
410 Nfmep->fmcase = fmcase;
416 publish_undiagnosable(hdl, ffep, fmcase, detector, arg);
432 publish_undiagnosable(hdl, ffep, fmcase, detector, arg);
509 fmd_buf_create(fp->hdl, fp->fmcase, tmpbuf, strlen(estr) + 1);
510 fmd_buf_write(fp->hdl, fp->fmcase, tmpbuf, (void *)estr,
520 fmd_buf_create(fp->hdl, fp->fmcase, tmpbuf, pkdlen);
521 fmd_buf_write(fp->hdl, fp->fmcase, tmpbuf, (void *)pkd, pkdlen);
526 fmd_buf_write(fp->hdl, fp->fmcase, WOBUF_NOBS, (void *)&fp->uniqobs,
537 fmd_buf_create(fp->hdl, fp->fmcase, WOBUF_PULL, sizeof (fp->pull));
538 fmd_buf_write(fp->hdl, fp->fmcase, WOBUF_PULL, (void *)&fp->pull,
541 fmd_buf_create(fp->hdl, fp->fmcase, WOBUF_ID, sizeof (fp->id));
542 fmd_buf_write(fp->hdl, fp->fmcase, WOBUF_ID, (void *)&fp->id,
545 fmd_buf_create(fp->hdl, fp->fmcase, WOBUF_NOBS, sizeof (fp->uniqobs));
546 fmd_buf_write(fp->hdl, fp->fmcase, WOBUF_NOBS, (void *)&fp->uniqobs,
549 fmd_buf_create(fp->hdl, fp->fmcase, WOBUF_POSTD,
551 fmd_buf_write(fp->hdl, fp->fmcase, WOBUF_POSTD,
561 platform_restore_config(fp->hdl, fp->fmcase);
562 fmd_buf_destroy(fp->hdl, fp->fmcase, WOBUF_CFGLEN);
563 fmd_buf_destroy(fp->hdl, fp->fmcase, WOBUF_CFG);
564 fmd_buf_destroy(fp->hdl, fp->fmcase, WOBUF_PULL);
565 fmd_buf_destroy(fp->hdl, fp->fmcase, WOBUF_ID);
566 fmd_buf_destroy(fp->hdl, fp->fmcase, WOBUF_POSTD);
567 fmd_buf_destroy(fp->hdl, fp->fmcase, WOBUF_NOBS);
571 fmd_buf_destroy(fp->hdl, fp->fmcase, tmpbuf);
573 fmd_buf_destroy(fp->hdl, fp->fmcase, tmpbuf);
597 elen = fmd_buf_size(fmep->hdl, fmep->fmcase, tmpbuf);
607 fmd_buf_read(fmep->hdl, fmep->fmcase, tmpbuf, estr, elen);
650 pkdlen = fmd_buf_size(fmep->hdl, fmep->fmcase, tmpbuf);
654 fmep->fmcase, tmpbuf, pkd, pkdlen);
712 fmep->fmcase = inprogress;
771 elen = fmd_buf_size(fmep->hdl, fmep->fmcase, tmpbuf);
779 fmd_buf_read(fmep->hdl, fmep->fmcase, tmpbuf, estr, elen);
875 bad->fmcase = inprogress;
878 fmd_case_uuid(hdl, bad->fmcase));
880 if (fmd_case_solved(hdl, bad->fmcase)) {
889 fmd_case_add_suspect(hdl, bad->fmcase, defect);
890 fmd_case_solve(hdl, bad->fmcase);
894 if (fmd_case_closed(hdl, bad->fmcase)) {
898 fmd_case_close(hdl, bad->fmcase);
1029 fmd_case_t *fmcase, struct event *sp, const char **enamep,
1277 fmd_case_add_serd(hdl, fmcase, serdname);
1347 serd_eval(fmep, fmep->hdl, ffep, fmep->fmcase, sp,
1354 fmd_case_t *fmcase;
1376 fmcase = fmd_case_open(fmep->hdl, NULL);
1382 fmcase, ffep, ep->nvp)) == NULL) {
1395 fmd_case_uuid(nfmep->hdl, nfmep->fmcase));
1397 fmd_case_setprincipal(nfmep->hdl, nfmep->fmcase, ffep);
1398 fmd_case_add_ereport(nfmep->hdl, nfmep->fmcase, ffep);
1419 fmd_case_add_ereport(nfmep->hdl, nfmep->fmcase,
1477 fmd_case_close(nfmep->hdl, nfmep->fmcase);
1504 fmd_case_t *fmcase;
1527 fmcase = fmd_case_open(hdl, NULL);
1537 publish_undiagnosable(hdl, ffep, fmcase, detector,
1633 fmd_case_t *fmcase;
1648 if (!(fmd_case_closed(fmep->hdl, fmep->fmcase)))
1658 fmd_case_solved(fmep->hdl, fmep->fmcase) ||
1659 fmd_case_closed(fmep->hdl, fmep->fmcase))
1710 fmd_case_add_ereport(hdl, fmep->fmcase, ffep);
1752 fmd_case_add_ereport(hdl, ofmep->fmcase, ffep);
1761 fmcase = fmd_case_open(hdl, NULL);
1764 if ((fmep = newfme(eventstring, ipp, hdl, fmcase, ffep,
1778 fmd_case_add_ereport(hdl, fmep->fmcase, ffep);
1786 fmd_case_add_suspect(hdl, fmep->fmcase, defect);
1787 fmd_case_solve(hdl, fmep->fmcase);
1793 fmcase = fmd_case_open(hdl, NULL);
1796 if ((fmep = newfme(eventstring, ipp, hdl, fmcase, ffep, nvl)) == NULL) {
1810 fmd_case_uuid(hdl, fmep->fmcase));
1832 fmd_case_add_ereport(hdl, fmep->fmcase, ffep);
1833 fmd_case_setprincipal(hdl, fmep->fmcase, ffep);
2241 serd_rval = serd_eval(fmep, fmep->hdl, ffep, fmep->fmcase, ep,
2888 fmd_case_add_suspect(fmep->hdl, fmep->fmcase, fault);
3058 publish_undiagnosable(fmd_hdl_t *hdl, fmd_event_t *ffep, fmd_case_t *fmcase,
3072 newcase->fmcase = fmcase;
3078 fmd_case_add_ereport(hdl, newcase->fmcase, ffep);
3086 fmd_case_add_suspect(hdl, newcase->fmcase, defect);
3098 fmd_case_add_suspect(hdl, newcase->fmcase, fault);
3103 fmd_case_solve(hdl, newcase->fmcase);
3104 fmd_case_close(hdl, newcase->fmcase);
3118 f->id, fmd_case_uuid(f->hdl, f->fmcase), reason);
3123 fmd_case_add_ereport(f->hdl, f->fmcase, ep->ffep);
3139 fmd_case_add_suspect(f->hdl, f->fmcase, defect);
3152 fmd_case_add_suspect(f->hdl, f->fmcase, fault);
3156 fmd_case_solve(f->hdl, f->fmcase);
3157 fmd_case_close(f->hdl, f->fmcase);
3168 fme_close_case(fmd_hdl_t *hdl, fmd_case_t *fmcase)
3175 if (fmcase != ucasep->fmcase) {
3190 if (fmep->hdl == hdl && fmep->fmcase == fmcase)
3197 fmd_case_uuid(hdl, fmcase));
3228 fmep->fmcase)))
3233 fmd_case_close(fmep->hdl, fmep->fmcase);
3300 fmd_buf_write(fmep->hdl, fmep->fmcase,
3416 fmep->id, fmd_case_uuid(fmep->hdl, fmep->fmcase));
3417 fmd_case_close(fmep->hdl, fmep->fmcase);
3421 fmd_case_uuid(fmep->hdl, fmep->fmcase));
3422 fmd_case_solve(fmep->hdl, fmep->fmcase);
3427 fmd_case_uuid(fmep->hdl, fmep->fmcase));
3428 fmd_case_solve(fmep->hdl, fmep->fmcase);
3435 fmd_case_uuid(fmep->hdl, fmep->fmcase));
3436 fmd_case_solve(fmep->hdl, fmep->fmcase);
3447 nfmep->fmcase = fmd_case_open(fmep->hdl, NULL);
3450 fmd_case_uuid(nfmep->hdl, nfmep->fmcase));
3454 nfmep->fmcase, ffep);
3456 nfmep->fmcase, ffep);
3462 nfmep->fmcase, obsp->ffep);
3466 fmd_case_uuid(nfmep->hdl, nfmep->fmcase));
3467 fmd_case_solve(nfmep->hdl, nfmep->fmcase);
3475 fmd_buf_write(fmep->hdl, fmep->fmcase,