| /onnv/onnv-gate/usr/src/lib/libtnfctl/ |
| kernel.c | 41 tnfctl_trace_state_set(tnfctl_handle_t *hdl, boolean_t mode) 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) 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) 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_t pid [all...] |
| open.c | 58 tnfctl_handle_t *hdl; local 70 /* allocate hdl and zero fill */ 71 hdl = calloc(1, sizeof (*hdl)); 72 if (hdl == NULL) { 77 hdl->proc_p = proc_p; 78 hdl->mode = DIRECT_MODE; 79 hdl->called_exit = B_FALSE; 82 hdl->p_read = _tnfctl_read_targ; 83 hdl->p_write = _tnfctl_write_targ 134 tnfctl_handle_t *hdl; local 219 tnfctl_handle_t *hdl; local 261 tnfctl_handle_t *hdl; local [all...] |
| close.c | 49 tnfctl_close(tnfctl_handle_t *hdl, tnfctl_targ_op_t action) 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->destroy_func [all...] |
| /onnv/onnv-gate/usr/src/common/mc/mc-amd/ |
| mcamd_unumtopa.c | 46 mcamd_unumtopa(struct mcamd_hdl *hdl, mcamd_node_t *root, mc_unum_t *unump, 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_FLOW, "mcamd_unumtopa; [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/ |
| cmd_page.c | 45 page_write(fmd_hdl_t *hdl, cmd_page_t *page) 47 fmd_buf_write(hdl, NULL, page->page_bufname, page, 52 cmd_page_free(fmd_hdl_t *hdl, cmd_page_t *page, int destroy) 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, page, sizeof (cmd_page_t)) [all...] |
| cmd_bank.c | 44 cmd_bank_add_dimm(fmd_hdl_t *hdl, cmd_bank_t *bank, cmd_dimm_t *dimm) 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) 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) 87 if (fmd_nvl_fmri_contains(hdl, bank->bank_asru_nvl, 89 cmd_bank_add_dimm(hdl, bank, dimm) [all...] |
| cmd_fmri.c | 36 cmd_fmri_init(fmd_hdl_t *hdl, cmd_fmri_t *fmri, nvlist_t *nvl, 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) 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) 72 if (fmd_buf_size(hdl, NULL, fmri->fmri_packnm) == 0) [all...] |
| cmd_main.c | 80 cmd_nop(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class, 377 cmd_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class) 382 fmd_hdl_debug(hdl, "cmd_recv: begin: %s\n", strrchr(class, '.') + 1); 385 if (fmd_nvl_class_match(hdl, nvl, sp->subr_class)) { 386 disp = sp->subr_func(hdl, ep, nvl, class, sp->subr_arg); 388 fmd_hdl_debug(hdl, "cmd_recv: done: %s (disp %d)\n", 394 fmd_hdl_debug(hdl, "cmd_recv: dropping %s - unable to handle\n", class); 398 cmd_timeout(fmd_hdl_t *hdl, id_t id, void *arg) 404 cmd_mem_timeout(hdl, id); 410 cmd_dp_timeout(hdl, id) [all...] |
| cmd_dimm.c | 56 cmd_dimm_fmri_derive(fmd_hdl_t *hdl, uint64_t afar, uint16_t synd, 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, 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, 101 return (cmd_fault_add_location(hdl, flt, dimm->dimm_unum)); 103 return (cmd_nvl_create_fault(hdl, fltnm, cert, dimm->dimm_asru_nvl, 109 cmd_dimm_free(fmd_hdl_t *hdl, cmd_dimm_t *dimm, int destroy [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/common/ext-event-transport/ |
| fmevt_main.c | 53 _fmd_init(fmd_hdl_t *hdl) 60 if (fmd_hdl_register(hdl, FMD_API_VERSION, &fmd_info) != 0) 63 fmevt_init_outbound(hdl); 67 _fmd_fini(fmd_hdl_t *hdl) 69 fmevt_fini_outbound(hdl);
|
| /onnv/onnv-gate/usr/src/cmd/fm/modules/common/sp-monitor/ |
| sp_monitor.c | 66 sp_post_sysevent(fmd_hdl_t *hdl) 68 sp_monitor_t *smp = fmd_hdl_getspecific(hdl); 71 fmd_hdl_debug(hdl, "SP reset detected, posting sysevent"); 75 fmd_hdl_debug(hdl, "failed to send sysevent: %s", 88 sp_timeout(fmd_hdl_t *hdl, id_t id, void *data) 90 sp_monitor_t *smp = fmd_hdl_getspecific(hdl); 98 fmd_hdl_debug(hdl, "failed to get uptime: %s", 111 sp_post_sysevent(hdl); 117 (void) fmd_timer_install(hdl, NULL, NULL, smp->sm_interval); 138 _fmd_init(fmd_hdl_t *hdl) [all...] |
| /onnv/onnv-gate/usr/src/lib/libdevice/ |
| 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...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/sun4v/generic-mem/ |
| gmem_state.c | 47 gmem_case_create(fmd_hdl_t *hdl, gmem_header_t *hdr, 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) 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, cp, uuid, &ptr, sizeof (gmem_case_ptr_t)) [all...] |
| gmem_page.c | 42 page_write(fmd_hdl_t *hdl, gmem_page_t *page) 44 fmd_buf_write(hdl, NULL, page->page_bufname, page, 49 gmem_page_free(fmd_hdl_t *hdl, gmem_page_t *page, int destroy) 54 gmem_case_fini(hdl, cc->cc_cp, destroy); 57 if (fmd_serd_exists(hdl, cc->cc_serdnm) && destroy) 58 fmd_serd_destroy(hdl, cc->cc_serdnm); 59 fmd_hdl_strfree(hdl, cc->cc_serdnm); 63 fmd_buf_destroy(hdl, NULL, page->page_bufname); 65 gmem_fmri_fini(hdl, &page->page_asru, destroy); 68 fmd_hdl_free(hdl, page, sizeof (gmem_page_t)) [all...] |
| gmem_fmri.c | 34 gmem_fmri_init(fmd_hdl_t *hdl, gmem_fmri_t *fmri, nvlist_t *nvl, 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) 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) 70 if (fmd_buf_size(hdl, NULL, fmri->fmri_packnm) == 0) [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/fmd/common/ |
| fmd_self.c | 52 self_case_create(fmd_hdl_t *hdl, int kind, const char *name) 54 self_case_t *scp = fmd_hdl_alloc(hdl, sizeof (self_case_t), FMD_SLEEP); 57 scp->sc_name = fmd_hdl_strdup(hdl, name, FMD_SLEEP); 63 self_case_destroy(fmd_hdl_t *hdl, self_case_t *scp) 65 fmd_hdl_strfree(hdl, scp->sc_name); 66 fmd_hdl_free(hdl, scp, sizeof (self_case_t)); 70 self_case_lookup(fmd_hdl_t *hdl, int kind, const char *name) 74 while ((cp = fmd_case_next(hdl, cp)) != NULL) { 75 self_case_t *scp = fmd_case_getspecific(hdl, cp); 85 self_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/common/fdd-msg/ |
| fdd_msg.c | 76 send_fma_cap(fmd_hdl_t *hdl, id_t id, void *data) 82 ipmi_hdl = fmd_hdl_getspecific(hdl); 95 fmd_hdl_debug(hdl, "Failed to send Solaris FMA " 100 fmd_hdl_setspecific(hdl, NULL); 101 fmd_hdl_unregister(hdl); 122 _fmd_init(fmd_hdl_t *hdl) 128 if (fmd_hdl_register(hdl, FMD_API_VERSION, &fmd_info) != 0) 137 fmd_hdl_abort(hdl, "Failed to initialize IPMI " 139 fmd_hdl_debug(hdl, "Failed to load: no IPMI connection " 141 fmd_hdl_unregister(hdl); [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/sun4v/etm/ |
| 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_t conn, void* buf [all...] |
| etm_filter.h | 55 void etm_filter_init(fmd_hdl_t *hdl); 56 void etm_filter_fini(fmd_hdl_t *hdl); 58 int etm_filter_find_ldom_id(fmd_hdl_t *hdl, nvlist_t *erpt, char *name, 60 int etm_filter_find_ldom_name(fmd_hdl_t *hdl, uint64_t did, char *name, 62 void etm_filter_handle_ldom_event(fmd_hdl_t *hdl, etm_async_event_type_t event,
|
| /onnv/onnv-gate/usr/src/cmd/fm/modules/sun4u/USII-io-diagnosis/ |
| iod_main.c | 89 iod_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class) 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) 148 if (fmd_hdl_register(hdl, FMD_API_VERSION, &fmd_info) != 0 [all...] |
| /onnv/onnv-gate/usr/src/lib/libzfs/common/ |
| libzfs_config.c | 72 namespace_clear(libzfs_handle_t *hdl) 74 if (hdl->libzfs_ns_avl) { 78 while ((cn = uu_avl_teardown(hdl->libzfs_ns_avl, 85 uu_avl_destroy(hdl->libzfs_ns_avl); 86 hdl->libzfs_ns_avl = NULL; 89 if (hdl->libzfs_ns_avlpool) { 90 uu_avl_pool_destroy(hdl->libzfs_ns_avlpool); 91 hdl->libzfs_ns_avlpool = NULL; 99 namespace_reload(libzfs_handle_t *hdl) 107 if (hdl->libzfs_ns_gen == 0) 232 libzfs_handle_t *hdl = zhp->zpool_hdl; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/ |
| cmd_dp_page.c | 60 dp_page_defer_data_write(fmd_hdl_t *hdl, cmd_dp_defer_t *dpage) 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) 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) 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) 103 dpage = fmd_hdl_zalloc(hdl, sizeof (cmd_dp_defer_t), FMD_SLEEP) [all...] |
| /onnv/onnv-gate/usr/src/cmd/fm/modules/common/io-retire/ |
| rio_main.c | 43 parse_exception_string(fmd_hdl_t *hdl, char *estr) 65 elem = fmd_hdl_alloc(hdl, 67 elem->el_fault = fmd_hdl_strdup(hdl, p, FMD_SLEEP); 80 fmd_hdl_abort(hdl, "Error parsing exception list: %s\n", estr); 90 fault_exception(fmd_hdl_t *hdl, nvlist_t *fault) 95 if (fmd_nvl_class_match(hdl, fault, elem->el_fault)) { 96 fmd_hdl_debug(hdl, "rio_recv: Skipping fault " 106 free_exception_list(fmd_hdl_t *hdl) 113 fmd_hdl_strfree(hdl, elem->el_fault); 114 fmd_hdl_free(hdl, elem, sizeof (*elem)) [all...] |
| /onnv/onnv-gate/usr/src/lib/fm/libfmd_agent/common/ |
| fmd_agent.c | 49 fmd_agent_errno(fmd_agent_hdl_t *hdl) 51 return (hdl->agent_errno); 55 fmd_agent_seterrno(fmd_agent_hdl_t *hdl, int err) 57 hdl->agent_errno = err; 68 fmd_agent_errmsg(fmd_agent_hdl_t *hdl) 70 return (fmd_agent_strerr(hdl->agent_errno)); 74 cleanup_set_errno(fmd_agent_hdl_t *hdl, nvlist_t *innvl, nvlist_t *outnvl, 81 return (fmd_agent_seterrno(hdl, err)); 89 fmd_agent_nvl_ioctl(fmd_agent_hdl_t *hdl, int cmd, uint32_t ver, 128 if (ioctl(hdl->agent_devfd, cmd, &fid) < 0 147 fmd_agent_hdl_t *hdl; local [all...] |
| /onnv/onnv-gate/usr/src/lib/libpool/common/ |
| dict.c | 238 dict_length(dict_hdl_t *hdl) 240 return (hdl->dh_length); 247 dict_free(dict_hdl_t **hdl) 249 if ((*hdl)->dh_length > 0) { 251 for (i = 0; i < (*hdl)->dh_size; i++) { 253 for (this = (*hdl)->dh_buckets[i]; this != NULL; 260 free((*hdl)->dh_buckets); 261 free((*hdl)); 262 *hdl = NULL; 273 dict_hdl_t *hdl; local [all...] |