/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_util.c | 687 free(hdl); in libzfs_init() 693 free(hdl); in libzfs_init() 700 free(hdl); in libzfs_init() 711 free(hdl); in libzfs_init() 732 free(hdl); in libzfs_init() 760 free(hdl); in libzfs_fini() 1196 if (hdl) in zfs_nicestrtonum() 1211 if (hdl) in zfs_nicestrtonum() 1230 if (hdl) in zfs_nicestrtonum() 1243 if (hdl) in zfs_nicestrtonum() [all …]
|
H A D | libzfs_config.c | 81 if (hdl->libzfs_ns_avl) { in namespace_clear() 93 hdl->libzfs_ns_avl = NULL; in namespace_clear() 124 return (no_memory(hdl)); in namespace_reload() 126 if ((hdl->libzfs_ns_avl = uu_avl_create(hdl->libzfs_ns_avlpool, in namespace_reload() 128 return (no_memory(hdl)); in namespace_reload() 203 return (no_memory(hdl)); in namespace_reload() 401 if (!hdl->libzfs_pool_iter && namespace_reload(hdl) != 0) in zpool_iter() 404 hdl->libzfs_pool_iter++; in zpool_iter() 412 hdl->libzfs_pool_iter--; in zpool_iter() 420 hdl->libzfs_pool_iter--; in zpool_iter() [all …]
|
H A D | libzfs_fru.c | 110 libzfs_handle_t *hdl = arg; in libzfs_fru_gather() local 187 hdl->libzfs_fru_list = frup; in libzfs_fru_gather() 283 thp = hdl->libzfs_topo_hdl; in libzfs_fru_refresh() 291 (hdl->libzfs_fru_hash = in libzfs_fru_refresh() 320 libzfs_fru_refresh(hdl); in libzfs_fru_lookup() 346 libzfs_fru_refresh(hdl); in libzfs_fru_devpath() 389 libzfs_fru_refresh(hdl); in libzfs_fru_compare() 410 libzfs_fru_refresh(hdl); in libzfs_fru_notself() 445 hdl->libzfs_fru_list = NULL; in libzfs_fru_clear() 454 free(hdl->libzfs_fru_hash); in libzfs_fru_clear() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/software-diagnosis/ |
H A D | swde_case.c | 123 fmd_case_setspecific(hdl, cp, scp); in swde_case_associate() 231 closefunc(hdl, cp); in swde_close() 258 for (cp = fmd_case_next(hdl, NULL); cp; cp = fmd_case_next(hdl, cp)) { in swde_case_first() 259 scp = fmd_case_getspecific(hdl, cp); in swde_case_first() 348 if (vrfy_func(hdl, cp) == 0) in swde_case_verify() 349 fmd_case_close(hdl, cp); in swde_case_verify() 354 swde_case_init(fmd_hdl_t *hdl) in swde_case_init() argument 358 for (cp = fmd_case_next(hdl, NULL); cp; cp = fmd_case_next(hdl, cp)) { in swde_case_init() 359 swde_case_unserialize(hdl, cp); in swde_case_init() 360 swde_case_verify(hdl, cp); in swde_case_init() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/event-transport/ |
H A D | etm.c | 94 #define FREE_BUF(hdl, buf, size) fmd_hdl_free((hdl), (buf), (size)); argument 683 etm_reinit(hdl, mp); in etm_recv() 741 etm_reinit(hdl, mp); in etm_recv() 879 etm_reinit(hdl, mp); in etm_cb_func() 1339 hdl, mp, NULL, 0); in etm_send() 1414 etm_reconnect(hdl, mp); in etm_timeout() 1450 _fmd_init(fmd_hdl_t *hdl) in _fmd_init() argument 1477 fmd_hdl_unregister(hdl); in _fmd_init() 1486 _fmd_fini(fmd_hdl_t *hdl) in _fmd_fini() argument 1498 etm_free_epmap(hdl, mp); in _fmd_fini() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | cmi_hw.c | 99 #define HDLOPS(hdl) ((hdl)->cmih_ops) argument 581 #define HDLPRIV(hdl) ((cpu_t *)(hdl)->cmih_hdlpriv) argument 1010 xpv_model(hdl), xpv_stepping(hdl))); in xpv_chiprev() 1019 xpv_model(hdl), xpv_stepping(hdl))); in xpv_chiprevstr() 1028 xpv_model(hdl), xpv_stepping(hdl))); in xpv_getsockettype() 1037 xpv_model(hdl), xpv_stepping(hdl))); in xpv_getsocketstr() 1334 hdl = kmem_zalloc(sizeof (*hdl), KM_SLEEP); in cmi_hdl_create() 1374 kmem_free(hdl, sizeof (*hdl)); in cmi_hdl_create() 1517 kmem_free(hdl, sizeof (*hdl)); in cmi_hdl_destroy() 1845 cr4 = HDLOPS(hdl)->cmio_getcr4(hdl); in cmi_hdl_enable_mce() [all …]
|
H A D | cmi.c | 114 #define HDL2CMI(hdl) cmi_hdl_getcmi(hdl) argument 377 cmi_hdl_chipid(hdl), cmi_hdl_coreid(hdl), in cmi_load_specific() 385 cmi_hdl_chipid(hdl), cmi_hdl_coreid(hdl), in cmi_load_specific() 443 cmi_hdl_t hdl; in cmi_init() local 474 cms_init(hdl); in cmi_init() 480 return (hdl); in cmi_init() 508 cmi_hdl_t hdl; in cmi_post_startup() local 532 cmi_hdl_t hdl; in cmi_post_mpstartup() local 831 cmi_hdl_t hdl; in cmi_mc_patounum() local 865 cmi_hdl_t hdl; in cmi_mc_unumtopa() local [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 326 s[1] = cmi_hdl_model(hdl); in cms_load_module() 379 cmi_hdl_chipid(hdl), cmi_hdl_coreid(hdl), in cms_load_specific() 387 cmi_hdl_chipid(hdl), cmi_hdl_coreid(hdl), in cms_load_specific() 404 cms_init(cmi_hdl_t hdl) in cms_init() argument 429 cms_fini(cmi_hdl_t hdl) in cms_fini() argument 431 cms_t *cms = HDL2CMS(hdl); in cms_fini() 448 cms_present(cmi_hdl_t hdl) in cms_present() argument 456 cms_t *cms = HDL2CMS(hdl); in cms_post_startup() [all …]
|
/illumos-gate/usr/src/common/mc/mc-amd/ |
H A D | mcamd_patounum.c | 61 if (!mcamd_get_numprops(hdl, in iaddr_gen() 156 if (!mcamd_get_numprops(hdl, in cs_match() 190 if (!mcamd_get_numprops(hdl, in cs_sparedto() 244 !mcamd_get_numprops(hdl, in unum_fill() 359 if (!mcamd_get_numprops(hdl, in mc_whichdimm() 464 if (!mcamd_get_numprops(hdl, in mc_bkdg_patounum() 517 return (mcamd_set_errno(hdl, in mc_bkdg_patounum() 538 if (!mcamd_get_cfgregs(hdl, in mc_bkdg_patounum() 542 !mcamd_get_numprops(hdl, in mc_bkdg_patounum() 637 if (cs_match(hdl, iaddr, cs)) in mc_patounum() [all …]
|
H A D | mcamd_unumtopa.c | 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() 80 return (mcamd_set_errno(hdl, EMCAMD_NOADDR)); in mcamd_unumtopa() 90 dimm = mcamd_dimm_next(hdl, mc, dimm)) { in mcamd_unumtopa() 95 return (mcamd_set_errno(hdl, EMCAMD_TREEINVALID)); in mcamd_unumtopa() [all …]
|
/illumos-gate/usr/src/lib/libpool/common/ |
H A D | dict.c | 259 free((*hdl)); in dict_free() 260 *hdl = NULL; in dict_free() 271 dict_hdl_t *hdl; in dict_new() local 278 free(hdl); in dict_new() 283 return (hdl); in dict_new() 296 i = (*hdl->dh_hash)(key)%hdl->dh_size; in dict_get() 315 i = (*hdl->dh_hash)(key)%hdl->dh_size; in dict_put() 327 hdl->dh_length++; in dict_put() 329 hdl->dh_change++; in dict_put() 344 hdl->dh_change++; in dict_remove() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/io-retire/ |
H A D | rio_main.c | 65 elem = fmd_hdl_alloc(hdl, in parse_exception_string() 106 free_exception_list(fmd_hdl_t *hdl) in free_exception_list() argument 150 drt.rt_hdl = hdl; in rio_recv() 211 fmd_hdl_debug(hdl, "rio_recv:" in rio_recv() 291 fmd_case_uuclose(hdl, uuid); in rio_recv() 301 fmd_case_uuresolved(hdl, uuid); in rio_recv() 323 _fmd_init(fmd_hdl_t *hdl) in _fmd_init() argument 338 fmd_prop_free_string(hdl, estr); in _fmd_init() 340 fmd_hdl_strfree(hdl, estrdup); in _fmd_init() 345 _fmd_fini(fmd_hdl_t *hdl) in _fmd_fini() 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) in uuid_cache_grow() argument 142 uuid_cache_gc(fmd_hdl_t *hdl) in uuid_cache_gc() argument 183 fmd_hdl_topo_rele(hdl, thp); in uuid_cache_gc() 185 uuid_cache_persist(hdl); in uuid_cache_gc() 203 uuid_cache_gc(hdl); in uuid_cache_restore() 218 uuid_cache_grow(hdl); in swrp_smf_cache_add() 246 uuid_cache_gc(hdl); in swrp_smf_cache_add() 252 uuid_cache_grow(hdl); in swrp_smf_cache_add() 262 uuid_cache_persist(hdl); in swrp_smf_cache_add() 299 uuid_cache_persist(hdl); in swrp_smf_cache_mark() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/zfs-diagnosis/ |
H A D | zfs_de.c | 581 zfs_purge_cases(hdl); in zfs_fm_recv() 810 fmd_serd_reset(hdl, in zfs_fm_recv() 813 fmd_serd_reset(hdl, in zfs_fm_recv() 944 fmd_serd_create(hdl, in zfs_fm_recv() 950 if (fmd_serd_record(hdl, in zfs_fm_recv() 952 zfs_case_solve(hdl, zcp, in zfs_fm_recv() 1046 zfs_fm_gc(fmd_hdl_t *hdl) in zfs_fm_gc() argument 1048 zfs_purge_cases(hdl); in zfs_fm_gc() 1075 _fmd_init(fmd_hdl_t *hdl) in _fmd_init() argument 1119 zfs_purge_cases(hdl); in _fmd_init() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/cpumem-retire/ |
H A D | cma_page.c | 153 rc = cma_fmri_page_retire(hdl, asrucp); in cma_page_retire() 157 fmd_hdl_debug(hdl, "%sd page 0x%llx\n", in cma_page_retire() 215 fmd_case_uuclose(hdl, page->pg_uuid); in page_retry() 229 fmd_case_uuclose(hdl, page->pg_uuid); in page_retry() 248 cma_page_retry(fmd_hdl_t *hdl) in cma_page_retry() argument 260 if (page_retry(hdl, page)) { in cma_page_retry() 268 fmd_hdl_strfree(hdl, page->pg_uuid); in cma_page_retry() 270 cma_page_free(hdl, page); in cma_page_retry() 295 cma_page_fini(fmd_hdl_t *hdl) in cma_page_fini() argument 302 fmd_hdl_strfree(hdl, page->pg_uuid); in cma_page_fini() [all …]
|
/illumos-gate/usr/src/lib/fm/libfmd_agent/common/ |
H A D | fmd_agent.c | 55 return (hdl->agent_errno); in fmd_agent_errno() 61 hdl->agent_errno = err; in fmd_agent_seterrno() 165 fmd_agent_hdl_t *hdl; in fmd_agent_open_dev() local 180 hdl->agent_devfd = fd; in fmd_agent_open_dev() 181 hdl->agent_version = ver; in fmd_agent_open_dev() 194 hdl->agent_ioc_versions = nvl; in fmd_agent_open_dev() 195 return (hdl); in fmd_agent_open_dev() 211 (void) close(hdl->agent_devfd); in fmd_agent_close() 270 int err = fmd_agent_errno(hdl); in fmd_agent_page_retire() 295 int err = fmd_agent_errno(hdl); in fmd_agent_page_unretire() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/common/ |
H A D | sw_main_cmn.c | 154 fmd_timer_install(hdl, arg, ep, hrt); in sw_timer_install() 199 fmd_timer_remove(hdl, timerid); in sw_timer_remove() 230 sip->swsub_timeout(hdl, timerid, arg); in sw_timeout() 238 sw_id_to_casetype(fmd_hdl_t *hdl, id_t who) in sw_id_to_casetype() argument 359 fmd_hdl_unregister(hdl); in sw_fmd_init() 366 msinfo->swms_disptbl = fmd_hdl_zalloc(hdl, in sw_fmd_init() 374 fmd_hdl_setspecific(hdl, (void *)msinfo); in sw_fmd_init() 438 sw_fmd_fini(fmd_hdl_t *hdl) in sw_fmd_fini() argument 466 (*sip->swsub_fini)(hdl); in sw_fmd_fini() 469 fmd_hdl_free(hdl, msinfo->swms_disptbl, in sw_fmd_fini() [all …]
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_self.c | 62 fmd_hdl_strfree(hdl, scp->sc_name); in self_case_destroy() 102 cp = fmd_case_open(hdl, in self_recv() 106 fmd_case_add_ereport(hdl, cp, ep); in self_recv() 113 if (fmd_case_solved(hdl, cp)) in self_recv() 120 fmd_case_solve(hdl, cp); in self_recv() 164 cp = fmd_case_open(hdl, self_case_create(hdl, SC_CLASS, class)); in self_recv() 171 fmd_case_solve(hdl, cp); in self_recv() 177 self_case_destroy(hdl, fmd_case_getspecific(hdl, cp)); in self_close() 189 self_init(fmd_hdl_t *hdl) in self_init() argument 217 self_fini(fmd_hdl_t *hdl) in self_fini() argument [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fx_subr.c | 169 fmd_hdl_strfree(hdl, fmri); in fab_send_tgt_erpt() 171 fmd_hdl_debug(hdl, in fab_send_tgt_erpt() 285 fmd_hdl_free(hdl, query, len); in fab_hc2dev() 336 fmd_hdl_free(hdl, hcl, len); in fab_hc2dev_nvl() 557 fmd_hdl_strfree(hdl, path); in fab_get_rcpath() 834 fmd_hdl_debug(hdl, "["); in fab_pr() 836 fab_pr(hdl, NULL, cnv); in fab_pr() 837 fmd_hdl_debug(hdl, " ]"); in fab_pr() 871 fab_get_rpdev(fmd_hdl_t *hdl) in fab_get_rpdev() argument 903 fmd_hdl_debug(hdl, in fab_send_erpt_all_rps() [all …]
|
H A D | fabric-xlate.c | 52 fab_update_topo(fmd_hdl_t *hdl) in fab_update_topo() argument 87 fmd_hdl_topo_rele(hdl, thp); in fab_update_topo() 92 fmd_hdl_topo_rele(hdl, thp); in fab_update_topo() 101 fab_set_fake_rp(hdl); in fab_update_topo() 120 fab_update_topo(hdl); in fab_recv() 131 fab_pr(hdl, ep, new_nvl); in fab_recv() 132 if (fmd_nvl_class_match(hdl, new_nvl, in fab_recv() 145 fab_topo(fmd_hdl_t *hdl, topo_hdl_t *topo) in fab_topo() argument 167 _fmd_init(fmd_hdl_t *hdl) in _fmd_init() argument 182 _fmd_fini(fmd_hdl_t *hdl) in _fmd_fini() 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); 106 devctl_device_online(devctl_hdl_t hdl); 109 devctl_device_reset(devctl_hdl_t hdl); 115 devctl_bus_quiesce(devctl_hdl_t hdl); 118 devctl_bus_unquiesce(devctl_hdl_t hdl); 121 devctl_bus_reset(devctl_hdl_t hdl); 124 devctl_bus_resetall(devctl_hdl_t hdl); [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() 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() 110 sp_post_sysevent(hdl); in sp_timeout() 137 _fmd_init(fmd_hdl_t *hdl) in _fmd_init() argument 147 fmd_hdl_setspecific(hdl, smp); in _fmd_init() 161 fmd_hdl_unregister(hdl); in _fmd_init() 177 fmd_hdl_unregister(hdl); in _fmd_init() 193 (void) fmd_timer_install(hdl, NULL, NULL, 0); in _fmd_init() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | disk_monitor.c | 216 fmd_case_uuresolved(hdl, uuid); in diskmon_agent_repair() 258 fmd_case_uuclose(hdl, uuid); in diskmon_agent_suspect() 341 _fmd_init(fmd_hdl_t *hdl) in _fmd_init() argument 346 g_fm_hdl = hdl; in _fmd_init() 354 fmd_hdl_unregister(hdl); in _fmd_init() 361 fmd_hdl_unregister(hdl); in _fmd_init() 370 fmd_hdl_unregister(hdl); in _fmd_init() 376 fmd_hdl_unregister(hdl); in _fmd_init() 391 if (!fmd_case_solved(hdl, cp)) in _fmd_init() 392 fmd_case_solve(hdl, cp); in _fmd_init() [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 285 free_notify_prefs(hdl, prefs, nprefs); in syslog_recv() 291 free_notify_prefs(hdl, prefs, nprefs); in syslog_recv() 294 free_notify_prefs(hdl, prefs, nprefs); in syslog_recv() 311 syslog_emit(hdl, msg); in syslog_recv() 338 _fmd_init(fmd_hdl_t *hdl) in _fmd_init() argument 381 fmd_prop_free_string(hdl, facname); in _fmd_init() 395 fmd_prop_free_string(hdl, rootdir); in _fmd_init() 400 urlbase = fmd_prop_get_string(hdl, "url"); in _fmd_init() 402 fmd_prop_free_string(hdl, urlbase); in _fmd_init() [all …]
|
/illumos-gate/usr/src/uts/i86pc/cpu/generic_cpu/ |
H A D | gcpu_main.c | 212 gcpu->gcpu_hdl = hdl; in gcpu_init() 230 gcpu_init_ident(hdl, sp); in gcpu_init() 244 gcpu_fini(cmi_hdl_t hdl) in gcpu_fini() argument 253 gcpu_mca_fini(hdl); in gcpu_fini() 266 cmi_hdl_rele(hdl); in gcpu_fini() 278 cms_post_startup(hdl); in gcpu_post_startup() 285 gcpu_mca_poll_start(hdl); in gcpu_post_startup() 294 gcpu_mca_cmci_enable(hdl); in gcpu_post_startup() 304 cms_post_mpstartup(hdl); in gcpu_post_mpstartup() 311 gcpu_mca_poll_start(hdl); in gcpu_post_mpstartup() [all …]
|