Home
last modified time | relevance | path

Searched refs:rsrcnames (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/lib/librcm/
H A Dlibrcm.c128 char *rsrcnames[2]; in rcm_get_info() local
144 rsrcnames[0] = rsrcname; in rcm_get_info()
145 rsrcnames[1] = NULL; in rcm_get_info()
147 return (rcm_common(CMD_GETINFO, hd, rsrcnames, flag, NULL, infop)); in rcm_get_info()
152 rcm_get_info_list(rcm_handle_t *hd, char **rsrcnames, uint_t flag, in rcm_get_info_list() argument
161 return (rcm_common(CMD_GETINFO, hd, rsrcnames, flag, NULL, infop)); in rcm_get_info_list()
169 char *rsrcnames[2]; in rcm_request_offline() local
171 rsrcnames[0] = rsrcname; in rcm_request_offline()
172 rsrcnames[1] = NULL; in rcm_request_offline()
174 return (rcm_request_offline_list(hd, rsrcnames, flag, infop)); in rcm_request_offline()
[all …]
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_event.c130 char **rsrcnames = NULL; in process_event() local
161 rsrcnames = s_calloc(nvl_nrsrcs + 1, sizeof (char *)); in process_event()
163 rsrcnames[i] = nvl_rsrcs[i]; in process_event()
165 rsrcnames[nvl_nrsrcs] = NULL; in process_event()
174 if ((modname == NULL) || (rsrcnames == NULL) || in process_event()
175 (rsrcnames[0] == NULL)) in process_event()
177 error = add_resource_client(modname, rsrcnames[0], pid, flag, in process_event()
182 if ((modname == NULL) || (rsrcnames == NULL) || in process_event()
183 (rsrcnames[0] == NULL)) in process_event()
185 error = remove_resource_client(modname, rsrcnames[0], pid, in process_event()
[all …]
H A Drcm_impl.c108 notify_resource_remove(char **rsrcnames, pid_t pid, uint_t flag, int seq_num, in notify_resource_remove() argument
115 for (i = 0; rsrcnames[i] != NULL; i++) { in notify_resource_remove()
118 "notify_resource_remove(%s, %ld, 0x%x, %d)\n", rsrcnames[i], in notify_resource_remove()
125 error = dr_req_update(rsrcnames[i], pid, flag, in notify_resource_remove()
132 error = common_resource_op(CMD_REMOVE, rsrcnames[i], pid, flag, in notify_resource_remove()
138 dr_req_remove(rsrcnames[i], flag); in notify_resource_remove()
151 notify_resource_resume(char **rsrcnames, pid_t pid, uint_t flag, int seq_num, in notify_resource_resume() argument
160 for (i = 0; rsrcnames[i] != NULL; i++) { in notify_resource_resume()
166 if (get_resource_state(rsrcnames[i], pid, &state_info) || in notify_resource_resume()
175 rsrcnames[i], pid, flag, seq_num); in notify_resource_resume()
[all …]
H A Drcm_lock.c963 char *rsrcnames[2]; in clean_dr_list() local
968 rsrcnames[1] = NULL; in clean_dr_list()
1030 rsrcnames[0] = tmp->rsrcname; in clean_dr_list()
1033 (void) process_resource_offline(rsrcnames, in clean_dr_list()
1037 (void) notify_resource_online(rsrcnames, in clean_dr_list()
1044 rsrcnames[0] = tmp->rsrcname; in clean_dr_list()
1047 (void) process_resource_offline(rsrcnames, in clean_dr_list()
1051 (void) notify_resource_online(rsrcnames, in clean_dr_list()
1058 rsrcnames[0] = tmp->rsrcname; in clean_dr_list()
1061 (void) process_resource_suspend(rsrcnames, in clean_dr_list()
[all …]
H A Drcm_subr.c1457 rsrc_usage_info(char **rsrcnames, uint_t flag, int seq_num, rcm_info_t **info) in rsrc_usage_info() argument
1470 for (i = 0; rsrcnames[i] != NULL; i++) { in rsrc_usage_info()
1473 rsrcnames[i], flag, seq_num); in rsrc_usage_info()
1481 if (info_req_add(rsrcnames[i], flag, seq_num) != 0) { in rsrc_usage_info()
1486 rv = rsrc_node_find(rsrcnames[i], 0, &node); in rsrc_usage_info()