/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | filesys_rcm.c | 272 assert(rsrc != NULL); in mnt_offline() 344 assert(rsrc != NULL); in mnt_online() 367 assert(rsrc != NULL); in mnt_getinfo() 421 assert(rsrc != NULL); in mnt_suspend() 465 assert(rsrc != NULL); in mnt_resume() 657 assert(rsrc != NULL); in mnt_remove() 666 "\"%s\"\n", rsrc); in mnt_remove() 1111 if ((strcmp(rsrc, "/") != 0) && (strcmp(rsrc, "/devices") != 0)) { in register_rsrc() 1131 assert(rsrc != NULL); in unregister_rsrc() 1330 is_critical(char *rsrc) in is_critical() argument [all …]
|
H A D | bridge_rcm.c | 413 rsrc, *usagep); in bridge_get_info() 674 char *rsrc; in bridge_update() local 693 if (rsrc == NULL) { in bridge_update() 703 rsrc); in bridge_update() 704 free(rsrc); in bridge_update() 709 rsrc, bridge); in bridge_update() 711 free(rsrc); in bridge_update() 717 node->vc_resource = rsrc; in bridge_update() 835 (void) snprintf(rsrc, sizeof (rsrc), "%s/%u", in bridge_log_err() 864 char rsrc[RCM_LINK_RESOURCE_MAX]; in bridge_configure() local [all …]
|
H A D | vlan_rcm.c | 497 rsrc, *usagep); in vlan_get_info() 851 char *rsrc; in vlan_update() local 870 if (rsrc == NULL) { in vlan_update() 883 rsrc, vlan_attr.dv_vid); in vlan_update() 884 free(rsrc); in vlan_update() 888 rsrc, vlan_attr.dv_vid); in vlan_update() 890 free(rsrc); in vlan_update() 896 node->vc_resource = rsrc; in vlan_update() 915 free(rsrc); in vlan_update() 1075 (void) snprintf(rsrc, sizeof (rsrc), "%s/%u", in vlan_log_err() [all …]
|
H A D | ibpart_rcm.c | 507 rsrc, *usagep); in ibpart_get_info() 867 char *rsrc; in ibpart_update() local 897 if (rsrc == NULL) { in ibpart_update() 911 free(rsrc); in ibpart_update() 917 free(rsrc); in ibpart_update() 923 node->pc_resource = rsrc; in ibpart_update() 943 free(rsrc); in ibpart_update() 1104 (void) snprintf(rsrc, sizeof (rsrc), "%s/%u", in ibpart_log_err() 1211 rsrc); in ibpart_notify_new_ibpart() 1270 rsrc); in ibpart_consumer_notify() [all …]
|
H A D | vnic_rcm.c | 500 rsrc, *usagep); in vnic_get_info() 538 char rsrc[RCM_LINK_RESOURCE_MAX]; in vnic_consumer_remove() local 854 char *rsrc; in vnic_update() local 882 if (rsrc == NULL) { in vnic_update() 895 rsrc, vnic_attr.va_vnic_id); in vnic_update() 896 free(rsrc); in vnic_update() 902 free(rsrc); in vnic_update() 908 node->vc_resource = rsrc; in vnic_update() 927 free(rsrc); in vnic_update() 1087 (void) snprintf(rsrc, sizeof (rsrc), "%s/%u", in vnic_log_err() [all …]
|
H A D | aggr_rcm.c | 613 rsrc, *usagep); in aggr_get_info() 906 char *rsrc; in aggr_port_update() local 915 if (rsrc == NULL) { in aggr_port_update() 928 rsrc, aggr->da_aggrid); in aggr_port_update() 930 free(rsrc); in aggr_port_update() 942 rsrc, aggr->da_aggrid); in aggr_port_update() 946 free(rsrc); in aggr_port_update() 952 node->vc_resource = rsrc; in aggr_port_update() 1196 char rsrc[RCM_LINK_RESOURCE_MAX]; in aggr_consumer_offline() local 1277 rsrc); in aggr_notify_new_aggr() [all …]
|
H A D | network_rcm.c | 284 node = cache_lookup(rsrc); in net_passthru() 287 _("NET: unrecognized resource %s\n"), rsrc); in net_passthru() 374 assert(rsrc != NULL); in net_offline() 395 assert(rsrc != NULL); in net_online() 428 assert(rsrc != NULL); in net_getinfo() 438 node = cache_lookup(rsrc); in net_getinfo() 441 _("NET: unrecognized resource %s\n"), rsrc); in net_getinfo() 502 assert(rsrc != NULL); in net_suspend() 527 assert(rsrc != NULL); in net_resume() 552 assert(rsrc != NULL); in net_remove() [all …]
|
H A D | mpxio_rcm.c | 275 rcm_log_message(RCM_TRACE1, "MPXIO: getinfo(%s)\n", rsrc); in mpxio_getinfo() 282 if ((reg = lookup_phci(rsrc)) == NULL) { in mpxio_getinfo() 303 if (get_affected_clients(hdl, rsrc, CMD_GETINFO, flags, in mpxio_getinfo() 340 rcm_log_message(RCM_TRACE1, "MPXIO: resume(%s)\n", rsrc); in mpxio_resume() 390 rcm_log_message(RCM_TRACE1, "MPXIO: online(%s)\n", rsrc); in mpxio_online() 423 rcm_log_message(RCM_TRACE1, "MPXIO: remove(%s)\n", rsrc); in mpxio_remove() 474 phci.path = rsrc; in get_affected_clients() 510 lookup_phci(char *rsrc) in lookup_phci() argument 515 if (strcmp(reg->phci.path, rsrc) == 0) in lookup_phci() 530 char *rsrc) in detect_client_change() argument [all …]
|
H A D | ip_rcm.c | 406 assert(rsrc != NULL); in ip_offline() 453 rsrc); in ip_offline() 548 assert(rsrc != NULL); in ip_undo_offline() 609 assert(rsrc != NULL); in ip_get_info() 646 rsrc, infostr); in ip_get_info() 662 assert(rsrc != NULL); in ip_suspend() 682 assert(rsrc != NULL); in ip_resume() 1057 char *rsrc; in update_pif() local 1123 if (rsrc == NULL) { in update_pif() 1132 free(rsrc); in update_pif() [all …]
|
H A D | SUNW,vdevices.pl | 91 my $rsrc = shift(@ARGV); 93 print "rcm_log_debug=do_queryremove: '$rsrc'\n"; 100 my $str = `/usr/sbin/fuser $rsrc 2>/dev/null`;
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_rcm.c | 82 (void) fp_rcm_online(rsrc, errstring, flags); in fp_rcm_offline() 246 (void) fp_rcm_resume(rsrc, filter, errstring, in fp_rcm_suspend() 394 if (rsrc == NULL) { in fp_rcm_init() 416 if ((*rsrc_fixed = chop_minor(rsrc)) == NULL) in fp_rcm_init() 491 char *rsrc; in fp_rcm_info_table() local 502 rsrc = gettext("Resource"); in fp_rcm_info_table() 523 if ((w = strlen(rsrc)) > w_rsrc) in fp_rcm_info_table() 554 w = strlen(rsrc); in fp_rcm_info_table() 557 (void) strcat(*table, rsrc); in fp_rcm_info_table() 603 chop_minor(char *rsrc) in chop_minor() argument [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/ |
H A D | cfga_rcm.c | 52 sata_rcm_offline(const char *rsrc, char **errstring, char *rsrc_fixed, in sata_rcm_offline() argument 60 if ((ret = sata_rcm_init(rsrc, flags, errstring, &rflags)) != in sata_rcm_offline() 75 (void) sata_rcm_online(rsrc, errstring, in sata_rcm_offline() 95 if ((ret = sata_rcm_init(rsrc, flags, errstring, NULL)) != in sata_rcm_online() 123 if ((ret = sata_rcm_init(rsrc, flags, errstring, NULL)) != in sata_rcm_remove() 152 if (rsrc == NULL) { in sata_rcm_init() 194 char *rsrc; in sata_rcm_info_table() local 206 rsrc = dgettext(TEXT_DOMAIN, "Resource"); in sata_rcm_info_table() 227 if ((w = strlen(rsrc)) > w_rsrc) { in sata_rcm_info_table() 268 w = strlen(rsrc); in sata_rcm_info_table() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_rcm.c | 52 usb_rcm_offline(const char *rsrc, char **errstring, char *rsrc_fixed, in usb_rcm_offline() argument 62 if ((ret = usb_rcm_init(rsrc, flags, errstring, &rflags)) != in usb_rcm_offline() 83 (void) usb_rcm_online(rsrc, errstring, in usb_rcm_offline() 98 usb_rcm_online(const char *rsrc, char **errstring, char *rsrc_fixed, in usb_rcm_online() argument 130 usb_rcm_remove(const char *rsrc, char **errstring, char *rsrc_fixed, in usb_rcm_remove() argument 169 if (rsrc == NULL) { in usb_rcm_init() 213 char *rsrc; in usb_rcm_info_table() local 227 rsrc = dgettext(TEXT_DOMAIN, "Resource"); in usb_rcm_info_table() 249 if ((w = strlen(rsrc)) > w_rsrc) { in usb_rcm_info_table() 292 w = strlen(rsrc); in usb_rcm_info_table() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_rcm.c | 63 ib_rcm_offline(const char *rsrc, char **errstring, char *rsrc_fixed, in ib_rcm_offline() argument 73 if ((ret = ib_rcm_init(rsrc, flags, errstring, &rflags)) != in ib_rcm_offline() 93 (void) ib_rcm_online(rsrc, errstring, in ib_rcm_offline() 119 ib_rcm_online(const char *rsrc, char **errstring, char *rsrc_fixed, in ib_rcm_online() argument 161 ib_rcm_remove(const char *rsrc, char **errstring, char *rsrc_fixed, in ib_rcm_remove() argument 210 if (rsrc == NULL) { in ib_rcm_init() 261 char *rsrc; in ib_rcm_info_table() local 275 rsrc = dgettext(TEXT_DOMAIN, "Resource"); in ib_rcm_info_table() 296 if ((w = strlen(rsrc)) > w_rsrc) { in ib_rcm_info_table() 338 w = strlen(rsrc); in ib_rcm_info_table() [all …]
|
/illumos-gate/usr/src/cmd/mdb/intel/modules/i40e/ |
H A D | i40e.c | 69 i40e_switch_rsrc_t rsrc; in i40e_switch_rsrcs_dcmd() local 74 if (mdb_vread(&rsrc, sizeof (i40e_switch_rsrc_t), raddr) != in i40e_switch_rsrcs_dcmd() 81 if (rsrc.resource_type <= RSRC_MAX) { in i40e_switch_rsrcs_dcmd() 82 name = i40e_switch_rsrc_names[rsrc.resource_type]; in i40e_switch_rsrcs_dcmd() 86 rsrc.resource_type); in i40e_switch_rsrcs_dcmd() 89 rsrc.resource_type); in i40e_switch_rsrcs_dcmd() 94 LE_16(rsrc.guaranteed), LE_16(rsrc.total), LE_16(rsrc.used), in i40e_switch_rsrcs_dcmd() 95 LE_16(rsrc.total_unalloced)); in i40e_switch_rsrcs_dcmd()
|
/illumos-gate/usr/src/cmd/fm/modules/common/cpumem-retire/ |
H A D | cma_page.c | 93 nvlist_t *rsrc = NULL, *asrucp = NULL, *hcsp; in cma_page_retire() local 95 (void) nvlist_lookup_nvlist(nvl, FM_FAULT_RESOURCE, &rsrc); in cma_page_retire() 118 if (rsrc == NULL || in cma_page_retire() 119 nvlist_lookup_nvlist(rsrc, FM_FMRI_HC_SPECIFIC, &hcsp) != 0 || in cma_page_retire() 141 if (rsrc == NULL || (rc = fmd_nvl_fmri_unretire(hdl, rsrc)) < 0) in cma_page_retire() 152 if (rsrc == NULL || (rc = fmd_nvl_fmri_retire(hdl, rsrc)) < 0) in cma_page_retire() 183 if (rsrc != NULL) in cma_page_retire() 184 (void) nvlist_dup(rsrc, &page->pg_rsrc, 0); in cma_page_retire()
|
H A D | cma_cpu.c | 57 nvlist_t *rsrc; in old_topo_fault() local 64 if (nvlist_lookup_nvlist(nvl, FM_FAULT_RESOURCE, &rsrc) != 0) in old_topo_fault() 71 if (nvlist_lookup_nvlist_array(rsrc, FM_FMRI_HC_LIST, &hcl, &nhcl) in old_topo_fault() 92 nvlist_t *rsrc; in cma_cpu_hc_retire() local 118 if (nvlist_lookup_nvlist(nvl, FM_FAULT_RESOURCE, &rsrc) == 0) { in cma_cpu_hc_retire() 120 err = fmd_nvl_fmri_unretire(hdl, rsrc); in cma_cpu_hc_retire() 123 err = fmd_nvl_fmri_retire(hdl, rsrc); in cma_cpu_hc_retire()
|
/illumos-gate/usr/src/cmd/drd/ |
H A D | drd_rcm.c | 468 drctl_rsrc_t *rsrc; in drd_rcm_offline_cpu_request() local 503 if (rsrc == NULL) { in drd_rcm_offline_cpu_request() 533 if (rsrc == NULL) { in drd_rcm_offline_cpu_request() 833 cpuid_off = strrchr(rsrc, 'u'); in cpu_rsrcstr_to_cpuid() 1021 rsrc->status = DRCTL_STATUS_DENY; in drd_rcm_io_config_request() 1031 rsrc->status = DRCTL_STATUS_ALLOW; in drd_rcm_io_config_request() 1057 char *dev = rsrc->res_dev_path; in drd_rcm_io_unconfig_request() 1114 char *rsrc; in rcm_info_table() local 1144 if ((w = strlen(rsrc)) > w_rsrc) in rcm_info_table() 1171 w = strlen(rsrc); in rcm_info_table() [all …]
|
H A D | drd.h | 62 int (*io_config_request)(drctl_rsrc_t *rsrc, int nrsrc); 63 int (*io_config_notify)(drctl_rsrc_t *rsrc, int nrsrc); 64 int (*io_unconfig_request)(drctl_rsrc_t *rsrc, int nrsrc); 65 int (*io_unconfig_notify)(drctl_rsrc_t *rsrc, int nrsrc);
|
/illumos-gate/usr/src/cmd/lgrpinfo/ |
H A D | lgrpinfo.pl | 247 my ($children, $parents, $cpus, $memstr, $rsrc); 273 $rsrc = lgrp_showresources($lgrp); 280 print "\n\t$rsrc" if $do_rsrc; 474 my ($cpus, $memstr, $rsrc); 487 $rsrc = lgrp_showresources($lgrp) if $do_rsrc; 494 print "\n$prefix$rsrc" if $rsrc; 553 my $rsrc = @resources_cpu || @resources_mem ? "" : gettext("none"); 554 $rsrc = $rsrc_prefix . $rsrc; 559 $rsrc = "$rsrc $rsrc_cpu ($lcpu);" if scalar @resources_cpu; 560 $rsrc = "$rsrc $rsrc_mem ($lmemory)" if scalar @resources_mem; [all …]
|
/illumos-gate/usr/src/cmd/hotplugd/ |
H A D | hotplugd_rcm.c | 43 char *rsrc; member 86 static int rsrc2path(const char *rsrc, char *path); 524 const char *rsrc; in build_table() local 561 if (((rsrc = rcm_info_rsrc(tuple)) == NULL) || in build_table() 573 if ((rsrc2path(rsrc, path) == 0) && in build_table() 600 if (((entry->rsrc = strdup(rsrc)) == NULL) || in build_table() 642 if (entry->rsrc != NULL) in free_table() 643 free(entry->rsrc); in free_table() 659 rsrc2path(const char *rsrc, char *path) in rsrc2path() argument 665 if (strncmp(rsrc, "/dev", 4) == 0) { in rsrc2path() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/sensor-transport/ |
H A D | sensor_transport.c | 85 nvlist_t *nvl, *props, *rsrc, *fru; in st_check_component() local 98 if (topo_node_resource(node, &rsrc, NULL) != 0) { in st_check_component() 108 if ((ret = topo_fmri_present(thp, rsrc, &err)) < 0) { in st_check_component() 111 nvlist_free(rsrc); in st_check_component() 118 nvlist_free(rsrc); in st_check_component() 132 nvlist_free(rsrc); in st_check_component() 141 nvlist_free(rsrc); in st_check_component() 149 nvlist_free(rsrc); in st_check_component() 271 rsrc); in st_check_component() 284 nvlist_free(rsrc); in st_check_component()
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor_mr.c | 164 tavor_rsrc_t *mpt, *mtt, *rsrc; in tavor_mr_register_shared() local 384 mr->mr_rsrcp = rsrc; in tavor_mr_register_shared() 418 tavor_rsrc_free(state, &rsrc); in tavor_mr_register_shared() 466 rsrc = mr->mr_rsrcp; in tavor_mr_deregister() 811 tavor_rsrc_t *mpt, *rsrc; in tavor_mw_alloc() local 901 mw->mr_rsrcp = rsrc; in tavor_mw_alloc() 924 tavor_rsrc_t *mpt, *rsrc; in tavor_mw_free() local 947 rsrc = mw->mr_rsrcp; in tavor_mw_free() 1274 mr->mr_rsrcp = rsrc; in tavor_mr_common_reg() 1336 tavor_rsrc_t *mpt, *rsrc; in tavor_dma_mr_register() local [all …]
|
H A D | tavor_misc.c | 77 tavor_rsrc_t *udav, *rsrc; in tavor_ah_alloc() local 136 tavor_rsrc_free(state, &rsrc); in tavor_ah_alloc() 197 ah->ah_rsrcp = rsrc; in tavor_ah_alloc() 214 tavor_rsrc_free(state, &rsrc); in tavor_ah_alloc() 230 tavor_rsrc_t *udav, *rsrc; in tavor_ah_free() local 244 rsrc = ah->ah_rsrcp; in tavor_ah_free() 277 tavor_rsrc_free(state, &rsrc); in tavor_ah_free() 511 tavor_rsrc_t *rsrc; in tavor_mcg_attach() local 1538 tavor_rsrc_t *rsrc; in tavor_pd_alloc() local 1570 tavor_rsrc_t *rsrc; in tavor_pd_free() local [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon_mr.c | 392 mr->mr_rsrcp = rsrc; in hermon_mr_register_shared() 615 mr->mr_rsrcp = rsrc; in hermon_mr_alloc_fmr() 779 rsrc = mr->mr_rsrcp; in hermon_mr_deregister() 958 rsrc = mr->mr_rsrcp; in hermon_mr_dealloc_fmr() 1227 hermon_rsrc_t *mpt, *rsrc; in hermon_mw_alloc() local 1328 mw->mr_rsrcp = rsrc; in hermon_mw_alloc() 1352 hermon_rsrc_t *mpt, *rsrc; in hermon_mw_free() local 1376 rsrc = mw->mr_rsrcp; in hermon_mw_free() 1763 mr->mr_rsrcp = rsrc; in hermon_mr_common_reg() 1986 mr->mr_rsrcp = rsrc; in hermon_dma_mr_register() [all …]
|