Home
last modified time | relevance | path

Searched refs:hp_node_t (Results 1 – 11 of 11) sorted by relevance

/illumos-gate/usr/src/lib/libhotplug/common/
H A Dlibhotplug.h72 typedef struct hp_node *hp_node_t; typedef
77 hp_node_t hp_init(const char *path, const char *connection, uint_t flags);
78 void hp_fini(hp_node_t root);
79 int hp_traverse(hp_node_t root, void *arg,
80 int (*hp_callback)(hp_node_t, void *arg));
81 int hp_type(hp_node_t node);
82 char *hp_name(hp_node_t node);
83 char *hp_usage(hp_node_t node);
84 int hp_state(hp_node_t node);
85 char *hp_description(hp_node_t node);
[all …]
H A Dlibhotplug.c41 static int i_hp_pack_branch(hp_node_t, char **, size_t *);
42 static int i_hp_pack_node(hp_node_t, char **, size_t *);
43 static int i_hp_unpack_node(char *, size_t, hp_node_t, hp_node_t *);
44 static int i_hp_unpack_branch(char *, size_t, hp_node_t, hp_node_t *);
48 static int i_hp_parse_results(nvlist_t *, hp_node_t *, char **);
60 hp_node_t
65 hp_node_t root = NULL; in hp_init()
124 hp_fini(hp_node_t root) in hp_fini()
126 hp_node_t node; in hp_fini()
127 hp_node_t sibling; in hp_fini()
[all …]
H A Dlibhotplug_impl.h48 hp_node_t hp_parent;
49 hp_node_t hp_child;
50 hp_node_t hp_sibling;
/illumos-gate/usr/src/cmd/hotplugd/
H A Dhotplugd_info.c42 hp_node_t head;
43 hp_node_t prev;
50 hp_node_t *);
51 static int copy_devices(hp_node_t, di_node_t, uint_t, hp_node_t *);
52 static int copy_hotplug(hp_node_t, di_node_t, const char *, uint_t,
53 hp_node_t *);
57 static hp_node_t new_device_node(hp_node_t, di_node_t);
58 static hp_node_t new_hotplug_node(hp_node_t, di_hp_t);
59 static void node_list_add(hp_node_list_t *, hp_node_t);
68 getinfo(const char *path, const char *connection, uint_t flags, hp_node_t *retp) in getinfo()
[all …]
H A Dhotplugd_impl.h65 hp_node_t *rootp);
67 uint_t flags, int *old_statep, hp_node_t *resultsp);
70 int copy_usage(hp_node_t root);
71 int rcm_resources(hp_node_t root, char ***rsrcsp);
73 int rcm_offline(char **rsrcs, uint_t flags, hp_node_t root);
H A Dhotplugd_rcm.c79 static int merge_rcm_info(hp_node_t root, rcm_info_t *info);
84 static int resource_callback(hp_node_t node, void *argp);
85 static int merge_callback(hp_node_t node, void *argp);
96 copy_usage(hp_node_t root) in copy_usage()
139 rcm_resources(hp_node_t root, char ***rsrcsp) in rcm_resources()
186 rcm_offline(char **rsrcs, uint_t flags, hp_node_t root) in rcm_offline()
329 merge_rcm_info(hp_node_t root, rcm_info_t *info) in merge_rcm_info()
377 resource_callback(hp_node_t node, void *argp) in resource_callback()
448 merge_callback(hp_node_t node, void *argp) in merge_callback()
451 hp_node_t usage; in merge_callback()
[all …]
H A Dhotplugd_impl.c51 static boolean_t check_rcm_required(hp_node_t, int);
65 int *old_statep, hp_node_t *resultsp) in changestate()
67 hp_node_t root = NULL; in changestate()
232 check_rcm_required(hp_node_t root, int target_state) in check_rcm_required()
H A Dhotplugd_door.c292 hp_node_t root; in cmd_getinfo()
365 hp_node_t root = NULL; in cmd_changestate()
/illumos-gate/usr/src/cmd/hotplug/
H A Dhotplug.c61 static int list_cb(hp_node_t, void *);
62 static int list_long_cb(hp_node_t, void *);
63 static int error_cb(hp_node_t, void *);
245 hp_node_t root; in cmd_list()
296 hp_node_t root; in cmd_online()
297 hp_node_t results = NULL; in cmd_online()
356 hp_node_t root; in cmd_offline()
357 hp_node_t results = NULL; in cmd_offline()
413 hp_node_t root; in cmd_enable()
414 hp_node_t results = NULL; in cmd_enable()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/fac_prov_libhp/
H A Dfac_prov_libhp.c83 static hp_node_t
90 hp_node_t node; in fac_prov_libhp_find_node()
138 fac_prov_libhp_set_val(topo_mod_t *mod, hp_node_t hp, const char *opt_name, in fac_prov_libhp_set_val()
163 fac_prov_libhp_get_opt(topo_mod_t *mod, hp_node_t hp, const char *opt_name, in fac_prov_libhp_get_opt()
213 hp_node_t hp = NULL; in fac_prov_libhp_opt_set()
/illumos-gate/usr/src/lib/cfgadm_plugins/shp/common/
H A Dshp.c286 physpath2node(const char *physpath, char **errstring, hp_node_t *nodep) in physpath2node()
290 hp_node_t node; in physpath2node()
353 error_sizeup_cb(hp_node_t node, void *arg) in error_sizeup_cb()
387 error_sumup_cb(hp_node_t node, void *arg) in error_sumup_cb()
409 pci_rcm_info_table(hp_node_t node, char **table) in pci_rcm_info_table()
547 cfga_get_state(hp_node_t connector, ap_rstate_t *rs, ap_ostate_t *os) in cfga_get_state()
550 hp_node_t port; in cfga_get_state()
622 hp_node_t node; in cfga_change_state()
623 hp_node_t results = NULL; in cfga_change_state()
791 hp_node_t node; in prt_led_mode()
[all …]