Searched defs:rsrc (Results 1 - 25 of 88) sorted by relevance

1234

/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dpi_mem.c46 nvlist_t *rsrc = NULL; local
66 result = topo_node_resource(*t_node, &rsrc, &err);
75 result = topo_node_asru_set(*t_node, rsrc, TOPO_ASRU_COMPUTE, &err);
76 nvlist_free(rsrc);
/illumos-gate/usr/src/cmd/fm/modules/common/cpumem-retire/
H A Dcma_page.c93 nvlist_t *rsrc = NULL, *asrucp = NULL, *hcsp; local
95 (void) nvlist_lookup_nvlist(nvl, FM_FAULT_RESOURCE, &rsrc);
118 if (rsrc == NULL ||
119 nvlist_lookup_nvlist(rsrc, FM_FMRI_HC_SPECIFIC, &hcsp) != 0 ||
141 if (rsrc == NULL || (rc = fmd_nvl_fmri_unretire(hdl, rsrc)) < 0)
152 if (rsrc == NULL || (rc = fmd_nvl_fmri_retire(hdl, rsrc)) < 0)
183 if (rsrc != NULL)
184 (void) nvlist_dup(rsrc,
[all...]
H A Dcma_cpu.c57 nvlist_t *rsrc; local
64 if (nvlist_lookup_nvlist(nvl, FM_FAULT_RESOURCE, &rsrc) != 0)
71 if (nvlist_lookup_nvlist_array(rsrc, FM_FMRI_HC_LIST, &hcl, &nhcl)
92 nvlist_t *rsrc; local
118 if (nvlist_lookup_nvlist(nvl, FM_FAULT_RESOURCE, &rsrc) == 0) {
120 err = fmd_nvl_fmri_unretire(hdl, rsrc);
123 err = fmd_nvl_fmri_retire(hdl, rsrc);
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/
H A Dcfga_rcm.c54 * rsrc - Resource name (typically an ap_id)
66 ib_rcm_offline(const char *rsrc, char **errstring, char *rsrc_fixed, argument
76 if ((ret = ib_rcm_init(rsrc, flags, errstring, &rflags)) !=
96 (void) ib_rcm_online(rsrc, errstring,
110 * rsrc - Resource name (typically an ap_id)
122 ib_rcm_online(const char *rsrc, char **errstring, char *rsrc_fixed, argument
130 if ((ret = ib_rcm_init(rsrc, flags, errstring, NULL)) != CFGA_IB_OK) {
152 * rsrc - Resource name (typically an ap_id)
164 ib_rcm_remove(const char *rsrc, char **errstring, char *rsrc_fixed, argument
172 if ((ret = ib_rcm_init(rsrc, flag
207 ib_rcm_init(const char *rsrc, cfga_flags_t flags, char **errstring, uint_t *rflags) argument
264 char *rsrc; local
[all...]
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/
H A Dcfga_rcm.c54 sata_rcm_offline(const char *rsrc, char **errstring, char *rsrc_fixed, argument
62 if ((ret = sata_rcm_init(rsrc, flags, errstring, &rflags)) !=
77 (void) sata_rcm_online(rsrc, errstring,
91 sata_rcm_online(const char *rsrc, char **errstring, char *rsrc_fixed, argument
97 if ((ret = sata_rcm_init(rsrc, flags, errstring, NULL)) !=
119 sata_rcm_remove(const char *rsrc, char **errstring, char *rsrc_fixed, argument
125 if ((ret = sata_rcm_init(rsrc, flags, errstring, NULL)) !=
150 sata_rcm_init(const char *rsrc, cfga_flags_t flags, char **errstring, argument
153 /* Validate the rsrc argument */
154 if (rsrc
196 char *rsrc; local
[all...]
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_rcm.c263 char *rsrc; local
274 rsrc = dgettext(TEXT_DOMAIN, "Resource");
293 if ((w = strlen(rsrc)) > w_rsrc)
327 w = strlen(rsrc);
330 (void) strcat(*table, rsrc);
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/
H A Dcfga_rcm.c55 usb_rcm_offline(const char *rsrc, char **errstring, char *rsrc_fixed, argument
65 if ((ret = usb_rcm_init(rsrc, flags, errstring, &rflags)) !=
86 (void) usb_rcm_online(rsrc, errstring,
101 usb_rcm_online(const char *rsrc, char **errstring, char *rsrc_fixed, argument
109 if ((ret = usb_rcm_init(rsrc, flags, errstring, NULL)) != CFGA_USB_OK) {
133 usb_rcm_remove(const char *rsrc, char **errstring, char *rsrc_fixed, argument
141 if ((ret = usb_rcm_init(rsrc, flags, errstring, NULL)) != CFGA_USB_OK) {
166 usb_rcm_init(const char *rsrc, cfga_flags_t flags, char **errstring, argument
171 /* Validate the rsrc argument */
172 if (rsrc
216 char *rsrc; local
[all...]
/illumos-gate/usr/src/cmd/fm/fmdump/common/
H A Dfault.c91 nvlist_t *fru, *asru, *rsrc; local
103 if (nvlist_lookup_nvlist(nva[i], FM_FAULT_RESOURCE, &rsrc) == 0)
104 rname = fmdump_nvl2str(rsrc);
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/dimm/
H A Ddimm_sun4v.c200 nvlist_t *rsrc, *fru; local
224 rsrc = NULL;
226 if (topo_node_resource(cnode, &rsrc, &err) < 0 ||
228 topo_node_asru_set(cnode, rsrc, TOPO_ASRU_COMPUTE, &err) < 0)
230 nvlist_free(rsrc);
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_rcm.c62 fp_rcm_offline(char *rsrc, char **errstring, cfga_flags_t flags) argument
70 if ((ret = fp_rcm_init(rsrc, flags, errstring, &rflags, &rsrc_fixed))
82 (void) fp_rcm_online(rsrc, errstring, flags);
97 fp_rcm_online(char *rsrc, char **errstring, cfga_flags_t flags) argument
103 if ((ret = fp_rcm_init(rsrc, flags, errstring, NULL, &rsrc_fixed))
126 fp_rcm_remove(char *rsrc, char **errstring, cfga_flags_t flags) argument
132 if ((ret = fp_rcm_init(rsrc, flags, errstring, NULL, &rsrc_fixed))
157 fp_rcm_suspend(char *rsrc, char *filter, char **errstring, cfga_flags_t flags) argument
170 if ((ret = fp_rcm_init(rsrc, flags, errstring, &rflags, &rsrc_fixed))
175 if (filter != NULL && strstr(filter, rsrc) !
258 fp_rcm_resume(char *rsrc, char *filter, char **errstring, cfga_flags_t flags) argument
350 fp_rcm_info(char *rsrc, char **errstring, char **info) argument
390 fp_rcm_init(char *rsrc, cfga_flags_t flags, char **errstring, uint_t *rflags, char **rsrc_fixed) argument
491 char *rsrc; local
603 chop_minor(char *rsrc) argument
[all...]
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Ddump_rcm.c519 cache_lookup(char *rsrc) argument
524 if (strcmp(rsrc, dc->device) == 0) {
H A Dpool_rcm.c67 const char *rsrc; member in struct:__anon1353
373 for (i = 0; registrations[i].rsrc != NULL; i++) {
374 if (strcmp(rsrcname, registrations[i].rsrc) == 0) {
402 for (i = 0; registrations[i].rsrc != NULL; i++) {
403 if (rcm_register_capacity(hdl, (char *)registrations[i].rsrc,
408 registrations[i].rsrc);
422 for (i = 0; registrations[i].rsrc != NULL; i++)
424 (char *)registrations[i].rsrc, 0) != RCM_SUCCESS) {
427 "for '%s'\n"), registrations[i].rsrc);
H A Drcm_impl.c803 char rsrc[MAXPATHLEN]; local
810 * The 'rsrc' buffer is required to retrieve the 'device' fields of
813 while (dr_req_lookup(seq_num, rsrc) == RCM_SUCCESS) {
816 opname, rsrc);
818 (void) common_resource_op(cmd, rsrc, pid,
822 (void) dr_req_remove(rsrc, flag);
H A Dbridge_rcm.c282 bridge_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, argument
288 rcm_log_message(RCM_TRACE1, "Bridge: offline(%s)\n", rsrc);
292 node = cache_lookup(hd, rsrc, CACHE_REFRESH);
304 "Bridge: offline query succeeded(%s)\n", rsrc);
318 rcm_log_message(RCM_TRACE1, "Bridge: Offline succeeded(%s %s)\n", rsrc,
329 bridge_undo_offline(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, argument
336 rcm_log_message(RCM_TRACE1, "Bridge: online(%s)\n", rsrc);
339 node = cache_lookup(hd, rsrc, CACHE_NO_REFRESH);
371 rcm_log_message(RCM_TRACE1, "Bridge: online succeeded(%s)\n", rsrc);
381 bridge_get_info(rcm_handle_t *hd, char *rsrc, id_ argument
422 bridge_suspend(rcm_handle_t *hd, char *rsrc, id_t id, timespec_t *interval, uint_t flags, char **errorp, rcm_info_t **info) argument
434 bridge_resume(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, char **errorp, rcm_info_t **info) argument
446 bridge_remove(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, char **errorp, rcm_info_t **info) argument
482 bridge_notify_event(rcm_handle_t *hd, char *rsrc, id_t id, uint_t flags, char **errorp, nvlist_t *nvl, rcm_info_t **info) argument
593 cache_lookup(rcm_handle_t *hd, char *rsrc, uint_t options) argument
674 char *rsrc; local
833 char rsrc[RCM_LINK_RESOURCE_MAX]; local
864 char rsrc[RCM_LINK_RESOURCE_MAX]; local
[all...]
H A Dswap_rcm.c683 cache_lookup(char *rsrc) argument
688 if (strcmp(rsrc, sf->path) == 0) {
749 swap_file_alloc(char *rsrc) argument
757 (void) strlcpy(sf->path, rsrc, sizeof (sf->path));
/illumos-gate/usr/src/cmd/fm/modules/sun4/cpumem-diagnosis/
H A Dcmd_cpuerr.c195 nvlist_t *rsrc = NULL; \
204 FM_EREPORT_PAYLOAD_NAME_RESOURCE, &rsrc) != 0) \
207 if ((cpu = cmd_cpu_lookup(hdl, rsrc, class, \
217 FM_EREPORT_DETECTOR, &rsrc); \
220 if (nvlist_lookup_uint8(rsrc, FM_VERSION, &version) != 0 || \
222 nvlist_lookup_uint8(rsrc, FM_FMRI_CPU_MASK, &cpumask) != 0) \
278 nvlist_t *rsrc = NULL; local
329 &rsrc, 0) != 0) {
336 cmd_cpu_create_faultlist(hdl, cc->cc_cp, cpu, ed->ed_fltnm, rsrc, 100);
337 nvlist_free(rsrc);
348 nvlist_t *rsrc = NULL; local
[all...]
H A Dcmd_main.c644 nvlist_t *rsrc, *auth; local
649 if (topo_node_resource(node, &rsrc, &err) < 0)
651 if (nvlist_lookup_nvlist(rsrc, FM_FMRI_AUTHORITY, &auth) < 0) {
652 nvlist_free(rsrc);
656 nvlist_free(rsrc);
/illumos-gate/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/
H A Dcmd_cpu_arch.c257 nvlist_t *asru, nvlist_t *fru, nvlist_t *rsrc)
261 return (fmd_nvl_create_fault(hdl, class, cert, asru, fru, rsrc));
256 cmd_nvl_create_fault(fmd_hdl_t *hdl, const char *class, uint8_t cert, nvlist_t *asru, nvlist_t *fru, nvlist_t *rsrc) argument
H A Dcmd_oplerr.c62 nvlist_t *rsrc = NULL, *asru = NULL, *fru = NULL; local
67 FM_EREPORT_PAYLOAD_NAME_RESOURCE, &rsrc) != 0)
105 if (nvlist_dup(rsrc, &asru, 0) != 0) {
225 "missing rsrc, cpuid %u excluded\n",
282 nvlist_t *rsrc; local
302 &rsrc) != 0) {
306 if (nvlist_lookup_string(rsrc, FM_FMRI_MEM_UNUM, &unum) != 0) {
440 nvlist_t *rsrc = NULL, *asru = NULL, *fru = NULL; local
445 if (nvlist_lookup_nvlist(nvl, MC_OPL_RESOURCE, &rsrc) != 0)
466 if (nvlist_dup(rsrc,
[all...]
/illumos-gate/usr/src/cmd/hotplugd/
H A Dhotplugd_rcm.c43 char *rsrc; member in struct:info_entry
86 static int rsrc2path(const char *rsrc, char *path);
487 if ((usage->hp_name = strdup(entry->rsrc)) == NULL) {
524 const char *rsrc; local
561 if (((rsrc = rcm_info_rsrc(tuple)) == NULL) ||
573 if ((rsrc2path(rsrc, path) == 0) &&
600 if (((entry->rsrc = strdup(rsrc)) == NULL) ||
642 if (entry->rsrc != NULL)
643 free(entry->rsrc);
659 rsrc2path(const char *rsrc, char *path) argument
[all...]
/illumos-gate/usr/src/cmd/prtdiag/i386/
H A Dsmbios.c176 nvlist_t *rsrc = NULL; local
183 if (topo_node_resource(node, &rsrc, &err) < 0)
185 if (topo_fmri_nvl2str(thp, rsrc, &fmri, &err) < 0)
238 nvlist_free(rsrc);
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_method.c370 nvlist_t *spoof, *rsrc = NULL; local
385 if (topo_node_resource(node, &rsrc, &err) != 0 ||
386 topo_fmri_nvl2str(thp, rsrc, &fmri, &err) != 0) {
387 nvlist_free(rsrc);
390 nvlist_free(rsrc);
H A Dsvc.c351 nvlist_t *rsrc, *args; local
363 err |= nvlist_lookup_nvlist(in, TOPO_PROP_RESOURCE, &rsrc);
380 if (nvlist_lookup_string(rsrc, FM_FMRI_SVC_NAME, &svc_name) != 0)
383 (void) nvlist_lookup_string(rsrc, FM_FMRI_SVC_INSTANCE, &svc_inst);
/illumos-gate/usr/src/cmd/mdb/intel/modules/i40e/
H A Di40e.c69 i40e_switch_rsrc_t rsrc; local
74 if (mdb_vread(&rsrc, sizeof (i40e_switch_rsrc_t), raddr) !=
81 if (rsrc.resource_type <= RSRC_MAX) {
82 name = i40e_switch_rsrc_names[rsrc.resource_type];
86 rsrc.resource_type);
89 rsrc.resource_type);
94 LE_16(rsrc.guaranteed), LE_16(rsrc.total), LE_16(rsrc.used),
95 LE_16(rsrc
[all...]
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/smf/
H A Dsmf_response.c347 nvlist_t *defect, *rsrc; local
355 if (!suspect_is_maint_defect(hdl, nvl, &defect, &rsrc))
358 if ((fmristr = sw_smf_svcfmri2str(hdl, rsrc)) == NULL) {
428 nvlist_t *defect, *rsrc; local
442 if (!suspect_is_maint_defect(hdl, nvl, &defect, &rsrc))
445 if ((fmristr = sw_smf_svcfmri2str(hdl, rsrc)) == NULL) {
477 if (fmd_nvl_fmri_service_state(hdl, rsrc) ==
479 shrtfmristr = sw_smf_svcfmri2shortstr(hdl, rsrc);

Completed in 341 milliseconds

1234