Home
last modified time | relevance | path

Searched refs:rcm_handle_t (Results 1 – 25 of 34) sorted by relevance

12

/illumos-gate/usr/src/lib/librcm/
H A Dlibrcm.h111 typedef struct rcm_handle rcm_handle_t; typedef
118 int rcm_alloc_handle(char *, uint_t, void *, rcm_handle_t **);
119 int rcm_free_handle(rcm_handle_t *);
120 int rcm_get_info(rcm_handle_t *, char *, uint_t, rcm_info_t **);
121 int rcm_get_info_list(rcm_handle_t *, char **, uint_t, rcm_info_t **);
134 int rcm_request_offline(rcm_handle_t *, char *, uint_t, rcm_info_t **);
135 int rcm_request_offline_list(rcm_handle_t *, char **, uint_t, rcm_info_t **);
136 int rcm_notify_online(rcm_handle_t *, char *, uint_t, rcm_info_t **);
137 int rcm_notify_online_list(rcm_handle_t *, char **, uint_t, rcm_info_t **);
138 int rcm_notify_remove(rcm_handle_t *, char *, uint_t, rcm_info_t **);
[all …]
H A Dlibrcm.c38 static int rcm_common(int, rcm_handle_t *, char **, uint_t, void *,
40 static int rcm_direct_call(int, rcm_handle_t *, char **, uint_t, void *,
42 static int rcm_daemon_call(int, rcm_handle_t *, char **, uint_t, void *,
44 static int rcm_generate_nvlist(int, rcm_handle_t *, char **, uint_t, void *,
53 rcm_alloc_handle(char *modname, uint_t flag, void *arg, rcm_handle_t **hdp) in rcm_alloc_handle()
55 rcm_handle_t *hd; in rcm_alloc_handle()
104 rcm_free_handle(rcm_handle_t *hd) in rcm_free_handle()
126 rcm_get_info(rcm_handle_t *hd, char *rsrcname, uint_t flag, rcm_info_t **infop) in rcm_get_info()
152 rcm_get_info_list(rcm_handle_t *hd, char **rsrcnames, uint_t flag, in rcm_get_info_list()
166 rcm_request_offline(rcm_handle_t *hd, char *rsrcname, uint_t flag, in rcm_request_offline()
[all …]
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_module.h70 int (*rcmop_register)(rcm_handle_t *);
71 int (*rcmop_unregister)(rcm_handle_t *);
72 int (*rcmop_get_info)(rcm_handle_t *, char *, id_t, uint_t,
74 int (*rcmop_request_suspend)(rcm_handle_t *, char *, id_t,
76 int (*rcmop_notify_resume)(rcm_handle_t *, char *, id_t, uint_t,
78 int (*rcmop_request_offline)(rcm_handle_t *, char *, id_t, uint_t,
80 int (*rcmop_notify_online)(rcm_handle_t *, char *, id_t, uint_t,
82 int (*rcmop_notify_remove)(rcm_handle_t *, char *, id_t, uint_t,
87 int (*rcmop_request_capacity_change)(rcm_handle_t *, char *, id_t,
89 int (*rcmop_notify_capacity_change)(rcm_handle_t *, char *, id_t,
[all …]
H A Dcluster_rcm.c53 static int cluster_register(rcm_handle_t *);
54 static int cluster_unregister(rcm_handle_t *);
55 static int cluster_getinfo(rcm_handle_t *, char *, id_t, uint_t,
57 static int cluster_suspend(rcm_handle_t *, char *, id_t,
59 static int cluster_resume(rcm_handle_t *, char *, id_t, uint_t,
61 static int cluster_offline(rcm_handle_t *, char *, id_t, uint_t,
63 static int cluster_online(rcm_handle_t *, char *, id_t, uint_t,
65 static int cluster_remove(rcm_handle_t *, char *, id_t, uint_t,
105 cluster_register(rcm_handle_t *hdl) in cluster_register()
137 cluster_unregister(rcm_handle_t *hdl) in cluster_unregister()
[all …]
H A Dpool_rcm.c42 static int pool_register(rcm_handle_t *);
43 static int pool_unregister(rcm_handle_t *);
44 static int pool_get_info(rcm_handle_t *, char *, id_t, uint_t, char **,
46 static int pool_request_suspend(rcm_handle_t *, char *, id_t,
48 static int pool_notify_resume(rcm_handle_t *, char *, id_t, uint_t, char **,
50 static int pool_notify_remove(rcm_handle_t *, char *, id_t, uint_t,
52 static int pool_request_offline(rcm_handle_t *, char *, id_t, uint_t,
54 static int pool_notify_online(rcm_handle_t *, char *, id_t, uint_t, char **,
56 static int pool_request_capacity_change(rcm_handle_t *, char *, id_t, uint_t,
58 static int pool_notify_capacity_change(rcm_handle_t *, char *, id_t, uint_t,
[all …]
H A Dbridge_rcm.c91 static int bridge_register(rcm_handle_t *);
92 static int bridge_unregister(rcm_handle_t *);
93 static int bridge_get_info(rcm_handle_t *, char *, id_t, uint_t,
95 static int bridge_suspend(rcm_handle_t *, char *, id_t,
97 static int bridge_resume(rcm_handle_t *, char *, id_t, uint_t,
99 static int bridge_offline(rcm_handle_t *, char *, id_t, uint_t,
101 static int bridge_undo_offline(rcm_handle_t *, char *, id_t,
103 static int bridge_remove(rcm_handle_t *, char *, id_t, uint_t,
105 static int bridge_notify_event(rcm_handle_t *, char *, id_t,
107 static int bridge_configure(rcm_handle_t *, datalink_id_t);
[all …]
H A Ddump_rcm.c72 static int dump_register(rcm_handle_t *);
73 static int dump_unregister(rcm_handle_t *);
74 static int dump_getinfo(rcm_handle_t *, char *, id_t, uint_t,
76 static int dump_suspend(rcm_handle_t *, char *, id_t, timespec_t *,
78 static int dump_resume(rcm_handle_t *, char *, id_t, uint_t,
80 static int dump_offline(rcm_handle_t *, char *, id_t, uint_t,
82 static int dump_online(rcm_handle_t *, char *, id_t, uint_t,
84 static int dump_remove(rcm_handle_t *, char *, id_t, uint_t,
96 static int update_cache(rcm_handle_t *);
136 dump_register(rcm_handle_t *hdl) in dump_register()
[all …]
H A Dvlan_rcm.c105 static int vlan_register(rcm_handle_t *);
106 static int vlan_unregister(rcm_handle_t *);
107 static int vlan_get_info(rcm_handle_t *, char *, id_t, uint_t,
109 static int vlan_suspend(rcm_handle_t *, char *, id_t,
111 static int vlan_resume(rcm_handle_t *, char *, id_t, uint_t,
113 static int vlan_offline(rcm_handle_t *, char *, id_t, uint_t,
115 static int vlan_undo_offline(rcm_handle_t *, char *, id_t, uint_t,
117 static int vlan_remove(rcm_handle_t *, char *, id_t, uint_t,
119 static int vlan_notify_event(rcm_handle_t *, char *, id_t, uint_t,
121 static int vlan_configure(rcm_handle_t *, datalink_id_t);
[all …]
H A Dibpart_rcm.c105 static int ibpart_register(rcm_handle_t *);
106 static int ibpart_unregister(rcm_handle_t *);
107 static int ibpart_get_info(rcm_handle_t *, char *, id_t, uint_t,
109 static int ibpart_suspend(rcm_handle_t *, char *, id_t,
111 static int ibpart_resume(rcm_handle_t *, char *, id_t, uint_t,
113 static int ibpart_offline(rcm_handle_t *, char *, id_t, uint_t,
115 static int ibpart_undo_offline(rcm_handle_t *, char *, id_t,
117 static int ibpart_remove(rcm_handle_t *, char *, id_t, uint_t,
119 static int ibpart_notify_event(rcm_handle_t *, char *, id_t,
121 static int ibpart_configure(rcm_handle_t *, datalink_id_t);
[all …]
H A Dvnic_rcm.c105 static int vnic_register(rcm_handle_t *);
106 static int vnic_unregister(rcm_handle_t *);
107 static int vnic_get_info(rcm_handle_t *, char *, id_t, uint_t,
109 static int vnic_suspend(rcm_handle_t *, char *, id_t,
111 static int vnic_resume(rcm_handle_t *, char *, id_t, uint_t,
113 static int vnic_offline(rcm_handle_t *, char *, id_t, uint_t,
115 static int vnic_undo_offline(rcm_handle_t *, char *, id_t, uint_t,
117 static int vnic_remove(rcm_handle_t *, char *, id_t, uint_t,
119 static int vnic_notify_event(rcm_handle_t *, char *, id_t, uint_t,
121 static int vnic_configure(rcm_handle_t *, datalink_id_t);
[all …]
H A Dmpxio_rcm.c81 static int mpxio_register(rcm_handle_t *);
82 static int mpxio_unregister(rcm_handle_t *);
83 static int mpxio_getinfo(rcm_handle_t *, char *, id_t, uint_t, char **, char **,
85 static int mpxio_suspend(rcm_handle_t *, char *, id_t, timespec_t *, uint_t,
87 static int mpxio_resume(rcm_handle_t *, char *, id_t, uint_t, char **,
89 static int mpxio_offline(rcm_handle_t *, char *, id_t, uint_t, char **,
91 static int mpxio_online(rcm_handle_t *, char *, id_t, uint_t, char **,
93 static int mpxio_remove(rcm_handle_t *, char *, id_t, uint_t, char **,
97 static void refresh_regs(rcm_handle_t *);
98 static int get_affected_clients(rcm_handle_t *, char *, int, int, char ***);
[all …]
H A Dnetwork_rcm.c81 static int net_register(rcm_handle_t *);
82 static int net_unregister(rcm_handle_t *);
83 static int net_getinfo(rcm_handle_t *, char *, id_t, uint_t, char **,
85 static int net_suspend(rcm_handle_t *, char *, id_t, timespec_t *,
87 static int net_resume(rcm_handle_t *, char *, id_t, uint_t, char **,
89 static int net_offline(rcm_handle_t *, char *, id_t, uint_t, char **,
91 static int net_online(rcm_handle_t *, char *, id_t, uint_t, char **,
93 static int net_remove(rcm_handle_t *, char *, id_t, uint_t, char **,
95 static int net_notify_event(rcm_handle_t *, char *, id_t, uint_t,
100 static void update_cache(rcm_handle_t *hd);
[all …]
H A Daggr_rcm.c109 static int aggr_register(rcm_handle_t *);
110 static int aggr_unregister(rcm_handle_t *);
111 static int aggr_get_info(rcm_handle_t *, char *, id_t, uint_t,
113 static int aggr_suspend(rcm_handle_t *, char *, id_t,
115 static int aggr_resume(rcm_handle_t *, char *, id_t, uint_t,
117 static int aggr_offline(rcm_handle_t *, char *, id_t, uint_t,
119 static int aggr_undo_offline(rcm_handle_t *, char *, id_t, uint_t,
121 static int aggr_remove(rcm_handle_t *, char *, id_t, uint_t,
123 static int aggr_notify_event(rcm_handle_t *, char *, id_t, uint_t,
125 static int aggr_configure_all(rcm_handle_t *, datalink_id_t,
[all …]
H A Dswap_rcm.c79 static int swap_register(rcm_handle_t *);
80 static int swap_unregister(rcm_handle_t *);
81 static int swap_getinfo(rcm_handle_t *, char *, id_t, uint_t,
83 static int swap_suspend(rcm_handle_t *, char *, id_t, timespec_t *,
85 static int swap_resume(rcm_handle_t *, char *, id_t, uint_t,
87 static int swap_offline(rcm_handle_t *, char *, id_t, uint_t,
89 static int swap_online(rcm_handle_t *, char *, id_t, uint_t,
91 static int swap_remove(rcm_handle_t *, char *, id_t, uint_t,
110 static int update_cache(rcm_handle_t *);
150 swap_register(rcm_handle_t *hdl) in swap_register()
[all …]
H A Dip_anon_rcm.c77 static int ip_anon_register(rcm_handle_t *);
78 static int ip_anon_unregister(rcm_handle_t *);
79 static int ip_anon_getinfo(rcm_handle_t *, char *, id_t, uint_t,
81 static int ip_anon_suspend(rcm_handle_t *, char *, id_t,
83 static int ip_anon_resume(rcm_handle_t *, char *, id_t, uint_t,
85 static int ip_anon_offline(rcm_handle_t *, char *, id_t, uint_t,
87 static int ip_anon_online(rcm_handle_t *, char *, id_t, uint_t,
89 static int ip_anon_remove(rcm_handle_t *, char *, id_t, uint_t,
159 ip_anon_register(rcm_handle_t *hdl) in ip_anon_register()
449 ip_anon_unregister(rcm_handle_t *hdl) in ip_anon_unregister()
[all …]
H A Dfilesys_rcm.c87 static int mnt_register(rcm_handle_t *);
88 static int mnt_unregister(rcm_handle_t *);
89 static int mnt_getinfo(rcm_handle_t *, char *, id_t, uint_t, char **, char **,
91 static int mnt_suspend(rcm_handle_t *, char *, id_t, timespec_t *,
93 static int mnt_resume(rcm_handle_t *, char *, id_t, uint_t, char **,
95 static int mnt_offline(rcm_handle_t *, char *, id_t, uint_t, char **,
97 static int mnt_online(rcm_handle_t *, char *, id_t, uint_t, char **,
99 static int mnt_remove(rcm_handle_t *, char *, id_t, uint_t, char **,
105 static int cache_sync(rcm_handle_t *, cache_t **);
113 static void register_rsrc(rcm_handle_t *, char *);
[all …]
H A Dip_rcm.c166 static int ip_register(rcm_handle_t *);
167 static int ip_unregister(rcm_handle_t *);
168 static int ip_get_info(rcm_handle_t *, char *, id_t, uint_t,
170 static int ip_suspend(rcm_handle_t *, char *, id_t,
172 static int ip_resume(rcm_handle_t *, char *, id_t, uint_t,
174 static int ip_offline(rcm_handle_t *, char *, id_t, uint_t,
176 static int ip_undo_offline(rcm_handle_t *, char *, id_t, uint_t,
178 static int ip_remove(rcm_handle_t *, char *, id_t, uint_t,
180 static int ip_notify_event(rcm_handle_t *, char *, id_t, uint_t,
185 static int update_cache(rcm_handle_t *);
[all …]
H A Drcm_script.c216 static int script_get_info(rcm_handle_t *, char *, pid_t, uint_t, char **,
221 static int script_register_interest(rcm_handle_t *);
225 static int script_request_offline(rcm_handle_t *, char *, pid_t, uint_t,
227 static int script_notify_online(rcm_handle_t *, char *, pid_t, uint_t,
229 static int script_notify_remove(rcm_handle_t *, char *, pid_t, uint_t,
231 static int script_request_suspend(rcm_handle_t *, char *, pid_t, timespec_t *,
233 static int script_notify_resume(rcm_handle_t *, char *, pid_t, uint_t,
238 static int script_request_capacity_change(rcm_handle_t *, char *, pid_t,
240 static int script_notify_capacity_change(rcm_handle_t *, char *, pid_t,
1604 script_get_info(rcm_handle_t *hdl, in script_get_info()
[all …]
H A Drcm_subr.c44 static void rcm_handle_free(rcm_handle_t *);
45 static rcm_handle_t *rcm_handle_alloc(module_t *);
48 static int call_getinfo(struct rcm_mod_ops *, rcm_handle_t *, char *, id_t,
635 rcm_handle_t *hdl; in rsrc_client_action()
1805 static rcm_handle_t *
1808 rcm_handle_t *hdl; in rcm_handle_alloc()
1810 hdl = s_malloc(sizeof (rcm_handle_t)); in rcm_handle_alloc()
1824 rcm_handle_free(rcm_handle_t *handle) in rcm_handle_free()
1892 call_getinfo(struct rcm_mod_ops *ops, rcm_handle_t *hdl, char *alias, id_t pid, in call_getinfo()
H A Drcm_script_impl.h97 rcm_handle_t *hdl;
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/
H A Dap_rcm.c67 rcm_handle_t *hd;
70 int (*alloc_handle)(char *, uint_t, void *, rcm_handle_t **);
71 void (*free_handle)(rcm_handle_t *);
72 int (*get_info)(rcm_handle_t *, char *, uint_t, rcm_info_t **);
80 int (*request_offline_list)(rcm_handle_t *, char **, uint_t,
82 int (*notify_online_list)(rcm_handle_t *, char **, uint_t,
84 int (*request_suspend)(rcm_handle_t *, char *, uint_t, timespec_t *,
86 int (*notify_resume)(rcm_handle_t *, char *, uint_t, rcm_info_t **);
87 int (*notify_remove_list)(rcm_handle_t *, char **, uint_t,
89 int (*request_capacity_change)(rcm_handle_t *, char *, uint_t,
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_rcm.c31 static scfga_ret_t scsi_rcm_init(uint_t, char **, rcm_handle_t **);
45 rcm_handle_t *rcm_handle; in scsi_rcm_offline()
88 rcm_handle_t *rcm_handle; in scsi_rcm_online()
121 rcm_handle_t *rcm_handle; in scsi_rcm_remove()
157 rcm_handle_t *rcm_handle; in scsi_rcm_suspend()
202 rcm_handle_t *rcm_handle; in scsi_rcm_resume()
235 scsi_rcm_init(uint_t rcm_flag, char **errstring, rcm_handle_t **hdlp) in scsi_rcm_init()
/illumos-gate/usr/src/cmd/hotplugd/
H A Dhotplugd_rcm.c188 rcm_handle_t *handle; in rcm_offline()
237 rcm_handle_t *handle; in rcm_online()
263 rcm_handle_t *handle; in rcm_remove()
289 rcm_handle_t *handle; in get_rcm_usage()
/illumos-gate/usr/src/cmd/syseventd/modules/datalink_mod/
H A Ddatalink_mod.c50 static rcm_handle_t *rcm_hdl = NULL;
/illumos-gate/usr/src/lib/cfgadm_plugins/pci/common/
H A Dcfga.c348 confirm_rcm(hpc_occupant_info_t *occupant, rcm_handle_t *rhandle) in confirm_rcm()
363 fail_rcm(hpc_occupant_info_t *occupant, rcm_handle_t *rhandle) in fail_rcm()
506 rcm_handle_t **rhandlep, char **errstring, cfga_flags_t flags) in check_rcm()
510 rcm_handle_t *rhandle; in check_rcm()
584 rcm_handle_t *rhandle; in cfga_change_state()

12