Home
last modified time | relevance | path

Searched refs:topo_hdl_t (Results 1 – 25 of 66) sorted by relevance

123

/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dlibtopo.h44 typedef struct topo_hdl topo_hdl_t; typedef
80 extern topo_hdl_t *topo_open(int, const char *, int *);
81 extern void topo_close(topo_hdl_t *);
82 extern char *topo_snap_hold(topo_hdl_t *, const char *, int *);
83 extern void topo_snap_release(topo_hdl_t *);
88 typedef int (*topo_walk_cb_t)(topo_hdl_t *, tnode_t *, void *);
90 extern topo_walk_t *topo_walk_init(topo_hdl_t *, const char *, topo_walk_cb_t,
94 extern di_node_t topo_hdl_devinfo(topo_hdl_t *);
95 extern di_prom_handle_t topo_hdl_prominfo(topo_hdl_t *);
128 typedef int (*topo_scheme_walk_cb_f)(topo_hdl_t *, const topo_scheme_info_t *,
[all …]
H A Dtopo_subr.h119 extern void topo_hdl_lock(topo_hdl_t *);
120 extern void topo_hdl_unlock(topo_hdl_t *);
127 extern void topo_dprintf(topo_hdl_t *, int, const char *, ...);
128 extern void topo_vdprintf(topo_hdl_t *, const char *, const char *,
131 extern tnode_t *topo_hdl_root(topo_hdl_t *, const char *);
141 extern char *topo_cleanup_auth_str(topo_hdl_t *, const char *);
142 extern char *topo_cleanup_strn(topo_hdl_t *, const char *, size_t);
H A Dtopo_module.h64 topo_hdl_t *tm_hdl; /* Topo handle for this module */
91 extern topo_modhash_t *topo_modhash_create(topo_hdl_t *);
92 extern void topo_modhash_destroy(topo_hdl_t *);
94 extern topo_mod_t *topo_modhash_load(topo_hdl_t *, const char *, const char *,
97 extern void topo_modhash_unload_all(topo_hdl_t *);
100 extern topo_mod_t *topo_mod_lookup(topo_hdl_t *, const char *, int);
H A Dtopo_fmri.c79 set_error(topo_hdl_t *thp, int err, int *errp, char *method, nvlist_t *nvlp) in set_error()
92 set_nverror(topo_hdl_t *thp, int err, int *errp, char *method, nvlist_t *nvlp) in set_nverror()
104 topo_fmri_nvl2str(topo_hdl_t *thp, nvlist_t *fmri, char **fmristr, int *err) in topo_fmri_nvl2str()
136 topo_fmri_str2nvl(topo_hdl_t *thp, const char *fmristr, nvlist_t **fmri, in topo_fmri_str2nvl()
215 topo_fmri_present(topo_hdl_t *thp, nvlist_t *fmri, int *err) in topo_fmri_present()
243 topo_fmri_replaced(topo_hdl_t *thp, nvlist_t *fmri, int *err) in topo_fmri_replaced()
271 topo_fmri_contains(topo_hdl_t *thp, nvlist_t *fmri, nvlist_t *subfmri, int *err) in topo_fmri_contains()
307 topo_fmri_unusable(topo_hdl_t *thp, nvlist_t *fmri, int *err) in topo_fmri_unusable()
333 topo_fmri_retire(topo_hdl_t *thp, nvlist_t *fmri, int *err) in topo_fmri_retire()
361 topo_fmri_unretire(topo_hdl_t *thp, nvlist_t *fmri, int *err) in topo_fmri_unretire()
[all …]
H A Dtopo_snap.c93 static void topo_snap_destroy(topo_hdl_t *);
95 static topo_hdl_t *
96 set_open_errno(topo_hdl_t *thp, int *errp, int err) in set_open_errno()
119 topo_hdl_set_product(topo_hdl_t *thp) in topo_hdl_set_product()
157 topo_hdl_t *
160 topo_hdl_t *thp = NULL; in topo_open()
176 if ((thp = topo_zalloc(sizeof (topo_hdl_t), 0)) == NULL) in topo_open()
254 topo_close(topo_hdl_t *thp) in topo_close()
310 topo_free(thp, sizeof (topo_hdl_t)); in topo_close()
314 topo_snap_create(topo_hdl_t *thp, int *errp, boolean_t need_force) in topo_snap_create()
[all …]
H A Dtopo_module.c168 topo_mod_lookup(topo_hdl_t *thp, const char *name, int bump) in topo_mod_lookup()
185 topo_hdl_t *thp; in topo_mod_destroy()
206 set_create_error(topo_hdl_t *thp, topo_mod_t *mod, const char *path, int err) in set_create_error()
224 topo_mod_create(topo_hdl_t *thp, const char *name, const char *path, in topo_mod_create()
261 topo_modhash_create(topo_hdl_t *thp) in topo_modhash_create()
283 topo_modhash_destroy(topo_hdl_t *thp) in topo_modhash_destroy()
314 topo_modhash_load(topo_hdl_t *thp, const char *name, const char *path, in topo_modhash_load()
344 topo_hdl_t *thp = mod->tm_hdl; in topo_modhash_unload()
383 topo_modhash_unload_all(topo_hdl_t *thp) in topo_modhash_unload_all()
H A Dtopo_tree.h69 topo_hdl_t *tn_hdl; /* topo handle pointer */
135 extern ttree_t *topo_tree_create(topo_hdl_t *, topo_mod_t *, const char *);
137 extern int topo_tree_enum_all(topo_hdl_t *);
147 extern topo_walk_t *topo_node_walk_init(topo_hdl_t *, topo_mod_t *, tnode_t *,
H A Dtopo_error.h91 extern int topo_hdl_seterrno(topo_hdl_t *, int);
92 extern const char *topo_hdl_errmsg(topo_hdl_t *);
93 extern int topo_hdl_errno(topo_hdl_t *);
H A Dtopo_subr.c45 topo_hdl_lock(topo_hdl_t *thp) in topo_hdl_lock()
51 topo_hdl_unlock(topo_hdl_t *thp) in topo_hdl_unlock()
114 env_process_value(topo_hdl_t *thp, const char *begin, const char *end) in env_process_value()
145 topo_debug_set(topo_hdl_t *thp, const char *dbmode, const char *dout) in topo_debug_set()
177 topo_vdprintf(topo_hdl_t *thp, const char *mod, const char *format, va_list ap) in topo_vdprintf()
209 topo_dprintf(topo_hdl_t *thp, int mask, const char *format, ...) in topo_dprintf()
222 topo_hdl_root(topo_hdl_t *thp, const char *scheme) in topo_hdl_root()
279 topo_hdl_t *thp = mod->tm_hdl; in topo_search_path()
312 topo_cleanup_strn(topo_hdl_t *thp, const char *begin, size_t max) in topo_cleanup_strn()
349 topo_cleanup_auth_str(topo_hdl_t *thp, const char *begin) in topo_cleanup_auth_str()
H A Dtopo_string.c38 topo_hdl_strdup(topo_hdl_t *thp, const char *s) in topo_hdl_strdup()
54 topo_hdl_strfree(topo_hdl_t *thp, char *s) in topo_hdl_strfree()
61 topo_hdl_strfreev(topo_hdl_t *thp, char **strarr, uint_t nelem) in topo_hdl_strfreev()
76 topo_hdl_vasprintf(topo_hdl_t *thp, char **str, const char *fmt, va_list ap) in topo_hdl_vasprintf()
114 topo_hdl_asprintf(topo_hdl_t *thp, char **str, const char *fmt, ...) in topo_hdl_asprintf()
H A Dtopo_alloc.c56 topo_hdl_alloc(topo_hdl_t *thp, size_t size) in topo_hdl_alloc()
64 topo_hdl_zalloc(topo_hdl_t *thp, size_t size) in topo_hdl_zalloc()
72 topo_hdl_free(topo_hdl_t *thp, void *data, size_t size) in topo_hdl_free()
H A Dtopo_tree.c70 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()
202 topo_tree_enum_all(topo_hdl_t *thp) in topo_tree_enum_all()
H A Dtopo_2xml.c59 static int txml_print_range(topo_hdl_t *, FILE *, tnode_t *, int);
121 txml_print_prop(topo_hdl_t *thp, FILE *fp, tnode_t *node, const char *pgname, in txml_print_prop()
359 txml_print_pgroup(topo_hdl_t *thp, FILE *fp, tnode_t *node, topo_pgroup_t *pg) in txml_print_pgroup()
379 txml_print_dependents(topo_hdl_t *thp, FILE *fp, tnode_t *node) in txml_print_dependents()
389 txml_print_node(topo_hdl_t *thp, FILE *fp, tnode_t *node) in txml_print_node()
418 txml_print_range(topo_hdl_t *thp, FILE *fp, tnode_t *node, int dependent) in txml_print_range()
458 txml_print_topology(topo_hdl_t *thp, FILE *fp, char *scheme, tnode_t *node) in txml_print_topology()
469 topo_xml_print(topo_hdl_t *thp, FILE *fp, const char *scheme, int *err) in topo_xml_print()
H A Dtopo_digraph_xml.c38 static int serialize_nvpair(topo_hdl_t *thp, FILE *, uint_t, const char *,
196 serialize_nvpair_nvlist(topo_hdl_t *thp, FILE *fp, uint_t pad, in serialize_nvpair_nvlist()
222 serialize_nvpair(topo_hdl_t *thp, FILE *fp, uint_t pad, const char *pname, in serialize_nvpair()
435 serialize_edge(topo_hdl_t *thp, topo_edge_t *edge, boolean_t last_edge, in serialize_edge()
467 serialize_property(topo_hdl_t *thp, FILE *fp, uint_t pad, tnode_t *tn, in serialize_property()
602 serialize_pgroups(topo_hdl_t *thp, FILE *fp, tnode_t *tn) in serialize_pgroups()
662 serialize_vertex(topo_hdl_t *thp, topo_vertex_t *vtx, boolean_t last_vtx, in serialize_vertex()
721 topo_digraph_serialize(topo_hdl_t *thp, topo_digraph_t *tdg, FILE *fp) in topo_digraph_serialize()
788 dump_xml_node(topo_hdl_t *thp, xmlNodePtr xn) in dump_xml_node()
808 edge_cb(topo_hdl_t *thp, topo_vertex_t *vtx, boolean_t last_vtx, void *arg) in edge_cb()
[all …]
H A Dtopo_prop.c213 topo_hdl_t *thp = node->tn_hdl; in prop_getval()
505 topo_hdl_t *thp = node->tn_hdl; in set_seterror()
524 topo_hdl_t *thp = node->tn_hdl; in prop_create()
575 topo_hdl_t *thp = node->tn_hdl; in topo_prop_set()
774 topo_hdl_t *thp = node->tn_hdl; in topo_prop_setprop()
857 topo_hdl_t *thp = node->tn_hdl; in register_methoderror()
879 topo_hdl_t *thp = node->tn_hdl; in prop_method_register()
985 topo_hdl_t *thp = node->tn_hdl; in topo_prop_method_unregister()
1078 topo_hdl_t *thp = node->tn_hdl; in topo_prop_inherit()
1131 topo_hdl_t *thp = node->tn_hdl; in topo_pgroup_info()
[all …]
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_fru.c70 static topo_hdl_t *(*_topo_open)(int, const char *, int *);
71 static void (*_topo_close)(topo_hdl_t *);
72 static char *(*_topo_snap_hold)(topo_hdl_t *, const char *, int *);
73 static void (*_topo_snap_release)(topo_hdl_t *);
74 static topo_walk_t *(*_topo_walk_init)(topo_hdl_t *, const char *,
78 static void (*_topo_hdl_strfree)(topo_hdl_t *, char *);
83 static int (*_topo_fmri_nvl2str)(topo_hdl_t *, nvlist_t *, char **, int *);
84 static int (*_topo_fmri_strcmp_noauth)(topo_hdl_t *, const char *,
108 libzfs_fru_gather(topo_hdl_t *thp, tnode_t *tn, void *arg) in libzfs_fru_gather()
217 _topo_open = (topo_hdl_t *(*)()) in libzfs_init_fru()
[all …]
/illumos-gate/usr/src/cmd/fm/schemes/dev/
H A Dscheme.c50 topo_hdl_t *thp; in fmd_fmri_nvl2str()
76 topo_hdl_t *thp; in fmd_fmri_present()
91 topo_hdl_t *thp; in fmd_fmri_replaced()
107 topo_hdl_t *thp; in fmd_fmri_unusable()
130 topo_hdl_t *thp; in fmd_fmri_service_state()
/illumos-gate/usr/src/cmd/fm/schemes/svc/
H A Dscheme.c49 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()
/illumos-gate/usr/src/cmd/fm/modules/common/disk-lights/
H A Ddisk_lights.c57 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()
/illumos-gate/usr/src/cmd/fm/schemes/hc/
H A Dscheme.c47 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()
283 topo_hdl_t *thp; in fmd_fmri_service_state()
/illumos-gate/usr/src/test/os-tests/tests/libtopo/
H A Ddigraph-test.c43 extern int topo_hdl_errno(topo_hdl_t *);
77 test_deserialize(topo_hdl_t *thp, const char *path) in test_deserialize()
122 test_paths_cb(topo_hdl_t *thp, topo_vertex_t *vtx, boolean_t last_vtx, in test_paths_cb()
134 test_paths(topo_hdl_t *thp, topo_digraph_t *tdg) in test_paths()
201 test_serialize(topo_hdl_t *thp, topo_digraph_t *tdg, const char *path) in test_serialize()
223 topo_hdl_t *thp = NULL; in main()
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_topo.h41 topo_hdl_t *ft_hdl;
51 extern void fmd_topo_rele_hdl(topo_hdl_t *);
/illumos-gate/usr/src/cmd/fm/schemes/cpu/
H A Dcpu.c46 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()
/illumos-gate/usr/src/cmd/fm/fmtopo/common/
H A Dfmtopo.c130 print_node(topo_hdl_t *thp, tnode_t *node, nvlist_t *nvl, const char *fmri) in print_node()
249 print_prop_nameval(topo_hdl_t *thp, tnode_t *node, nvlist_t *nvl) in print_prop_nameval()
502 print_pgroup(topo_hdl_t *thp, tnode_t *node, const char *pgn, char *dstab, in print_pgroup()
534 print_all_props(topo_hdl_t *thp, tnode_t *node, nvlist_t *p_nv, in print_all_props()
612 set_prop(topo_hdl_t *thp, tnode_t *node, nvlist_t *fmri, struct prop_args *pp) in set_prop()
770 print_props(topo_hdl_t *thp, tnode_t *node) in print_props()
831 walk_node(topo_hdl_t *thp, tnode_t *node, void *arg) in walk_node()
971 walk_schemes_cb(topo_hdl_t *thp, const topo_scheme_info_t *info, void *arg) in walk_schemes_cb()
999 walk_topo(topo_hdl_t *thp, char *uuid) in walk_topo()
1046 print_fmri_pgroup(topo_hdl_t *thp, const char *pgn, nvlist_t *nvl) in print_fmri_pgroup()
[all …]
/illumos-gate/usr/src/cmd/fm/fmdump/common/
H A Dnvlrender.c35 extern topo_hdl_t *fmd_fmri_topo_hold(int);
49 topo_hdl_t *thp = fmd_fmri_topo_hold(TOPO_VERSION); in fmdump_render_nvlist()

123