/osnet-11/usr/src/lib/fm/libfmd_snmp/common/ |
H A D | scheme.c | 33 topo_hdl_t *thp; local 36 if ((thp = topo_open(TOPO_VERSION, "/", &err)) == NULL) 38 if (topo_fmri_nvl2str(thp, nvl, &str, &err) != 0) { 39 topo_close(thp); 44 topo_hdl_strfree(thp, str); 45 topo_close(thp);
|
/osnet-11/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_alloc.c | 58 topo_hdl_alloc(topo_hdl_t *thp, size_t size) argument 60 topo_alloc_t *ap = thp->th_alloc; 66 topo_hdl_zalloc(topo_hdl_t *thp, size_t size) argument 68 topo_alloc_t *ap = thp->th_alloc; 74 topo_hdl_free(topo_hdl_t *thp, void *data, size_t size) argument 76 topo_alloc_t *ap = thp->th_alloc;
|
H A D | topo_builtin.c | 101 topo_builtin_create(topo_hdl_t *thp, const char *rootdir) argument 119 if ((mod = topo_modhash_load(thp, bp->bltin_name, NULL, 121 topo_dprintf(thp, TOPO_DBG_ERR, 124 topo_hdl_errmsg(thp)); 127 if ((tp = topo_tree_create(thp, mod, bp->bltin_name)) 129 topo_dprintf(thp, TOPO_DBG_ERR, 132 topo_hdl_errmsg(thp)); 135 topo_list_append(&thp->th_trees, tp); 149 (void) topo_hdl_seterrno(thp, ETOPO_ENUM_PARTIAL);
|
H A D | topo_nvl.c | 65 topo_hdl_nvalloc(topo_hdl_t *thp, nvlist_t **nvlp, uint_t nvflag) argument 68 if (nvlist_xalloc(nvlp, nvflag, &thp->th_alloc->ta_nva) != 0) 75 topo_hdl_nvdup(topo_hdl_t *thp, nvlist_t *nvl, nvlist_t **nvlp) argument 77 if (nvlist_xdup(nvl, nvlp, &thp->th_alloc->ta_nva) != 0)
|
H A D | topo_tree.c | 70 set_create_error(topo_hdl_t *thp, ttree_t *tp, int err) argument 76 (void) topo_hdl_seterrno(thp, err); 82 topo_tree_create(topo_hdl_t *thp, topo_mod_t *mod, const char *scheme) argument 88 return (set_create_error(thp, NULL, ETOPO_NOMEM)); 93 return (set_create_error(thp, tp, ETOPO_NOMEM)); 99 return (set_create_error(thp, tp, ETOPO_NOMEM)); 105 return (set_create_error(thp, tp, 0)); /* th_errno set */ 111 rp->tn_hdl = thp; 116 tp->tt_walk->tw_thp = thp; 153 topo_tree_enum(topo_hdl_t *thp, ttree_ argument 219 topo_tree_enum_all(topo_hdl_t *thp) argument [all...] |
H A D | topo_string.c | 33 topo_hdl_strdup(topo_hdl_t *thp, const char *s) argument 38 p = topo_hdl_alloc(thp, strlen(s) + 1); 49 topo_hdl_strfree(topo_hdl_t *thp, char *s) argument 52 topo_hdl_free(thp, s, strlen(s) + 1); 56 topo_hdl_strfreevn(topo_hdl_t *thp, char **v, uint_t nelem) argument 64 topo_hdl_strfree(thp, v[i]); 66 topo_hdl_free(thp, v, sizeof (char *) * nelem);
|
H A D | topo_auth.c | 39 topo_auth_set_th(topo_hdl_t *thp, nvlist_t *nvl) argument 41 (void) nvlist_xdup(nvl, &thp->th_auth, &thp->th_alloc->ta_nva); 49 topo_auth_set_nvl(topo_hdl_t *thp, nvlist_t **th_nvl, int auth_type, argument 69 topo_dprintf(thp, TOPO_DBG_ERR, 91 topo_dprintf(thp, TOPO_DBG_ERR, 113 topo_dprintf(thp, TOPO_DBG_ERR, 120 topo_dprintf(thp, TOPO_DBG_ERR, 131 topo_auth_prom(topo_hdl_t *thp, nvlist_t *nvl, di_prom_handle_t promh, argument 150 sn = topo_cleanup_auth_str(thp, buf 186 topo_auth_smbios(topo_hdl_t *thp, nvlist_t *nvl, smbios_hdl_t *shp) argument 253 topo_auth_create(topo_hdl_t *thp) argument [all...] |
H A D | topo_module.c | 162 topo_mod_lookup(topo_hdl_t *thp, const char *name, int bump) argument 165 topo_modhash_t *mhp = thp->th_modhash; 179 topo_hdl_t *thp = mod->tm_hdl; local 188 topo_hdl_strfree(thp, mod->tm_name); 190 topo_hdl_strfree(thp, mod->tm_path); 192 topo_hdl_strfree(thp, mod->tm_rootdir); 194 topo_hdl_free(thp, mod, sizeof (topo_mod_t)); 198 set_create_error(topo_hdl_t *thp, topo_mod_t *mod, const char *path, int err) argument 201 topo_dprintf(thp, TOPO_DBG_ERR, "unable to load module %s: " 204 topo_dprintf(thp, TOPO_DBG_ER 216 topo_mod_create(topo_hdl_t *thp, const char *name, const char *path, const topo_imodops_t *ops, topo_version_t version) argument 253 topo_modhash_create(topo_hdl_t *thp) argument 275 topo_modhash_destroy(topo_hdl_t *thp) argument 306 topo_modhash_load(topo_hdl_t *thp, const char *name, const char *path, const topo_imodops_t *ops, topo_version_t version) argument 336 topo_hdl_t *thp = mod->tm_hdl; local 375 topo_modhash_unload_all(topo_hdl_t *thp) argument [all...] |
H A D | topo_subr.c | 38 topo_hdl_lock(topo_hdl_t *thp) argument 40 (void) pthread_mutex_lock(&thp->th_lock); 44 topo_hdl_unlock(topo_hdl_t *thp) argument 46 (void) pthread_mutex_unlock(&thp->th_lock); 109 env_process_value(topo_hdl_t *thp, const char *begin, const char *end) argument 135 thp->th_debug |= dbp->tdm_mode; 140 topo_debug_set(topo_hdl_t *thp, const char *dbmode, const char *dout) argument 145 topo_hdl_lock(thp); 155 env_process_value(thp, value, end); 159 topo_hdl_unlock(thp); 172 topo_vdprintf(topo_hdl_t *thp, int mask, const char *mod, const char *format, va_list ap) argument 208 topo_dprintf(topo_hdl_t *thp, int mask, const char *format, ...) argument 218 topo_hdl_root(topo_hdl_t *thp, const char *scheme) argument 269 topo_hdl_t *thp = mod->tm_hdl; local 306 topo_cleanup_auth_str(topo_hdl_t *thp, const char *begin) argument 550 topo_hdl_timestamp(topo_hdl_t *thp) argument 556 topo_hdl_uuid(topo_hdl_t *thp) argument 562 topo_hdl_auth(topo_hdl_t *thp) argument [all...] |
H A D | topo_2xml.c | 120 txml_str2xmlstr(topo_hdl_t *thp, char **oldstrpp) argument 131 topo_dprintf(thp, TOPO_DBG_XML, "%s: thp=0x%p, oldstrp=0x%p=%s, " 132 "oldlen=%d\n", __func__, (void *)thp, (void *)oldstrp, 144 topo_dprintf(thp, TOPO_DBG_XML, 156 topo_dprintf(thp, TOPO_DBG_XML, 170 if ((newstrp = topo_hdl_zalloc(thp, newlen + 1)) == NULL) 173 topo_dprintf(thp, TOPO_DBG_XML, "%s: newstrp=0x%p, newlen=%d\n", 188 topo_dprintf(thp, TOPO_DBG_XML, 196 topo_dprintf(thp, TOPO_DBG_XM 207 txml_print_prop(topo_hdl_t *thp, FILE *fp, tnode_t *node, const char *pgname, topo_propval_t *pv) argument 340 txml_print_pgroup(topo_hdl_t *thp, FILE *fp, tnode_t *node, topo_pgroup_t *pg) argument 360 txml_print_dependents(topo_hdl_t *thp, FILE *fp, tnode_t *node) argument 370 txml_print_node(topo_hdl_t *thp, FILE *fp, tnode_t *node) argument 387 txml_print_range(topo_hdl_t *thp, FILE *fp, tnode_t *node, int dependent) argument 427 txml_print_topology(topo_hdl_t *thp, FILE *fp, char *scheme, tnode_t *node) argument 502 topo_xml_print(topo_hdl_t *thp, FILE *fp, const char *scheme, int *err) argument [all...] |
H A D | topo_node.c | 866 topo_node_facility(topo_hdl_t *thp, tnode_t *node, const char *fac_type, argument 894 topo_dprintf(thp, TOPO_DBG_ERR, 974 topo_node_walk_init(topo_hdl_t *thp, topo_mod_t *mod, tnode_t *node, argument 982 if ((wp = topo_hdl_zalloc(thp, sizeof (topo_walk_t))) == NULL) { 999 topo_hdl_free(thp, wp, sizeof (topo_walk_t)); 1014 wp->tw_thp = thp;
|
H A D | topo_snap.c | 95 set_open_errno(topo_hdl_t *thp, int *errp, int err) argument 97 if (thp != NULL) { 98 topo_close(thp); 106 topo_set_product(topo_hdl_t *thp) argument 117 shp = topo_hdl_smbios(thp); 127 if ((product == NULL) && thp->th_pi && thp->th_di && 128 (di_prom_prop_lookup_bytes(thp->th_pi, thp->th_di, "name", 133 product = thp 151 topo_hdl_t *thp = NULL; local 245 topo_close(topo_hdl_t *thp) argument 297 topo_snap_create(topo_hdl_t *thp, int *errp, boolean_t need_force) argument 460 topo_snap_log_create(topo_hdl_t *thp, const char *uuid, int *errp) argument 467 fac_walker(topo_hdl_t *thp, tnode_t *node, void *arg) argument 492 topo_snap_hold(topo_hdl_t *thp, const char *uuid, int *errp) argument 503 topo_snap_hold_flag(topo_hdl_t *thp, const char *uuid, int *errp, int flag) argument 555 topo_walk_destroy(topo_hdl_t *thp, tnode_t *node, void *notused) argument 570 topo_snap_destroy(topo_hdl_t *thp) argument 643 topo_snap_release(topo_hdl_t *thp) argument 654 topo_walk_init(topo_hdl_t *thp, const char *scheme, topo_walk_cb_t cb_f, void *pdata, int *errp) argument 915 topo_hdl_devinfo(topo_hdl_t *thp) argument 921 topo_hdl_devlink(topo_hdl_t *thp) argument 927 topo_hdl_prominfo(topo_hdl_t *thp) argument 933 topo_hdl_smbios(topo_hdl_t *thp) argument 942 topo_snap_load(topo_hdl_t *thp, const char *snap_dir, int *errp) argument 971 topo_hdl_cromk_hdl(topo_hdl_t *thp) argument [all...] |
H A D | topo_fmri.c | 71 set_error(topo_hdl_t *thp, int err, int *errp, char *method, nvlist_t *nvlp) argument 76 topo_dprintf(thp, TOPO_DBG_ERR, "%s: method=%s failed: %s\n", 85 set_nverror(topo_hdl_t *thp, int err, int *errp, char *method, nvlist_t *nvlp) argument 90 topo_dprintf(thp, TOPO_DBG_ERR, "%s: method=%s failed: %s\n", 98 topo_fmri_nvl2str(topo_hdl_t *thp, nvlist_t *fmri, char **fmristr, int *err) argument 105 return (set_error(thp, ETOPO_FMRI_MALFORM, err, 108 if ((rnode = topo_hdl_root(thp, scheme)) == NULL) 109 return (set_error(thp, ETOPO_METHOD_NOTSUP, err, 114 return (set_error(thp, *err, err, TOPO_METH_NVL2STR, out)); 117 return (set_error(thp, ETOPO_METHOD_INVA 130 topo_fmri_str2nvl(topo_hdl_t *thp, const char *fmristr, nvlist_t **fmri, int *err) argument 176 topo_fmri_present(topo_hdl_t *thp, nvlist_t *fmri, int *err) argument 204 topo_fmri_presence_state(topo_hdl_t *thp, nvlist_t *fmri, int *err) argument 232 topo_fmri_contains(topo_hdl_t *thp, nvlist_t *fmri, nvlist_t *subfmri, int *err) argument 268 topo_fmri_unusable(topo_hdl_t *thp, nvlist_t *fmri, int *err) argument 294 topo_fmri_retire(topo_hdl_t *thp, nvlist_t *fmri, int *err) argument 322 topo_fmri_unretire(topo_hdl_t *thp, nvlist_t *fmri, int *err) argument 352 topo_fmri_service_state(topo_hdl_t *thp, nvlist_t *fmri, int *err) argument 380 topo_fmri_expand(topo_hdl_t *thp, nvlist_t *fmri, int *err) argument 402 fmri_prop(topo_hdl_t *thp, nvlist_t *rsrc, const char *pgname, const char *pname, nvlist_t *args, nvlist_t **prop, int *err) argument 448 topo_fmri_asru(topo_hdl_t *thp, nvlist_t *nvl, nvlist_t **asru, int *err) argument 470 topo_fmri_fru(topo_hdl_t *thp, nvlist_t *nvl, nvlist_t **fru, int *err) argument 492 topo_fmri_label(topo_hdl_t *thp, nvlist_t *nvl, char **label, int *err) argument 515 topo_fmri_serial(topo_hdl_t *thp, nvlist_t *nvl, char **serial, int *err) argument 553 topo_fmri_getprop(topo_hdl_t *thp, nvlist_t *nvl, const char *pg, const char *pname, nvlist_t *args, nvlist_t **prop, int *err) argument 562 topo_fmri_setprop(topo_hdl_t *thp, nvlist_t *nvl, const char *pg, nvlist_t *prop, int flag, nvlist_t *args, int *err) argument 609 topo_fmri_getpgrp(topo_hdl_t *thp, nvlist_t *rsrc, const char *pgname, nvlist_t **pgroup, int *err) argument 651 topo_fmri_compare(topo_hdl_t *thp, nvlist_t *f1, nvlist_t *f2, int *err) argument 701 topo_fmri_create(topo_hdl_t *thp, const char *scheme, const char *name, topo_instance_t inst, nvlist_t *nvl, int *err) argument 757 topo_fmri_strhash_internal(topo_hdl_t *thp, const char *fmri, boolean_t noauth) argument 779 topo_fmri_strhash(topo_hdl_t *thp, const char *fmri) argument 786 topo_fmri_strhash_noauth(topo_hdl_t *thp, const char *fmri) argument 799 topo_fmri_strcmp_internal(topo_hdl_t *thp, const char *a, const char *b, char *type) argument 831 topo_fmri_strcmp(topo_hdl_t *thp, const char *a, const char *b) argument 840 topo_fmri_strcmp_noauth(topo_hdl_t *thp, const char *a, const char *b) argument 846 topo_fmri_strcmp_ident(topo_hdl_t *thp, const char *a, const char *b) argument 852 topo_fmri_ident_node(topo_hdl_t *thp, nvlist_t *rsrc, nvlist_t **pidentp, int *err) argument 894 topo_fmri_facility(topo_hdl_t *thp, nvlist_t *rsrc, const char *fac_type, uint32_t fac_subtype, topo_walk_cb_t cb, void *cb_args, int *err) argument [all...] |
H A D | topo_prop.c | 210 topo_hdl_t *thp = node->tn_hdl; local 249 if ((s2 = topo_hdl_strdup(thp, str)) == NULL) 262 ret = topo_hdl_nvdup(thp, nvl, 272 if ((a1 = topo_hdl_alloc(thp, sizeof (int32_t) * 288 if ((a1 = topo_hdl_alloc(thp, sizeof (uint32_t) * 304 if ((a1 = topo_hdl_alloc(thp, sizeof (int64_t) * 320 if ((a1 = topo_hdl_alloc(thp, sizeof (uint64_t) * 336 if ((a1 = topo_hdl_alloc(thp, sizeof (char *) * 342 if ((a1[i] = topo_hdl_strdup(thp, a2[i])) 345 topo_hdl_free(thp, a 501 topo_hdl_t *thp = node->tn_hdl; local 520 topo_hdl_t *thp = node->tn_hdl; local 571 topo_hdl_t *thp = node->tn_hdl; local 767 topo_hdl_t *thp = node->tn_hdl; local 850 topo_hdl_t *thp = node->tn_hdl; local 873 topo_hdl_t *thp = node->tn_hdl; local 979 topo_hdl_t *thp = node->tn_hdl; local 1072 topo_hdl_t *thp = node->tn_hdl; local 1125 topo_hdl_t *thp = node->tn_hdl; local 1164 topo_hdl_t *thp = node->tn_hdl; local 1185 topo_hdl_t *thp = node->tn_hdl; local 1231 topo_hdl_t *thp = node->tn_hdl; local 1271 topo_hdl_t *thp = node->tn_hdl; local 1299 propmethod_destroy(topo_hdl_t *thp, topo_propval_t *pv) argument 1317 topo_hdl_t *thp; local 1360 topo_hdl_t *thp = node->tn_hdl; local 1416 topo_hdl_t *thp = node->tn_hdl; local 1488 topo_hdl_t *thp = node->tn_hdl; local [all...] |
H A D | topo_mod.c | 122 topo_hdl_t *thp; local 127 thp = pmod->tm_hdl; 132 if ((mod = topo_mod_lookup(thp, name, 1)) != NULL) { 149 (mod = topo_modhash_load(thp, name, path, &topo_rtld_ops, version)) 152 (void) topo_mod_seterrno(pmod, topo_hdl_errno(thp) ? 153 topo_hdl_errno(thp) : ETOPO_MOD_NOENT); 625 topo_hdl_t *thp = mod->tm_hdl; local 629 (void) pthread_mutex_lock(&thp->th_ipmi_lock); 630 if (thp->th_ipmi == NULL) { 631 if ((thp 647 topo_hdl_t *thp = mod->tm_hdl; local 667 topo_hdl_t *thp = mod->tm_hdl; local 1146 topo_hdl_t *thp = mod->tm_hdl; local [all...] |
H A D | topo_xml.c | 1719 topo_hdl_t *thp = mp->tm_hdl; local 1730 if ((rd->rd_mod = topo_mod_lookup(thp, rd->rd_einfo->te_name, 1738 (void) topo_hdl_seterrno(thp, topo_mod_errno(mp)); 1755 (void) topo_hdl_seterrno(thp, EMOD_PARTIAL_ENUM); 1764 topo_hdl_t *thp = mp->tm_hdl; local 1768 topo_dprintf(thp, TOPO_DBG_XML, "%s:\n", __func__); 1775 if ((fmod = topo_mod_lookup(thp, name, 0)) == NULL) { 1777 topo_dprintf(thp, TOPO_DBG_ERR, 1780 (void) topo_hdl_seterrno(thp, topo_mod_errno(mp)); 1787 topo_dprintf(thp, TOPO_DBG_XM 2178 topo_hdl_t *thp = tmp->tm_hdl; local [all...] |
/osnet-11/usr/src/lib/fm/libasr/common/ |
H A D | asr_topo.c | 82 asr_topo_fmri2str(topo_hdl_t *thp, nvlist_t *fmri) argument 89 if (topo_fmri_nvl2str(thp, fmri, &fmristr, &err) == 0) { 91 topo_hdl_strfree(thp, fmristr);
|
H A D | asr_audit.c | 511 asr_audit_topo_enum(topo_hdl_t *thp, tnode_t *node, void *arg) argument
|
H A D | asr_fault.c | 83 asr_add_de(topo_hdl_t *thp, nvlist_t *fault, int pad, asr_buf_t *out) argument 93 if ((fmristr = asr_topo_fmri2str(thp, de)) == NULL) { 184 topo_hdl_t *thp; local 193 if ((thp = topo_open(TOPO_VERSION, NULL, &err)) == NULL) { 240 thp, fmrinvl)) == NULL) { 281 if ((fmristr = asr_topo_fmri2str(thp, frunvl)) == NULL) { 370 err |= asr_add_de(thp, event, pad, bp); 383 char *asrustr = asr_topo_fmri2str(thp, asru); 391 char *rstr = asr_topo_fmri2str(thp, resource); 405 topo_close(thp); [all...] |
/osnet-11/usr/src/lib/fm/topo/modules/common/bay/common/ |
H A D | bay_util.c | 567 th_hba_l(topo_hdl_t *thp, tnode_t *tnp, void *arg) argument
|