/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_util.c | 60 libzfs_errno(libzfs_handle_t *hdl) in libzfs_errno() argument 62 return (hdl->libzfs_error); in libzfs_errno() 66 libzfs_error_action(libzfs_handle_t *hdl) in libzfs_error_action() argument 68 return (hdl->libzfs_action); in libzfs_error_action() 72 libzfs_error_description(libzfs_handle_t *hdl) in libzfs_error_description() argument 74 if (hdl->libzfs_desc[0] != '\0') in libzfs_error_description() 75 return (hdl->libzfs_desc); in libzfs_error_description() 77 switch (hdl->libzfs_error) { in libzfs_error_description() 284 assert(hdl->libzfs_error == 0); in libzfs_error_description() 291 zfs_error_aux(libzfs_handle_t *hdl, const char *fmt, ...) in zfs_error_aux() argument [all …]
|
H A D | libzfs_fru.c | 110 libzfs_handle_t *hdl = arg; in libzfs_fru_gather() local 121 if (hdl->libzfs_chassis_id[0] == '\0' && in libzfs_fru_gather() 125 (void) strlcpy(hdl->libzfs_chassis_id, devpath, in libzfs_fru_gather() 126 sizeof (hdl->libzfs_chassis_id)); in libzfs_fru_gather() 141 if (libzfs_fru_lookup(hdl, devpath) != NULL) { in libzfs_fru_gather() 184 frup->zf_chain = hdl->libzfs_fru_hash[idx]; in libzfs_fru_gather() 185 hdl->libzfs_fru_hash[idx] = frup; in libzfs_fru_gather() 186 frup->zf_next = hdl->libzfs_fru_list; in libzfs_fru_gather() 187 hdl->libzfs_fru_list = frup; in libzfs_fru_gather() 264 libzfs_fru_refresh(libzfs_handle_t *hdl) in libzfs_fru_refresh() argument [all …]
|
H A D | libzfs_config.c | 79 namespace_clear(libzfs_handle_t *hdl) in namespace_clear() argument 81 if (hdl->libzfs_ns_avl) { in namespace_clear() 85 while ((cn = uu_avl_teardown(hdl->libzfs_ns_avl, in namespace_clear() 92 uu_avl_destroy(hdl->libzfs_ns_avl); in namespace_clear() 93 hdl->libzfs_ns_avl = NULL; in namespace_clear() 96 if (hdl->libzfs_ns_avlpool) { in namespace_clear() 97 uu_avl_pool_destroy(hdl->libzfs_ns_avlpool); in namespace_clear() 98 hdl->libzfs_ns_avlpool = NULL; in namespace_clear() 106 namespace_reload(libzfs_handle_t *hdl) in namespace_reload() argument 114 if (hdl->libzfs_ns_gen == 0) { in namespace_reload() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/software-diagnosis/ |
H A D | swde_case.c | 118 swde_case_associate(fmd_hdl_t *hdl, fmd_case_t *cp, swde_case_t *scp, in swde_case_associate() argument 123 fmd_case_setspecific(hdl, cp, scp); in swde_case_associate() 127 swde_case_unserialize(fmd_hdl_t *hdl, fmd_case_t *cp) in swde_case_unserialize() argument 134 scp = fmd_hdl_zalloc(hdl, sizeof (*scp), FMD_SLEEP); in swde_case_unserialize() 137 fmd_buf_read(hdl, cp, SW_CASE_DATA_BUFNAME, datap, sizeof (*datap)); in swde_case_unserialize() 140 fmd_hdl_free(hdl, scp, sizeof (*scp)); in swde_case_unserialize() 145 subdata = fmd_hdl_alloc(hdl, sz, FMD_SLEEP); in swde_case_unserialize() 146 fmd_buf_read(hdl, cp, datap->sc_sub_bufname, subdata, sz); in swde_case_unserialize() 149 fmd_hdl_abort(hdl, "unserialize: expected subdata " in swde_case_unserialize() 155 swde_case_associate(hdl, cp, scp, subdata); in swde_case_unserialize() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/event-transport/ |
H A D | etm.c | 91 #define ALLOC_BUF(hdl, buf, size) \ argument 92 buf = fmd_hdl_zalloc((hdl), (size), FMD_SLEEP); 94 #define FREE_BUF(hdl, buf, size) fmd_hdl_free((hdl), (buf), (size)); argument 179 etm_hex_dump(fmd_hdl_t *hdl, void *buf, size_t buflen, int direction) in etm_hex_dump() argument 191 fmd_hdl_debug(hdl, "--- WRITE Message Dump ---"); in etm_hex_dump() 193 fmd_hdl_debug(hdl, "--- READ Message Dump ---"); in etm_hex_dump() 195 fmd_hdl_debug(hdl, " Displaying %d bytes", buflen); in etm_hex_dump() 200 fmd_hdl_debug(hdl, "%3d: %4x %4x %4x %4x %4x %4x %4x %4x", i, in etm_hex_dump() 209 fmd_hdl_debug(hdl, "%3d: %4x %4x", i, *(c+0), *(c+1)); in etm_hex_dump() 212 fmd_hdl_debug(hdl, "%3d: %4x %4x %4x %4x", i, *(c+0), *(c+1), in etm_hex_dump() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | cmi_hw.c | 99 #define HDLOPS(hdl) ((hdl)->cmih_ops) argument 272 cmi_hdl_impl_t *hdl = IMPLHDL(ophdl); in cmi_hdl_inj_begin() local 274 if (hdl != NULL) in cmi_hdl_inj_begin() 275 hdl->cmih_flags |= CMIH_F_INJACTV; in cmi_hdl_inj_begin() 285 cmi_hdl_impl_t *hdl = IMPLHDL(ophdl); in cmi_hdl_inj_end() local 287 ASSERT(hdl == NULL || hdl->cmih_flags & CMIH_F_INJACTV); in cmi_hdl_inj_end() 288 if (hdl != NULL) in cmi_hdl_inj_end() 289 hdl->cmih_flags &= ~CMIH_F_INJACTV; in cmi_hdl_inj_end() 307 #define CMI_MSRI_HASHIDX(hdl, msr) \ argument 308 ((((uintptr_t)(hdl) >> 3) + (msr)) % (CMI_MSRI_HASHSZ - 1)) [all …]
|
H A D | cmi.c | 114 #define HDL2CMI(hdl) cmi_hdl_getcmi(hdl) argument 294 cmi_search_list(cmi_hdl_t hdl, int match) in cmi_search_list() argument 301 cmi_hdl_walk(cmi_search_list_cb, (void *)hdl, (void *)&match, &dhdl); in cmi_search_list() 311 cmi_load_module(cmi_hdl_t hdl, int match, int *chosenp) in cmi_load_module() argument 326 if ((cmi = cmi_search_list(hdl, match)) != NULL) { in cmi_load_module() 331 s[0] = cmi_hdl_family(hdl); in cmi_load_module() 332 s[1] = cmi_hdl_model(hdl); in cmi_load_module() 333 s[2] = cmi_hdl_stepping(hdl); in cmi_load_module() 335 cmi_hdl_vendorstr(hdl), ".", s, match, chosenp); in cmi_load_module() 353 cmi_load_specific(cmi_hdl_t hdl, void **datap) in cmi_load_specific() argument [all …]
|
H A D | cms.c | 62 #define HDL2CMS(hdl) cms_hdl_getcms(hdl) argument 102 cms_hdl_getcms(cmi_hdl_t hdl) in cms_hdl_getcms() argument 104 struct cms_ctl *cdp = cmi_hdl_getspecific(hdl); in cms_hdl_getcms() 110 cms_hdl_getcmsdata(cmi_hdl_t hdl) in cms_hdl_getcmsdata() argument 112 struct cms_ctl *cdp = cmi_hdl_getspecific(hdl); in cms_hdl_getcmsdata() 289 cms_search_list(cmi_hdl_t hdl, int match) in cms_search_list() argument 296 cmi_hdl_walk(cms_search_list_cb, (void *)hdl, (void *)&match, &dhdl); in cms_search_list() 314 cms_load_module(cmi_hdl_t hdl, int match, int *chosenp) in cms_load_module() argument 325 s[0] = cmi_hdl_family(hdl); in cms_load_module() 326 s[1] = cmi_hdl_model(hdl); in cms_load_module() [all …]
|
/illumos-gate/usr/src/common/mc/mc-amd/ |
H A D | mcamd_patounum.c | 55 iaddr_gen(struct mcamd_hdl *hdl, mcamd_node_t *mc, uint64_t pa, in iaddr_gen() argument 61 if (!mcamd_get_numprops(hdl, in iaddr_gen() 69 mcamd_dprintf(hdl, MCAMD_DBG_ERR, "iaddr_gen: failed to " in iaddr_gen() 71 return (mcamd_set_errno(hdl, EMCAMD_TREEINVALID)); in iaddr_gen() 80 return (mcamd_set_errno(hdl, EMCAMD_NOADDR)); in iaddr_gen() 83 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "iaddr_gen: PA 0x%llx not " in iaddr_gen() 86 return (mcamd_set_errno(hdl, EMCAMD_NOADDR)); in iaddr_gen() 100 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "iaddr_gen: dram hole " in iaddr_gen() 111 mcamd_dprintf(hdl, MCAMD_DBG_ERR, "Invalid intlven " in iaddr_gen() 113 return (mcamd_set_errno(hdl, EMCAMD_TREEINVALID)); in iaddr_gen() [all …]
|
H A D | mcamd_unumtopa.c | 44 mcamd_unumtopa(struct mcamd_hdl *hdl, mcamd_node_t *root, mc_unum_t *unump, in mcamd_unumtopa() argument 50 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa: chip %d " in mcamd_unumtopa() 55 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa: offset " in mcamd_unumtopa() 57 return (mcamd_set_errno(hdl, EMCAMD_NOADDR)); in mcamd_unumtopa() 64 for (mc = mcamd_mc_next(hdl, root, NULL); mc != NULL; in mcamd_unumtopa() 65 mc = mcamd_mc_next(hdl, root, mc)) { in mcamd_unumtopa() 66 if (!mcamd_get_numprops(hdl, in mcamd_unumtopa() 70 mcamd_dprintf(hdl, MCAMD_DBG_ERR, "mcamd_unumtopa: " in mcamd_unumtopa() 72 return (mcamd_set_errno(hdl, EMCAMD_TREEINVALID)); in mcamd_unumtopa() 78 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "mcamd_unumtopa; " in mcamd_unumtopa() [all …]
|
H A D | mcamd_rowcol.c | 60 getmcprops(struct mcamd_hdl *hdl, mcamd_node_t *mc, const char *caller, in getmcprops() argument 63 if (!mcamd_get_numprops(hdl, in getmcprops() 77 mcamd_dprintf(hdl, MCAMD_DBG_ERR, "%s: failed to read mc " in getmcprops() 79 return (mcamd_set_errno(hdl, EMCAMD_TREEINVALID)); in getmcprops() 86 getcsprops(struct mcamd_hdl *hdl, mcamd_node_t *cs, const char *caller, in getcsprops() argument 89 if (!mcamd_get_numprops(hdl, in getcsprops() 96 mcamd_dprintf(hdl, MCAMD_DBG_ERR, "%s: failed to read cs " in getcsprops() 98 return (mcamd_set_errno(hdl, EMCAMD_TREEINVALID)); in getcsprops() 105 gettbls(struct mcamd_hdl *hdl, uint_t csmode, struct mcprops *mcpp, in gettbls() argument 114 mcamd_dprintf(hdl, MCAMD_DBG_FLOW, "%s: no bank address mode " in gettbls() [all …]
|
/illumos-gate/usr/src/lib/libpool/common/ |
H A D | dict.c | 236 dict_length(dict_hdl_t *hdl) in dict_length() argument 238 return (hdl->dh_length); in dict_length() 245 dict_free(dict_hdl_t **hdl) in dict_free() argument 247 if ((*hdl)->dh_length > 0) { in dict_free() 249 for (i = 0; i < (*hdl)->dh_size; i++) { in dict_free() 251 for (this = (*hdl)->dh_buckets[i]; this != NULL; in dict_free() 258 free((*hdl)->dh_buckets); in dict_free() 259 free((*hdl)); in dict_free() 260 *hdl = NULL; in dict_free() 271 dict_hdl_t *hdl; in dict_new() local [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/io-retire/ |
H A D | rio_main.c | 43 parse_exception_string(fmd_hdl_t *hdl, char *estr) in parse_exception_string() argument 65 elem = fmd_hdl_alloc(hdl, in parse_exception_string() 67 elem->el_fault = fmd_hdl_strdup(hdl, p, FMD_SLEEP); in parse_exception_string() 80 fmd_hdl_abort(hdl, "Error parsing exception list: %s\n", estr); in parse_exception_string() 90 fault_exception(fmd_hdl_t *hdl, nvlist_t *fault) in fault_exception() argument 95 if (fmd_nvl_class_match(hdl, fault, elem->el_fault)) { in fault_exception() 96 fmd_hdl_debug(hdl, "rio_recv: Skipping fault " in fault_exception() 106 free_exception_list(fmd_hdl_t *hdl) in free_exception_list() argument 113 fmd_hdl_strfree(hdl, elem->el_fault); in free_exception_list() 114 fmd_hdl_free(hdl, elem, sizeof (*elem)); in free_exception_list() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-diagnosis/ |
H A D | zfs_de.c | 128 zfs_case_serialize(fmd_hdl_t *hdl, zfs_case_t *zcp) in zfs_case_serialize() argument 135 fmd_buf_write(hdl, zcp->zc_case, CASE_DATA, &zcp->zc_data, in zfs_case_serialize() 139 fmd_buf_write(hdl, zcp->zc_case, CASE_FRU, zcp->zc_fru, in zfs_case_serialize() 147 zfs_case_unserialize(fmd_hdl_t *hdl, fmd_case_t *cp) in zfs_case_unserialize() argument 152 zcp = fmd_hdl_zalloc(hdl, sizeof (zfs_case_t), FMD_SLEEP); in zfs_case_unserialize() 155 fmd_buf_read(hdl, cp, CASE_DATA, &zcp->zc_data, in zfs_case_unserialize() 159 fmd_hdl_free(hdl, zcp, sizeof (zfs_case_t)); in zfs_case_unserialize() 163 if ((frulen = fmd_buf_size(hdl, zcp->zc_case, CASE_FRU)) > 0) { in zfs_case_unserialize() 164 zcp->zc_fru = fmd_hdl_alloc(hdl, frulen + 1, FMD_SLEEP); in zfs_case_unserialize() 165 fmd_buf_read(hdl, zcp->zc_case, CASE_FRU, zcp->zc_fru, in zfs_case_unserialize() [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) in uuid_cache_grow() argument 107 newcache = fmd_hdl_zalloc(hdl, newsz, FMD_SLEEP); in uuid_cache_grow() 117 fmd_hdl_free(hdl, uuid_cache, oldsz); in uuid_cache_grow() 118 fmd_buf_destroy(hdl, NULL, UUID_CACHE_BUFNAME); in uuid_cache_grow() 122 fmd_buf_create(hdl, NULL, UUID_CACHE_BUFNAME, newsz); in uuid_cache_grow() 126 uuid_cache_persist(fmd_hdl_t *hdl) in uuid_cache_persist() argument 131 fmd_buf_write(hdl, NULL, UUID_CACHE_BUFNAME, uuid_cache, sz); in uuid_cache_persist() 142 uuid_cache_gc(fmd_hdl_t *hdl) in uuid_cache_gc() argument 156 if (fmd_case_uuisresolved(hdl, entp->uuid)) { in uuid_cache_gc() 162 thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION); in uuid_cache_gc() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/cpumem-retire/ |
H A D | cma_page.c | 62 cma_page_free(fmd_hdl_t *hdl, cma_page_t *page) in cma_page_free() argument 66 fmd_hdl_free(hdl, page, sizeof (cma_page_t)); in cma_page_free() 86 cma_page_retire(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t *asru, in cma_page_retire() argument 98 fmd_hdl_debug(hdl, "page retire nvlist dup failed\n"); in cma_page_retire() 103 if (fmd_nvl_fmri_expand(hdl, asrucp) < 0) { in cma_page_retire() 104 fmd_hdl_debug(hdl, "failed to expand page asru\n"); in cma_page_retire() 110 if (!repair && !fmd_nvl_fmri_present(hdl, asrucp)) { in cma_page_retire() 111 fmd_hdl_debug(hdl, "page retire overtaken by events\n"); in cma_page_retire() 125 fmd_hdl_debug(hdl, "mem fault missing 'physaddr'\n"); in cma_page_retire() 134 fmd_hdl_debug(hdl, "suppressed unretire of page %llx\n", in cma_page_retire() [all …]
|
/illumos-gate/usr/src/lib/fm/libfmd_agent/common/ |
H A D | fmd_agent.c | 53 fmd_agent_errno(fmd_agent_hdl_t *hdl) in fmd_agent_errno() argument 55 return (hdl->agent_errno); in fmd_agent_errno() 59 fmd_agent_seterrno(fmd_agent_hdl_t *hdl, int err) in fmd_agent_seterrno() argument 61 hdl->agent_errno = err; in fmd_agent_seterrno() 72 fmd_agent_errmsg(fmd_agent_hdl_t *hdl) in fmd_agent_errmsg() argument 74 return (fmd_agent_strerr(hdl->agent_errno)); in fmd_agent_errmsg() 78 cleanup_set_errno(fmd_agent_hdl_t *hdl, nvlist_t *innvl, nvlist_t *outnvl, in cleanup_set_errno() argument 83 return (fmd_agent_seterrno(hdl, err)); in cleanup_set_errno() 91 fmd_agent_nvl_ioctl(fmd_agent_hdl_t *hdl, int cmd, uint32_t ver, in fmd_agent_nvl_ioctl() argument 132 if (ioctl(hdl->agent_devfd, cmd, &fid) < 0) { in fmd_agent_nvl_ioctl() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/common/ |
H A D | sw_main_cmn.c | 71 sw_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class) in sw_recv() argument 79 msinfo = (struct sw_modspecific *)fmd_hdl_getspecific(hdl); in sw_recv() 92 if (fmd_nvl_class_match(hdl, nvl, dp->swd_classpat)) { in sw_recv() 99 (*dispf)(hdl, ep, nvl, class, dp->swd_arg); in sw_recv() 116 sw_timer_install(fmd_hdl_t *hdl, id_t who, void *arg, fmd_event_t *ep, in sw_timer_install() argument 125 msinfo = (struct sw_modspecific *)fmd_hdl_getspecific(hdl); in sw_timer_install() 127 fmd_hdl_abort(hdl, "sw_timer_install: invalid subid %d\n", who); in sw_timer_install() 133 fmd_hdl_abort(hdl, "sw_timer_install: no swsub_timeout\n"); in sw_timer_install() 149 fmd_hdl_abort(hdl, "timer slots exhausted\n"); in sw_timer_install() 154 fmd_timer_install(hdl, arg, ep, hrt); in sw_timer_install() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fx_subr.c | 44 fab_prep_basic_erpt(fmd_hdl_t *hdl, nvlist_t *nvl, nvlist_t *erpt, in fab_prep_basic_erpt() argument 75 if (isRC && fab_get_rcpath(hdl, nvl, rcpath)) { in fab_prep_basic_erpt() 91 fab_send_tgt_erpt(fmd_hdl_t *hdl, fab_data_t *data, const char *class, in fab_send_tgt_erpt() argument 111 fmd_hdl_debug(hdl, "Sending Target Ereport: " in fab_send_tgt_erpt() 119 fmri = fab_find_addr(hdl, nvl, tgt_addr); in fab_send_tgt_erpt() 122 fmri = fab_find_bdf(hdl, nvl, tgt_bdf); in fab_send_tgt_erpt() 164 fmd_hdl_debug(hdl, "Sending target ereport: %s 0x%x\n", in fab_send_tgt_erpt() 166 fmd_xprt_post(hdl, fab_fmd_xprt, erpt, 0); in fab_send_tgt_erpt() 167 if (fmd_xprt_error(hdl, fab_fmd_xprt)) in fab_send_tgt_erpt() 169 fmd_hdl_strfree(hdl, fmri); in fab_send_tgt_erpt() [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) in self_case_create() argument 51 self_case_t *scp = fmd_hdl_alloc(hdl, sizeof (self_case_t), FMD_SLEEP); in self_case_create() 54 scp->sc_name = fmd_hdl_strdup(hdl, name, FMD_SLEEP); in self_case_create() 60 self_case_destroy(fmd_hdl_t *hdl, self_case_t *scp) in self_case_destroy() argument 62 fmd_hdl_strfree(hdl, scp->sc_name); in self_case_destroy() 63 fmd_hdl_free(hdl, scp, sizeof (self_case_t)); in self_case_destroy() 67 self_case_lookup(fmd_hdl_t *hdl, int kind, const char *name) in self_case_lookup() argument 71 while ((cp = fmd_case_next(hdl, cp)) != NULL) { in self_case_lookup() 72 self_case_t *scp = fmd_case_getspecific(hdl, cp); in self_case_lookup() 82 self_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class) in self_recv() argument [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | disk_monitor.c | 145 dm_fault_execute_actions(fmd_hdl_t *hdl, diskmon_t *diskp, nvlist_t *nvl) in dm_fault_execute_actions() argument 154 if (fmd_nvl_class_match(hdl, nvl, in dm_fault_execute_actions() 158 if (fmd_nvl_class_match(hdl, nvl, in dm_fault_execute_actions() 162 if (fmd_nvl_class_match(hdl, nvl, in dm_fault_execute_actions() 180 diskmon_agent_repair(fmd_hdl_t *hdl, nvlist_t *nvl, int repair) in diskmon_agent_repair() argument 204 if ((diskp = dm_fmri_to_diskmon(hdl, fmri)) == NULL) in diskmon_agent_repair() 216 fmd_case_uuresolved(hdl, uuid); in diskmon_agent_repair() 221 diskmon_agent_suspect(fmd_hdl_t *hdl, nvlist_t *nvl) in diskmon_agent_suspect() argument 237 while (nvc-- != 0 && !fmd_case_uuclosed(hdl, uuid)) { in diskmon_agent_suspect() 244 if ((diskp = dm_fmri_to_diskmon(hdl, fmri)) == NULL) in diskmon_agent_suspect() [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) in sp_post_sysevent() argument 67 sp_monitor_t *smp = fmd_hdl_getspecific(hdl); in sp_post_sysevent() 70 fmd_hdl_debug(hdl, "SP reset detected, posting sysevent"); in sp_post_sysevent() 74 fmd_hdl_debug(hdl, "failed to send sysevent: %s", in sp_post_sysevent() 87 sp_timeout(fmd_hdl_t *hdl, id_t id, void *data) in sp_timeout() argument 89 sp_monitor_t *smp = fmd_hdl_getspecific(hdl); in sp_timeout() 97 fmd_hdl_debug(hdl, "failed to get uptime: %s", in sp_timeout() 110 sp_post_sysevent(hdl); in sp_timeout() 116 (void) fmd_timer_install(hdl, NULL, NULL, smp->sm_interval); in sp_timeout() 137 _fmd_init(fmd_hdl_t *hdl) in _fmd_init() argument [all …]
|
/illumos-gate/usr/src/lib/libdevice/ |
H A D | libdevice.h | 61 devctl_release(devctl_hdl_t hdl); 64 devctl_device_offline(devctl_hdl_t hdl); 67 devctl_device_remove(devctl_hdl_t hdl); 70 devctl_pm_raisepower(devctl_hdl_t hdl); 73 devctl_pm_changepowerlow(devctl_hdl_t hdl); 76 devctl_pm_changepowerhigh(devctl_hdl_t hdl); 79 devctl_pm_idlecomponent(devctl_hdl_t hdl); 82 devctl_pm_busycomponent(devctl_hdl_t hdl); 85 devctl_pm_testbusy(devctl_hdl_t hdl, uint_t *busyp); 88 devctl_pm_failsuspend(devctl_hdl_t hdl); [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/syslog-msgs/ |
H A D | syslog.c | 109 syslog_emit(fmd_hdl_t *hdl, const char *msg) in syslog_emit() argument 162 fmd_hdl_debug(hdl, "putmsg failed: %s\n", strerror(errno)); in syslog_emit() 173 fmd_hdl_debug(hdl, "write failed: %s\n", strerror(errno)); in syslog_emit() 179 free_notify_prefs(fmd_hdl_t *hdl, nvlist_t **prefs, uint_t nprefs) in free_notify_prefs() argument 187 fmd_hdl_free(hdl, prefs, sizeof (nvlist_t *) * nprefs); in free_notify_prefs() 191 get_notify_prefs(fmd_hdl_t *hdl, nvlist_t *ev_nvl, nvlist_t ***pref_nvl, in get_notify_prefs() argument 202 fmd_hdl_debug(hdl, "Error looking up notification " in get_notify_prefs() 211 fmd_hdl_debug(hdl, "Malformed preference nvlist\n"); in get_notify_prefs() 216 tmparr = fmd_hdl_alloc(hdl, nelem * sizeof (nvlist_t *), FMD_SLEEP); in get_notify_prefs() 222 tmparr[nslelem++] = fmd_nvl_dup(hdl, mech_nvl, in get_notify_prefs() [all …]
|
/illumos-gate/usr/src/uts/i86pc/cpu/generic_cpu/ |
H A D | gcpu_main.c | 88 gcpu_init_ident_ppin(cmi_hdl_t hdl) in gcpu_init_ident_ppin() argument 98 switch (cmi_hdl_vendor(hdl)) { in gcpu_init_ident_ppin() 113 if (cmi_hdl_rdmsr(hdl, ppin_ctl_msr, &value) != CMI_SUCCESS) { in gcpu_init_ident_ppin() 130 if (cmi_hdl_wrmsr(hdl, ppin_ctl_msr, MSR_PPIN_CTL_ENABLED) != in gcpu_init_ident_ppin() 135 if (cmi_hdl_rdmsr(hdl, ppin_ctl_msr, &value) != CMI_SUCCESS) { in gcpu_init_ident_ppin() 144 if (cmi_hdl_rdmsr(hdl, ppin_msr, &value) != CMI_SUCCESS) { in gcpu_init_ident_ppin() 153 if (cmi_hdl_wrmsr(hdl, ppin_ctl_msr, MSR_PPIN_CTL_DISABLED) == in gcpu_init_ident_ppin() 155 (void) cmi_hdl_wrmsr(hdl, ppin_ctl_msr, MSR_PPIN_CTL_LOCKED); in gcpu_init_ident_ppin() 158 return (kmem_asprintf("iv0-%s-%x-%llx", vendor, cmi_hdl_chipsig(hdl), in gcpu_init_ident_ppin() 164 gcpu_init_ident(cmi_hdl_t hdl, struct gcpu_chipshared *sp) in gcpu_init_ident() argument [all …]
|