/titanic_41/usr/src/lib/fm/topo/libtopo/common/ |
H A D | libtopo.h | 39 typedef struct topo_hdl topo_hdl_t; typedef 59 extern topo_hdl_t *topo_open(int, const char *, int *); 60 extern void topo_close(topo_hdl_t *); 61 extern char *topo_snap_hold(topo_hdl_t *, const char *, int *); 62 extern void topo_snap_release(topo_hdl_t *); 67 typedef int (*topo_walk_cb_t)(topo_hdl_t *, tnode_t *, void *); 69 extern topo_walk_t *topo_walk_init(topo_hdl_t *, const char *, topo_walk_cb_t, 73 extern di_node_t topo_hdl_devinfo(topo_hdl_t *); 74 extern di_prom_handle_t topo_hdl_prominfo(topo_hdl_t *); 92 extern int topo_fmri_present(topo_hdl_t *, nvlist_t *, int *); [all …]
|
H A D | topo_module.h | 66 topo_hdl_t *tm_hdl; /* Topo handle for this module */ 93 extern topo_modhash_t *topo_modhash_create(topo_hdl_t *); 94 extern void topo_modhash_destroy(topo_hdl_t *); 96 extern topo_mod_t *topo_modhash_load(topo_hdl_t *, const char *, const char *, 99 extern void topo_modhash_unload_all(topo_hdl_t *); 102 extern topo_mod_t *topo_mod_lookup(topo_hdl_t *, const char *, int);
|
H A D | topo_subr.h | 118 extern void topo_hdl_lock(topo_hdl_t *); 119 extern void topo_hdl_unlock(topo_hdl_t *); 126 extern void topo_dprintf(topo_hdl_t *, int, const char *, ...); 127 extern void topo_vdprintf(topo_hdl_t *, int, const char *, const char *, 130 extern tnode_t *topo_hdl_root(topo_hdl_t *, const char *); 140 extern char *topo_cleanup_auth_str(topo_hdl_t *, const char *);
|
H A D | topo_fmri.c | 75 set_error(topo_hdl_t *thp, int err, int *errp, char *method, nvlist_t *nvlp) in set_error() 89 set_nverror(topo_hdl_t *thp, int err, int *errp, char *method, nvlist_t *nvlp) in set_nverror() 102 topo_fmri_nvl2str(topo_hdl_t *thp, nvlist_t *fmri, char **fmristr, int *err) in topo_fmri_nvl2str() 134 topo_fmri_str2nvl(topo_hdl_t *thp, const char *fmristr, nvlist_t **fmri, in topo_fmri_str2nvl() 177 topo_fmri_present(topo_hdl_t *thp, nvlist_t *fmri, int *err) in topo_fmri_present() 205 topo_fmri_replaced(topo_hdl_t *thp, nvlist_t *fmri, int *err) in topo_fmri_replaced() 233 topo_fmri_contains(topo_hdl_t *thp, nvlist_t *fmri, nvlist_t *subfmri, int *err) in topo_fmri_contains() 269 topo_fmri_unusable(topo_hdl_t *thp, nvlist_t *fmri, int *err) in topo_fmri_unusable() 295 topo_fmri_retire(topo_hdl_t *thp, nvlist_t *fmri, int *err) in topo_fmri_retire() 323 topo_fmri_unretire(topo_hdl_t *thp, nvlist_t *fmri, int *err) in topo_fmri_unretire() [all …]
|
H A D | topo_snap.c | 91 static void topo_snap_destroy(topo_hdl_t *); 93 static topo_hdl_t * 94 set_open_errno(topo_hdl_t *thp, int *errp, int err) in set_open_errno() 104 topo_hdl_t * 107 topo_hdl_t *thp = NULL; in topo_open() 128 if ((thp = topo_zalloc(sizeof (topo_hdl_t), 0)) == NULL) in topo_open() 218 topo_close(topo_hdl_t *thp) in topo_close() 263 topo_free(thp, sizeof (topo_hdl_t)); in topo_close() 267 topo_snap_create(topo_hdl_t *thp, int *errp, boolean_t need_force) in topo_snap_create() 341 topo_snap_log_create(topo_hdl_t *thp, const char *uuid, int *errp) in topo_snap_log_create() [all …]
|
H A D | topo_tree.h | 66 topo_hdl_t *tn_hdl; /* topo handle pointer */ 129 extern ttree_t *topo_tree_create(topo_hdl_t *, topo_mod_t *, const char *); 131 extern int topo_tree_enum_all(topo_hdl_t *); 141 extern topo_walk_t *topo_node_walk_init(topo_hdl_t *, topo_mod_t *, tnode_t *,
|
H A D | topo_module.c | 165 topo_mod_lookup(topo_hdl_t *thp, const char *name, int bump) in topo_mod_lookup() 182 topo_hdl_t *thp = mod->tm_hdl; in topo_mod_destroy() 201 set_create_error(topo_hdl_t *thp, topo_mod_t *mod, const char *path, int err) in set_create_error() 219 topo_mod_create(topo_hdl_t *thp, const char *name, const char *path, in topo_mod_create() 256 topo_modhash_create(topo_hdl_t *thp) in topo_modhash_create() 278 topo_modhash_destroy(topo_hdl_t *thp) in topo_modhash_destroy() 309 topo_modhash_load(topo_hdl_t *thp, const char *name, const char *path, in topo_modhash_load() 339 topo_hdl_t *thp = mod->tm_hdl; in topo_modhash_unload() 378 topo_modhash_unload_all(topo_hdl_t *thp) in topo_modhash_unload_all()
|
H A D | topo_error.h | 93 extern int topo_hdl_seterrno(topo_hdl_t *, int); 94 extern const char *topo_hdl_errmsg(topo_hdl_t *); 95 extern int topo_hdl_errno(topo_hdl_t *);
|
H A D | topo_subr.c | 37 topo_hdl_lock(topo_hdl_t *thp) in topo_hdl_lock() 43 topo_hdl_unlock(topo_hdl_t *thp) in topo_hdl_unlock() 106 env_process_value(topo_hdl_t *thp, const char *begin, const char *end) in env_process_value() 137 topo_debug_set(topo_hdl_t *thp, const char *dbmode, const char *dout) in topo_debug_set() 169 topo_vdprintf(topo_hdl_t *thp, int mask, const char *mod, const char *format, in topo_vdprintf() 205 topo_dprintf(topo_hdl_t *thp, int mask, const char *format, ...) in topo_dprintf() 215 topo_hdl_root(topo_hdl_t *thp, const char *scheme) in topo_hdl_root() 266 topo_hdl_t *thp = mod->tm_hdl; in topo_search_path() 299 topo_cleanup_auth_str(topo_hdl_t *thp, const char *begin) in topo_cleanup_auth_str()
|
H A D | topo_2xml.c | 43 static int txml_print_range(topo_hdl_t *, FILE *, tnode_t *, int); 105 txml_print_prop(topo_hdl_t *thp, FILE *fp, tnode_t *node, const char *pgname, in txml_print_prop() 230 txml_print_pgroup(topo_hdl_t *thp, FILE *fp, tnode_t *node, topo_pgroup_t *pg) in txml_print_pgroup() 250 txml_print_dependents(topo_hdl_t *thp, FILE *fp, tnode_t *node) in txml_print_dependents() 260 txml_print_node(topo_hdl_t *thp, FILE *fp, tnode_t *node) in txml_print_node() 277 txml_print_range(topo_hdl_t *thp, FILE *fp, tnode_t *node, int dependent) in txml_print_range() 317 txml_print_topology(topo_hdl_t *thp, FILE *fp, char *scheme, tnode_t *node) in txml_print_topology() 334 topo_xml_print(topo_hdl_t *thp, FILE *fp, const char *scheme, int *err) in topo_xml_print()
|
H A D | topo_alloc.c | 58 topo_hdl_alloc(topo_hdl_t *thp, size_t size) in topo_hdl_alloc() 66 topo_hdl_zalloc(topo_hdl_t *thp, size_t size) in topo_hdl_zalloc() 74 topo_hdl_free(topo_hdl_t *thp, void *data, size_t size) in topo_hdl_free()
|
H A D | topo_tree.c | 70 set_create_error(topo_hdl_t *thp, ttree_t *tp, int err) in set_create_error() 82 topo_tree_create(topo_hdl_t *thp, topo_mod_t *mod, const char *scheme) in topo_tree_create() 153 topo_tree_enum(topo_hdl_t *thp, ttree_t *tp) in topo_tree_enum() 203 topo_tree_enum_all(topo_hdl_t *thp) in topo_tree_enum_all()
|
H A D | topo_nvl.c | 65 topo_hdl_nvalloc(topo_hdl_t *thp, nvlist_t **nvlp, uint_t nvflag) in topo_hdl_nvalloc() 75 topo_hdl_nvdup(topo_hdl_t *thp, nvlist_t *nvl, nvlist_t **nvlp) in topo_hdl_nvdup()
|
H A D | topo_prop.c | 210 topo_hdl_t *thp = node->tn_hdl; in prop_getval() 501 topo_hdl_t *thp = node->tn_hdl; in set_seterror() 520 topo_hdl_t *thp = node->tn_hdl; in prop_create() 571 topo_hdl_t *thp = node->tn_hdl; in topo_prop_set() 770 topo_hdl_t *thp = node->tn_hdl; in topo_prop_setprop() 853 topo_hdl_t *thp = node->tn_hdl; in register_methoderror() 876 topo_hdl_t *thp = node->tn_hdl; in prop_method_register() 982 topo_hdl_t *thp = node->tn_hdl; in topo_prop_method_unregister() 1075 topo_hdl_t *thp = node->tn_hdl; in topo_prop_inherit() 1128 topo_hdl_t *thp = node->tn_hdl; in topo_pgroup_info() [all …]
|
/titanic_41/usr/src/lib/libzfs/common/ |
H A D | libzfs_fru.c | 66 static topo_hdl_t *(*_topo_open)(int, const char *, int *); 67 static void (*_topo_close)(topo_hdl_t *); 68 static char *(*_topo_snap_hold)(topo_hdl_t *, const char *, int *); 69 static void (*_topo_snap_release)(topo_hdl_t *); 70 static topo_walk_t *(*_topo_walk_init)(topo_hdl_t *, const char *, 74 static void (*_topo_hdl_strfree)(topo_hdl_t *, char *); 79 static int (*_topo_fmri_nvl2str)(topo_hdl_t *, nvlist_t *, char **, int *); 80 static int (*_topo_fmri_strcmp_noauth)(topo_hdl_t *, const char *, 104 libzfs_fru_gather(topo_hdl_t *thp, tnode_t *tn, void *arg) in libzfs_fru_gather() 210 _topo_open = (topo_hdl_t *(*)()) in libzfs_init_fru() [all …]
|
/titanic_41/usr/src/cmd/fm/schemes/dev/ |
H A D | scheme.c | 52 topo_hdl_t *thp; in fmd_fmri_nvl2str() 78 topo_hdl_t *thp; in fmd_fmri_present() 93 topo_hdl_t *thp; in fmd_fmri_replaced() 109 topo_hdl_t *thp; in fmd_fmri_unusable() 132 topo_hdl_t *thp; in fmd_fmri_service_state()
|
/titanic_41/usr/src/cmd/fm/schemes/svc/ |
H A D | scheme.c | 49 topo_hdl_t *thp; in fmd_fmri_nvl2str() 77 topo_hdl_t *thp; in fmd_fmri_present() 96 topo_hdl_t *thp; in fmd_fmri_replaced() 115 topo_hdl_t *thp; in fmd_fmri_service_state() 139 topo_hdl_t *thp; in fmd_fmri_unusable()
|
/titanic_41/usr/src/cmd/fm/modules/common/disk-lights/ |
H A D | disk_lights.c | 57 static void disklights_topo(fmd_hdl_t *, topo_hdl_t *); 103 get_facility_props(topo_hdl_t *hdl, tnode_t *node, char **facname, in get_facility_props() 137 dl_fault_walk_inner(topo_hdl_t *thp, tnode_t *node, void *arg) in dl_fault_walk_inner() 168 dl_fault_walk_outer(topo_hdl_t *thp, tnode_t *node, void *arg) in dl_fault_walk_outer() 218 topo_hdl_t *thp = NULL; in dl_examine_topo() 280 disklights_topo(fmd_hdl_t *hdl, topo_hdl_t *thp) in disklights_topo()
|
/titanic_41/usr/src/cmd/fm/schemes/hc/ |
H A D | scheme.c | 47 topo_hdl_t *thp; in fmd_fmri_nvl2str() 76 topo_hdl_t *thp; in fmd_fmri_present() 100 topo_hdl_t *thp; in fmd_fmri_replaced() 124 topo_hdl_t *thp; in fmd_fmri_unusable() 209 topo_hdl_t *thp; in fru_compare() 285 topo_hdl_t *thp; in fmd_fmri_service_state()
|
/titanic_41/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_topo.h | 41 topo_hdl_t *ft_hdl; 51 extern void fmd_topo_rele_hdl(topo_hdl_t *);
|
H A D | fmd_topo.c | 66 topo_hdl_t *tp; in fmd_topo_update() 143 fmd_topo_rele_hdl(topo_hdl_t *thp) in fmd_topo_rele_hdl()
|
/titanic_41/usr/src/cmd/fm/modules/sun4v/cpumem-diagnosis/ |
H A D | cmd_hc_sun4v.c | 284 find_mb(topo_hdl_t *thp, tnode_t *node, void *arg) in find_mb() 321 topo_hdl_t *thp; in init_mb() 341 find_dimm_sn_mem(topo_hdl_t *thp, tnode_t *node, void *arg) in find_dimm_sn_mem() 367 find_dimm_sn_hc(topo_hdl_t *thp, tnode_t *node, void *arg) in find_dimm_sn_hc() 394 topo_hdl_t *thp; in cmd_find_dimm_by_sn() 428 find_cpu_rsc_by_sn(topo_hdl_t *thp, tnode_t *node, void *arg) in find_cpu_rsc_by_sn() 475 topo_hdl_t *thp; in cmd_find_cpu_rsc_by_sn() 519 find_mem_rsc_hc(topo_hdl_t *thp, tnode_t *node, void *arg) in find_mem_rsc_hc() 544 topo_hdl_t *thp; in cmd_find_mem_rsc_by_sn()
|
/titanic_41/usr/src/cmd/fm/fmdump/common/ |
H A D | nvlrender.c | 35 extern topo_hdl_t *fmd_fmri_topo_hold(int); 49 topo_hdl_t *thp = fmd_fmri_topo_hold(TOPO_VERSION); in fmdump_render_nvlist()
|
/titanic_41/usr/src/cmd/fm/schemes/cpu/ |
H A D | cpu.c | 46 topo_hdl_t *thp; in fmd_fmri_nvl2str() 151 topo_hdl_t *thp; in fmd_fmri_expand() 209 topo_hdl_t *thp; in fmd_fmri_present() 262 topo_hdl_t *thp; in fmd_fmri_replaced() 319 topo_hdl_t *thp; in fmd_fmri_unusable()
|
/titanic_41/usr/src/cmd/fm/fmtopo/common/ |
H A D | fmtopo.c | 128 print_node(topo_hdl_t *thp, tnode_t *node, nvlist_t *nvl, const char *fmri) in print_node() 239 print_prop_nameval(topo_hdl_t *thp, tnode_t *node, nvlist_t *nvl) in print_prop_nameval() 481 print_pgroup(topo_hdl_t *thp, tnode_t *node, const char *pgn, char *dstab, in print_pgroup() 519 print_all_props(topo_hdl_t *thp, tnode_t *node, nvlist_t *p_nv, in print_all_props() 597 set_prop(topo_hdl_t *thp, tnode_t *node, nvlist_t *fmri, struct prop_args *pp) in set_prop() 755 print_props(topo_hdl_t *thp, tnode_t *node) in print_props() 816 walk_node(topo_hdl_t *thp, tnode_t *node, void *arg) in walk_node() 955 walk_topo(topo_hdl_t *thp, char *uuid) in walk_topo() 1002 print_fmri_pgroup(topo_hdl_t *thp, const char *pgn, nvlist_t *nvl) in print_fmri_pgroup() 1032 print_fmri_props(topo_hdl_t *thp, nvlist_t *nvl) in print_fmri_props() [all …]
|