/illumos-gate/usr/src/lib/libtnfctl/ |
H A D | kernel.c | 41 tnfctl_trace_state_set(tnfctl_handle_t *hdl, boolean_t mode) argument 43 if (hdl->mode != KERNEL_MODE) 47 return (_tnfctl_prbk_set_tracing(hdl, mode)); 51 tnfctl_filter_state_set(tnfctl_handle_t *hdl, boolean_t mode) argument 53 if (hdl->mode != KERNEL_MODE) 57 return (_tnfctl_prbk_set_pfilter_mode(hdl, mode)); 61 tnfctl_filter_list_get(tnfctl_handle_t *hdl, pid_t **pid_list, int *pid_count) argument 63 if (hdl->mode != KERNEL_MODE) 67 return (_tnfctl_prbk_get_pfilter_list(hdl, pid_list, pid_count)); 71 tnfctl_filter_list_add(tnfctl_handle_t *hdl, pid_ argument 81 tnfctl_filter_list_delete(tnfctl_handle_t *hdl, pid_t pid) argument [all...] |
H A D | open.c | 57 tnfctl_handle_t *hdl; local 69 /* allocate hdl and zero fill */ 70 hdl = calloc(1, sizeof (*hdl)); 71 if (hdl == NULL) { 76 hdl->proc_p = proc_p; 77 hdl->mode = DIRECT_MODE; 78 hdl->called_exit = B_FALSE; 81 hdl->p_read = _tnfctl_read_targ; 82 hdl 133 tnfctl_handle_t *hdl; local 218 tnfctl_handle_t *hdl; local 260 tnfctl_handle_t *hdl; local 298 tnfctl_trace_attrs_get(tnfctl_handle_t *hdl, tnfctl_trace_attrs_t *attrs) argument 325 tnfctl_buffer_alloc(tnfctl_handle_t *hdl, const char *trace_file_name, uint_t trace_file_size) argument 357 tnfctl_buffer_dealloc(tnfctl_handle_t *hdl) argument 496 _tnfctl_external_getlock(tnfctl_handle_t *hdl) argument [all...] |
H A D | close.c | 49 tnfctl_close(tnfctl_handle_t *hdl, tnfctl_targ_op_t action) argument 56 if (hdl == NULL) 59 if (hdl->mode == KERNEL_MODE) { 60 prexstat = _tnfctl_prbk_close(hdl); 65 if (hdl->mode == INTERNAL_MODE) { 67 } else if (hdl->mode != KERNEL_MODE) { 68 _tnfctl_external_releaselock(hdl); 71 _tnfctl_free_objs_and_probes(hdl); 74 probe_hdl = hdl->probe_handle_list_head; 77 if (hdl 144 _tnfctl_external_releaselock(tnfctl_handle_t *hdl) argument [all...] |
/illumos-gate/usr/src/common/mc/mc-amd/ |
H A D | mcamd_unumtopa.c | 46 mcamd_unumtopa(struct mcamd_hdl *hdl, mcamd_node_t *root, mc_unum_t *unump, argument 52 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa: chip %d " 57 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa: offset " 59 return (mcamd_set_errno(hdl, EMCAMD_NOADDR)); 66 for (mc = mcamd_mc_next(hdl, root, NULL); mc != NULL; 67 mc = mcamd_mc_next(hdl, root, mc)) { 68 if (!mcamd_get_numprops(hdl, 72 mcamd_dprintf(hdl, MCAMD_DBG_ERR, "mcamd_unumtopa: " 74 return (mcamd_set_errno(hdl, EMCAMD_TREEINVALID)); 80 mcamd_dprintf(hdl, MCAMD_DBG_FLO [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/software-diagnosis/ |
H A D | swde_main.c | 56 _fmd_init(fmd_hdl_t *hdl) argument 58 if (sw_fmd_init(hdl, &swde_info, &subde)) 59 swde_case_init(hdl); 63 _fmd_fini(fmd_hdl_t *hdl) argument 65 swde_case_fini(hdl); 66 sw_fmd_fini(hdl);
|
H A D | swde_case.c | 118 swde_case_associate(fmd_hdl_t *hdl, fmd_case_t *cp, swde_case_t *scp, argument 123 fmd_case_setspecific(hdl, cp, scp); 127 swde_case_unserialize(fmd_hdl_t *hdl, fmd_case_t *cp) argument 134 scp = fmd_hdl_zalloc(hdl, sizeof (*scp), FMD_SLEEP); 137 fmd_buf_read(hdl, cp, SW_CASE_DATA_BUFNAME, datap, sizeof (*datap)); 140 fmd_hdl_free(hdl, scp, sizeof (*scp)); 145 subdata = fmd_hdl_alloc(hdl, sz, FMD_SLEEP); 146 fmd_buf_read(hdl, cp, datap->sc_sub_bufname, subdata, sz); 149 fmd_hdl_abort(hdl, "unserialize: expected subdata " 155 swde_case_associate(hdl, c 159 swde_subdata(fmd_hdl_t *hdl, fmd_case_t *cp, enum sw_casetype type, swde_case_t *scp, uint32_t subdata_vers, void *subdata, size_t subdata_sz) argument 178 swde_case_open(fmd_hdl_t *hdl, id_t who, char *req_uuid, uint32_t subdata_vers, void *subdata, size_t subdata_sz) argument 224 swde_close(fmd_hdl_t *hdl, fmd_case_t *cp) argument 249 swde_case_first(fmd_hdl_t *hdl, id_t who) argument 268 swde_case_next(fmd_hdl_t *hdl, fmd_case_t *lastcp) argument 291 swde_case_data(fmd_hdl_t *hdl, fmd_case_t *cp, uint32_t *svp) argument 303 swde_case_data_write(fmd_hdl_t *hdl, fmd_case_t *cp) argument 316 swde_case_data_upgrade(fmd_hdl_t *hdl, fmd_case_t *cp, uint32_t subdata_vers, void *subdata, size_t subdata_sz) argument 341 swde_case_verify(fmd_hdl_t *hdl, fmd_case_t *cp) argument 354 swde_case_init(fmd_hdl_t *hdl) argument 366 swde_case_fini(fmd_hdl_t *hdl) argument [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/ext-event-transport/ |
H A D | fmevt_main.c | 60 _fmd_init(fmd_hdl_t *hdl) argument 67 if (fmd_hdl_register(hdl, FMD_API_VERSION, &fmd_info) != 0) 70 fmevt_hdl = hdl; 72 fmevt_init_outbound(hdl); 73 fmevt_init_inbound(hdl); 77 _fmd_fini(fmd_hdl_t *hdl) argument 79 fmevt_fini_outbound(hdl); 80 fmevt_fini_inbound(hdl);
|
/illumos-gate/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/ |
H A D | cmd_page.c | 45 page_write(fmd_hdl_t *hdl, cmd_page_t *page) argument 47 fmd_buf_write(hdl, NULL, page->page_bufname, page, 52 cmd_page_free(fmd_hdl_t *hdl, cmd_page_t *page, int destroy) argument 57 cmd_case_fini(hdl, cc->cc_cp, destroy); 60 if (fmd_serd_exists(hdl, cc->cc_serdnm) && destroy) 61 fmd_serd_destroy(hdl, cc->cc_serdnm); 62 fmd_hdl_strfree(hdl, cc->cc_serdnm); 66 fmd_buf_destroy(hdl, NULL, page->page_bufname); 68 cmd_fmri_fini(hdl, &page->page_asru, destroy); 71 fmd_hdl_free(hdl, pag 75 cmd_page_destroy(fmd_hdl_t *hdl, cmd_page_t *page) argument 95 cmd_page_create(fmd_hdl_t *hdl, nvlist_t *modasru, uint64_t pa) argument 140 page_v0tov1(fmd_hdl_t *hdl, cmd_page_0_t *old, size_t oldsz) argument 159 page_wrapv1(fmd_hdl_t *hdl, cmd_page_pers_t *pers, size_t psz) argument 175 cmd_page_restore(fmd_hdl_t *hdl, fmd_case_t *cp, cmd_case_ptr_t *ptr) argument 274 cmd_page_validate(fmd_hdl_t *hdl) argument 293 cmd_page_dirty(fmd_hdl_t *hdl, cmd_page_t *page) argument 305 cmd_page_fini(fmd_hdl_t *hdl) argument [all...] |
H A D | cmd_bank.c | 44 cmd_bank_add_dimm(fmd_hdl_t *hdl, cmd_bank_t *bank, cmd_dimm_t *dimm) argument 48 fmd_hdl_debug(hdl, "attaching dimm %s to bank %s\n", dimm->dimm_unum, 53 bm = fmd_hdl_zalloc(hdl, sizeof (cmd_bank_memb_t), FMD_SLEEP); 59 cmd_bank_remove_dimm(fmd_hdl_t *hdl, cmd_bank_t *bank, cmd_dimm_t *dimm) argument 63 fmd_hdl_debug(hdl, "detaching dimm %s from bank %s\n", dimm->dimm_unum, 73 fmd_hdl_free(hdl, bm, sizeof (cmd_bank_memb_t)); 77 fmd_hdl_abort(hdl, "attempt to disconnect dimm from non-parent bank\n"); 81 bank_dimmlist_create(fmd_hdl_t *hdl, cmd_bank_t *bank) argument 87 if (fmd_nvl_fmri_contains(hdl, bank->bank_asru_nvl, 89 cmd_bank_add_dimm(hdl, ban 94 bank_dimmlist_free(fmd_hdl_t *hdl, cmd_bank_t *bank) argument 112 cmd_bank_create_fault(fmd_hdl_t *hdl, cmd_bank_t *bank, const char *fltnm, uint_t cert) argument 120 bank_free(fmd_hdl_t *hdl, cmd_bank_t *bank, int destroy) argument 135 cmd_bank_destroy(fmd_hdl_t *hdl, cmd_bank_t *bank) argument 156 cmd_bank_create(fmd_hdl_t *hdl, nvlist_t *asru) argument 197 cmd_bank_lookup(fmd_hdl_t *hdl, nvlist_t *asru) argument 219 bank_v0tov1(fmd_hdl_t *hdl, cmd_bank_0_t *old, size_t oldsz) argument 239 bank_wrapv1(fmd_hdl_t *hdl, cmd_bank_pers_t *pers, size_t psz) argument 255 cmd_bank_restore(fmd_hdl_t *hdl, fmd_case_t *cp, cmd_case_ptr_t *ptr) argument 346 cmd_bank_validate(fmd_hdl_t *hdl) argument 359 cmd_bank_dirty(fmd_hdl_t *hdl, cmd_bank_t *bank) argument 371 cmd_bank_gc(fmd_hdl_t *hdl) argument 377 cmd_bank_fini(fmd_hdl_t *hdl) argument [all...] |
H A D | cmd_dimm.c | 56 cmd_dimm_fmri_derive(fmd_hdl_t *hdl, uint64_t afar, uint16_t synd, argument 61 if ((fmri = cmd_mem_fmri_derive(hdl, afar, afsr, synd)) == NULL) 64 if (fmd_nvl_fmri_expand(hdl, fmri) < 0) { 79 cmd_dimm_create_fault(fmd_hdl_t *hdl, cmd_dimm_t *dimm, const char *fltnm, argument 92 flt = cmd_nvl_create_fault(hdl, fltnm, cert, 95 nvlfru = cmd_mem2hc(hdl, dimm->dimm_asru_nvl); 96 flt = cmd_nvl_create_fault(hdl, fltnm, cert, 100 return (cmd_fault_add_location(hdl, flt, dimm->dimm_unum)); 102 return (cmd_nvl_create_fault(hdl, fltnm, cert, dimm->dimm_asru_nvl, 108 cmd_dimm_free(fmd_hdl_t *hdl, cmd_dimm_ argument 170 cmd_dimm_destroy(fmd_hdl_t *hdl, cmd_dimm_t *dimm) argument 192 dimm_attach_to_bank(fmd_hdl_t *hdl, cmd_dimm_t *dimm) argument 207 cmd_dimm_create(fmd_hdl_t *hdl, nvlist_t *asru) argument 272 cmd_dimm_lookup(fmd_hdl_t *hdl, nvlist_t *asru) argument 303 dimm_v0tov2(fmd_hdl_t *hdl, cmd_dimm_0_t *old, size_t oldsz) argument 325 dimm_v1tov2(fmd_hdl_t *hdl, cmd_dimm_1_t *old, size_t oldsz) argument 350 dimm_wrapv2(fmd_hdl_t *hdl, cmd_dimm_pers_t *pers, size_t psz) argument 366 cmd_dimm_restore(fmd_hdl_t *hdl, fmd_case_t *cp, cmd_case_ptr_t *ptr) argument 462 cmd_dimm_validate(fmd_hdl_t *hdl) argument 475 cmd_dimm_dirty(fmd_hdl_t *hdl, cmd_dimm_t *dimm) argument 487 cmd_dimm_gc(fmd_hdl_t *hdl) argument 493 cmd_dimm_fini(fmd_hdl_t *hdl) argument [all...] |
H A D | cmd_main.c | 79 cmd_nop(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class, argument 98 opl_opluecpu_detio(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, argument 101 return (cmd_opluecpu_detio(hdl, ep, nvl, 396 cmd_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class) argument 401 fmd_hdl_debug(hdl, "cmd_recv: begin: %s\n", strrchr(class, '.') + 1); 404 if (fmd_nvl_class_match(hdl, nvl, sp->subr_class)) { 405 disp = sp->subr_func(hdl, ep, nvl, class, sp->subr_arg); 407 fmd_hdl_debug(hdl, "cmd_recv: done: %s (disp %d)\n", 413 fmd_hdl_debug(hdl, "cmd_recv: dropping %s - unable to handle\n", class); 417 cmd_timeout(fmd_hdl_t *hdl, id_ argument 448 cmd_close(fmd_hdl_t *hdl, fmd_case_t *cp) argument 467 cmd_gc(fmd_hdl_t *hdl) argument 605 _fmd_fini(fmd_hdl_t *hdl) argument 663 init_auth(fmd_hdl_t *hdl) argument 683 _fmd_init(fmd_hdl_t *hdl) argument [all...] |
H A D | cmd_fmri.c | 36 cmd_fmri_init(fmd_hdl_t *hdl, cmd_fmri_t *fmri, nvlist_t *nvl, argument 48 fmd_hdl_abort(hdl, "failed to copy fmri for fmri create"); 50 fmri->fmri_packbuf = fmd_hdl_alloc(hdl, fmri->fmri_packsz, FMD_SLEEP); 54 fmd_hdl_abort(hdl, "failed to pack fmri for fmri create"); 56 cmd_fmri_write(hdl, fmri); 60 cmd_fmri_fini(fmd_hdl_t *hdl, cmd_fmri_t *fmri, int destroy) argument 63 fmd_buf_destroy(hdl, NULL, fmri->fmri_packnm); 65 fmd_hdl_free(hdl, fmri->fmri_packbuf, fmri->fmri_packsz); 70 cmd_fmri_restore(fmd_hdl_t *hdl, cmd_fmri_t *fmri) argument 72 if (fmd_buf_size(hdl, NUL 91 cmd_fmri_write(fmd_hdl_t *hdl, cmd_fmri_t *fmri) argument [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/sp-monitor/ |
H A D | sp_monitor.c | 65 sp_post_sysevent(fmd_hdl_t *hdl) argument 67 sp_monitor_t *smp = fmd_hdl_getspecific(hdl); 70 fmd_hdl_debug(hdl, "SP reset detected, posting sysevent"); 74 fmd_hdl_debug(hdl, "failed to send sysevent: %s", 87 sp_timeout(fmd_hdl_t *hdl, id_t id, void *data) argument 89 sp_monitor_t *smp = fmd_hdl_getspecific(hdl); 97 fmd_hdl_debug(hdl, "failed to get uptime: %s", 110 sp_post_sysevent(hdl); 116 (void) fmd_timer_install(hdl, NULL, NULL, smp->sm_interval); 137 _fmd_init(fmd_hdl_t *hdl) argument 197 _fmd_fini(fmd_hdl_t *hdl) argument [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fabric-xlate.c | 50 fab_update_topo(fmd_hdl_t *hdl) argument 60 fmd_hdl_debug(hdl, "Failed to remove XML topo file\n"); 65 fmd_hdl_debug(hdl, "Failed to create XML topo file\n"); 72 fmd_hdl_debug(hdl, "Failed to open XML topo file\n"); 77 if ((thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION)) == NULL) { 78 fmd_hdl_debug(hdl, "Failed to hold topo\n"); 84 fmd_hdl_debug(hdl, "Failed to get XML topo\n"); 85 fmd_hdl_topo_rele(hdl, thp); 90 fmd_hdl_topo_rele(hdl, thp); 99 fab_set_fake_rp(hdl); 112 fab_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class) argument 143 fab_topo(fmd_hdl_t *hdl, topo_hdl_t *topo) argument 165 _fmd_init(fmd_hdl_t *hdl) argument 180 _fmd_fini(fmd_hdl_t *hdl) argument [all...] |
/illumos-gate/usr/src/lib/libdevice/ |
H A D | libdevice.h | 63 devctl_release(devctl_hdl_t hdl); 66 devctl_device_offline(devctl_hdl_t hdl); 69 devctl_device_remove(devctl_hdl_t hdl); 72 devctl_pm_raisepower(devctl_hdl_t hdl); 75 devctl_pm_changepowerlow(devctl_hdl_t hdl); 78 devctl_pm_changepowerhigh(devctl_hdl_t hdl); 81 devctl_pm_idlecomponent(devctl_hdl_t hdl); 84 devctl_pm_busycomponent(devctl_hdl_t hdl); 87 devctl_pm_testbusy(devctl_hdl_t hdl, uint_t *busyp); 90 devctl_pm_failsuspend(devctl_hdl_t hdl); [all...] |
/illumos-gate/usr/src/cmd/fm/modules/sun4v/generic-mem/ |
H A D | gmem_state.c | 47 gmem_case_create(fmd_hdl_t *hdl, gmem_header_t *hdr, argument 54 cl = fmd_hdl_alloc(hdl, sizeof (gmem_case_closer_t), FMD_SLEEP); 58 cp = fmd_case_open(hdl, cl); 64 *uuidp = fmd_case_uuid(hdl, cp); 65 fmd_buf_write(hdl, cp, *uuidp, &ptr, sizeof (gmem_case_ptr_t)); 71 gmem_case_redirect(fmd_hdl_t *hdl, fmd_case_t *cp, gmem_ptrsubtype_t newsubtype) argument 73 const char *uuid = fmd_case_uuid(hdl, cp); 76 fmd_buf_read(hdl, cp, uuid, &ptr, sizeof (gmem_case_ptr_t)); 77 fmd_hdl_debug(hdl, "redirecting case %s from %d to %d\n", uuid, 80 fmd_buf_write(hdl, c 84 gmem_case_fini(fmd_hdl_t *hdl, fmd_case_t *cp, int close) argument 114 gmem_state_restore(fmd_hdl_t *hdl) argument 157 gmem_case_restore(fmd_hdl_t *hdl, gmem_case_t *cc, fmd_case_t *cp, char *serdnm) argument [all...] |
H A D | gmem_page.c | 41 page_write(fmd_hdl_t *hdl, gmem_page_t *page) argument 43 fmd_buf_write(hdl, NULL, page->page_bufname, page, 48 gmem_page_free(fmd_hdl_t *hdl, gmem_page_t *page, int destroy) argument 53 gmem_case_fini(hdl, cc->cc_cp, destroy); 56 if (fmd_serd_exists(hdl, cc->cc_serdnm) && destroy) 57 fmd_serd_destroy(hdl, cc->cc_serdnm); 58 fmd_hdl_strfree(hdl, cc->cc_serdnm); 62 fmd_buf_destroy(hdl, NULL, page->page_bufname); 64 gmem_fmri_fini(hdl, &page->page_asru, destroy); 67 fmd_hdl_free(hdl, pag 71 gmem_page_destroy(fmd_hdl_t *hdl, gmem_page_t *page) argument 92 gmem_page_create(fmd_hdl_t *hdl, nvlist_t *modasru, uint64_t pa, uint64_t offset) argument 156 page_wrapv0(fmd_hdl_t *hdl, gmem_page_pers_t *pers, size_t psz) argument 172 gmem_page_restore(fmd_hdl_t *hdl, fmd_case_t *cp, gmem_case_ptr_t *ptr) argument 248 gmem_page_unusable(fmd_hdl_t *hdl, gmem_page_t *page) argument 282 gmem_page_validate(fmd_hdl_t *hdl) argument 295 gmem_page_dirty(fmd_hdl_t *hdl, gmem_page_t *page) argument 307 gmem_page_fini(fmd_hdl_t *hdl) argument 317 gmem_page_fault(fmd_hdl_t *hdl, nvlist_t *fru, nvlist_t *rsc, fmd_event_t *ep, uint64_t afar, uint64_t offset) argument 358 gmem_page_close(fmd_hdl_t *hdl, void *arg) argument [all...] |
H A D | gmem_fmri.c | 34 gmem_fmri_init(fmd_hdl_t *hdl, gmem_fmri_t *fmri, nvlist_t *nvl, argument 46 fmd_hdl_abort(hdl, "failed to copy fmri for fmri create"); 48 fmri->fmri_packbuf = fmd_hdl_alloc(hdl, fmri->fmri_packsz, FMD_SLEEP); 52 fmd_hdl_abort(hdl, "failed to pack fmri for fmri create"); 54 gmem_fmri_write(hdl, fmri); 58 gmem_fmri_fini(fmd_hdl_t *hdl, gmem_fmri_t *fmri, int destroy) argument 61 fmd_buf_destroy(hdl, NULL, fmri->fmri_packnm); 63 fmd_hdl_free(hdl, fmri->fmri_packbuf, fmri->fmri_packsz); 68 gmem_fmri_restore(fmd_hdl_t *hdl, gmem_fmri_t *fmri) argument 70 if (fmd_buf_size(hdl, NUL 89 gmem_fmri_write(fmd_hdl_t *hdl, gmem_fmri_t *fmri) argument [all...] |
H A D | gmem_main.c | 58 gmem_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class) argument 63 fmd_hdl_debug(hdl, "gmem_recv: begin: %s\n", strrchr(class, '.') + 1); 66 if (fmd_nvl_class_match(hdl, nvl, sp->subr_class)) { 67 disp = sp->subr_func(hdl, ep, nvl, class); 69 fmd_hdl_debug(hdl, "gmem_recv: done: %s (disp %d)\n", 75 fmd_hdl_debug(hdl, "gmem_recv: dropping %s - unable to handle\n", 80 gmem_close(fmd_hdl_t *hdl, fmd_case_t *cp) argument 82 gmem_case_closer_t *cl = fmd_case_getspecific(hdl, cp); 83 const char *uuid = fmd_case_uuid(hdl, cp); 91 fmd_hdl_debug(hdl, "clos 99 gmem_gc(fmd_hdl_t *hdl) argument 152 _fmd_fini(fmd_hdl_t *hdl) argument 159 _fmd_init(fmd_hdl_t *hdl) argument [all...] |
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_self.c | 49 self_case_create(fmd_hdl_t *hdl, int kind, const char *name) argument 51 self_case_t *scp = fmd_hdl_alloc(hdl, sizeof (self_case_t), FMD_SLEEP); 54 scp->sc_name = fmd_hdl_strdup(hdl, name, FMD_SLEEP); 60 self_case_destroy(fmd_hdl_t *hdl, self_case_t *scp) argument 62 fmd_hdl_strfree(hdl, scp->sc_name); 63 fmd_hdl_free(hdl, scp, sizeof (self_case_t)); 67 self_case_lookup(fmd_hdl_t *hdl, int kind, const char *name) argument 71 while ((cp = fmd_case_next(hdl, cp)) != NULL) { 72 self_case_t *scp = fmd_case_getspecific(hdl, cp); 82 self_recv(fmd_hdl_t *hdl, fmd_event_ argument 175 self_close(fmd_hdl_t *hdl, fmd_case_t *cp) argument 189 self_init(fmd_hdl_t *hdl) argument 217 self_fini(fmd_hdl_t *hdl) argument [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/software-response/ |
H A D | swrp_main.c | 55 _fmd_init(fmd_hdl_t *hdl) argument 57 (void) sw_fmd_init(hdl, &swrp_info, &subrp); 61 _fmd_fini(fmd_hdl_t *hdl) argument 63 sw_fmd_fini(hdl);
|
/illumos-gate/usr/src/cmd/fm/modules/sun4v/etm/ |
H A D | etm_xport_api.h | 81 etm_xport_init(fmd_hdl_t *hdl); 90 etm_xport_open(fmd_hdl_t *hdl, etm_xport_addr_t addr); 115 etm_xport_accept(fmd_hdl_t *hdl, etm_xport_addr_t *addrp); 124 etm_xport_close(fmd_hdl_t *hdl, etm_xport_conn_t conn); 141 etm_xport_get_ev_addrv(fmd_hdl_t *hdl, nvlist_t *ev); 149 etm_xport_free_addrv(fmd_hdl_t *hdl, etm_xport_addr_t *addrv); 162 etm_xport_get_addr_conn(fmd_hdl_t *hdl, etm_xport_conn_t *connv, 183 etm_xport_get_any_lcc(fmd_hdl_t *hdl, etm_xport_lcc_t *lccp); 192 etm_xport_fini(fmd_hdl_t *hdl); 206 etm_xport_read(fmd_hdl_t *hdl, etm_xport_conn_ [all...] |
/illumos-gate/usr/src/cmd/fm/modules/sun4u/USII-io-diagnosis/ |
H A D | iod_main.c | 89 iod_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class) argument 95 if (fmd_nvl_class_match(hdl, nvl, "*ue")) { 97 cp = fmd_case_open(hdl, NULL); 98 fault = fmd_nvl_create_fault(hdl, flt, 100, NULL, NULL, NULL); 99 fmd_case_add_ereport(hdl, cp, ep); 100 fmd_case_add_suspect(hdl, cp, fault); 101 fmd_case_solve(hdl, cp); 102 } else if (fmd_nvl_class_match(hdl, nvl, "*ce")) { 146 _fmd_init(fmd_hdl_t *hdl) argument 148 if (fmd_hdl_register(hdl, FMD_API_VERSIO [all...] |
/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/ |
H A D | cmd_dp_page.c | 60 dp_page_defer_data_write(fmd_hdl_t *hdl, cmd_dp_defer_t *dpage) argument 62 fmd_buf_write(hdl, dpage->dp_defer_page->page_case.cc_cp, "mcids", 67 dp_page_defer_data_restore(fmd_hdl_t *hdl, cmd_dp_defer_t *dpage) argument 69 fmd_buf_read(hdl, dpage->dp_defer_page->page_case.cc_cp, "mcids", 74 dp_page_defer_add_data(fmd_hdl_t *hdl, cmd_dp_defer_t *dpage, uint64_t afar) argument 80 fmd_hdl_abort(hdl, "cmd_dp_get_mcid failed"); 92 fmd_hdl_abort(hdl, "too many mcids for deferred page"); 94 dp_page_defer_data_write(hdl, dpage); 98 dp_page_defer_create(fmd_hdl_t *hdl, cmd_page_t *page, uint64_t afar) argument 103 dpage = fmd_hdl_zalloc(hdl, sizeo 132 cmd_dp_page_defer(fmd_hdl_t *hdl, nvlist_t *modasru, fmd_event_t *ep, uint64_t afar) argument 156 cmd_dp_page_check(fmd_hdl_t *hdl, cmd_dp_defer_t *dpage) argument 176 cmd_dp_page_replay(fmd_hdl_t *hdl) argument 227 cmd_dp_page_restore(fmd_hdl_t *hdl, cmd_page_t *page) argument 241 cmd_dp_page_validate(fmd_hdl_t *hdl) argument 262 cmd_dp_page_isdeferred(fmd_hdl_t *hdl, cmd_page_t *page) argument [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/smf/ |
H A D | smf_response.c | 97 uuid_cache_grow(fmd_hdl_t *hdl) argument 107 newcache = fmd_hdl_zalloc(hdl, newsz, FMD_SLEEP); 117 fmd_hdl_free(hdl, uuid_cache, oldsz); 118 fmd_buf_destroy(hdl, NULL, UUID_CACHE_BUFNAME); 122 fmd_buf_create(hdl, NULL, UUID_CACHE_BUFNAME, newsz); 126 uuid_cache_persist(fmd_hdl_t *hdl) argument 131 fmd_buf_write(hdl, NULL, UUID_CACHE_BUFNAME, uuid_cache, sz); 142 uuid_cache_gc(fmd_hdl_t *hdl) argument 156 if (fmd_case_uuisresolved(hdl, entp->uuid)) { 162 thp = fmd_hdl_topo_hold(hdl, TOPO_VERSIO 189 uuid_cache_restore(fmd_hdl_t *hdl) argument 211 swrp_smf_cache_add(fmd_hdl_t *hdl, char *uuid, char *fmristr) argument 272 swrp_smf_cache_mark(fmd_hdl_t *hdl, char *uuid, char *fmristr) argument 311 suspect_is_maint_defect(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t **defectnvl, nvlist_t **rsrcnvl) argument 344 swrp_smf_cacheuuid(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class, void *arg) argument 374 swrp_smf2fmd(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class, void *arg) argument 424 swrp_fmd2smf(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class, void *arg) argument 502 swrp_smf_init(fmd_hdl_t *hdl, id_t id, const struct sw_disp **dpp, int *nelemp) argument 531 swrp_smf_fini(fmd_hdl_t *hdl) argument [all...] |