/illumos-gate/usr/src/lib/storage/liba5k/common/ |
H A D | lhot.c | 145 *dev_path = '\0'; in l_make_node() 152 *dev_path = '\0'; in l_make_node() 193 dev_path[len] = '\0'; in l_make_node() 221 *dev_path = '\0'; in l_make_node() 227 *dev_path = '\0'; in l_make_node() 539 if (dev_path == NULL) in l_device_present() 546 *dev_path = NULL; in l_device_present() 685 free(*dev_path); in l_device_present() 686 *dev_path = NULL; in l_device_present() 774 dl->dev_path = dev_path; in l_offline_photon() [all …]
|
H A D | mon.c | 934 dl->dev_path = dev_path; in l_dev_pwr_up_down() 998 char dev_path[MAXPATHLEN]; in l_pho_pwr_up_down() local 1057 (void) strcpy(dev_path, in l_pho_pwr_up_down() 1066 dl->dev_path = dev_path; in l_pho_pwr_up_down() 1084 dl1->dev_path); in l_pho_pwr_up_down() 1109 (void) strcpy(dev_path, in l_pho_pwr_up_down() 1118 dl->dev_path = dev_path; in l_pho_pwr_up_down() 1137 dl1->dev_path); in l_pho_pwr_up_down() 3713 seslist->dev_path, in l_get_individual_state() 3721 seslist->dev_path); in l_get_individual_state() [all …]
|
/illumos-gate/usr/src/lib/libpcp/common/ |
H A D | pcp_utils.c | 80 char *pathname = strdup(dev_path); in get_vldc_svc_name() 134 char *pathname = strdup(dev_path); in get_glvc_svc_name() 228 char *dev_path = NULL; in svc_name_to_glvc_dev_path() local 236 return (dev_path); in svc_name_to_glvc_dev_path() 264 if (dev_path != NULL) in svc_name_to_glvc_dev_path() 271 return (dev_path); in svc_name_to_glvc_dev_path() 285 char *dev_path = NULL; in svc_name_to_vldc_dev_path() local 290 return (dev_path); in svc_name_to_vldc_dev_path() 307 (void) strcat(dev_path, vldc_path); in svc_name_to_vldc_dev_path() 315 if (dev_path != NULL) in svc_name_to_vldc_dev_path() [all …]
|
H A D | libpcp.c | 190 char *dev_path; in pcp_init() local 199 dev_path = platsvc_name_to_path(channel_name, &xport_type); in pcp_init() 204 if (NULL == dev_path) in pcp_init() 210 if ((channel_fd = open(dev_path, O_RDWR|O_EXCL)) < 0) { in pcp_init() 211 free(dev_path); in pcp_init() 215 free(dev_path); in pcp_init()
|
/illumos-gate/usr/src/lib/storage/libg_fc/common/ |
H A D | hot.c | 356 if ((devhdl = devctl_device_acquire(dl->dev_path, in g_offline_drive() 361 strerror(errno), dl->dev_path); in g_offline_drive() 396 if ((devhdl = devctl_device_acquire(dl->dev_path, in g_online_drive() 460 if (strstr(dl->dev_path, SCSI_VHCI) == NULL) { in g_forcelip_all() 463 p = strstr(dl->dev_path, SLASH_SES); in g_forcelip_all() 465 p = strstr(dl->dev_path, SLSH_DRV_NAME_SSD); in g_forcelip_all() 467 p = strstr(dl->dev_path, in g_forcelip_all() 475 "invalid.\n Path: %s\n", dl->dev_path); in g_forcelip_all() 479 len = strlen(dl->dev_path) - strlen(p); in g_forcelip_all() 482 len = strlen(dl->dev_path); in g_forcelip_all() [all …]
|
H A D | mpath.c | 90 g_get_lun_str(char *dev_path, char lunstr[], int path_num) in g_get_lun_str() argument 103 if (strstr(dev_path, "/devices") == NULL) { in g_get_lun_str() 108 (void) strcpy(client_path, dev_path + DEV_PREFIX_LEN-1); in g_get_lun_str() 244 if (strncmp(dev_path, SCSI_VHCI, strlen(SCSI_VHCI)) != 0) { in get_pathlist() 256 (void) strcpy(physical_path, dev_path); in get_pathlist() 395 g_get_pathlist(char *dev_path, struct mp_pathlist *pathlist_p) in g_get_pathlist() argument 501 g_get_pathcount(char *dev_path) in g_get_pathcount() argument 514 physical_path = g_get_physical_name(dev_path); in g_get_pathcount() 568 g_failover(char *dev_path, char *path_class) in g_failover() argument 578 if (strstr(dev_path, SCSI_VHCI) == NULL) { in g_failover() [all …]
|
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | bootdev.c | 218 char *dev_path, *prom_path; in i_devname_to_promname() local 235 dev_path = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in i_devname_to_promname() 236 if (resolve_devfs_name(dev_name, dev_path) != 0 || in i_devname_to_promname() 237 strncmp(dev_path, "/devices/", 9) != 0) { in i_devname_to_promname() 238 kmem_free(dev_path, MAXPATHLEN); in i_devname_to_promname() 241 dev_name = dev_path + sizeof ("/devices") - 1; in i_devname_to_promname() 248 kmem_free(dev_path, MAXPATHLEN); in i_devname_to_promname() 260 kmem_free(dev_path, MAXPATHLEN); in i_devname_to_promname() 385 kmem_free(dev_path, MAXPATHLEN); in i_devname_to_promname()
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | hotplug.c | 690 *dev_path = '\0'; in hotplug() 769 *dev_path = '\0'; in hotplug() 1476 dev_path = NULL; in h_pre_remove_dev() 1479 dev_path = hotplug_disk->dlhead->dev_path; in h_pre_remove_dev() 1547 ses_path = dl->dev_path; in h_pre_hotplug_sena() 1660 dev_path = NULL; in h_pre_hotplug_sena() 1662 dev_path = hotplug_dev->dlhead->dev_path; in h_pre_hotplug_sena() 1753 tid, dl->dev_path); in h_post_hotplug_sena() 1756 ses_path = dl->dev_path; in h_post_hotplug_sena() 1866 ses_path = dl->dev_path; in h_post_hotplug_sena() [all …]
|
H A D | diag.c | 115 ml->dev_path) == 0) { in print_ssd_in_box() 148 ml->dev_path) == 0) { in print_ssd_in_box()
|
H A D | g_adm.c | 4222 (void) strcpy(phys_path, mlist->dev_path); in non_encl_fc_disk_display() 4275 (void) strcpy(temppath, mlist->dev_path); in non_encl_fc_disk_display() 4522 mlist->logical_path, mlist->dev_path); in display_disk_info() 4527 mlist->logical_path, mlist->dev_path); in display_disk_info() 5748 adm_print_pathlist(char *dev_path) in adm_print_pathlist() argument 5766 (void) strcpy(temppath, dev_path); in adm_print_pathlist() 5807 if ((err = g_stms_get_path_state(dev_path, in adm_print_pathlist() 5991 if ((dlist->dev_path = (char *)calloc(1, in lun_display() 6201 mlist->logical_path, mlist->dev_path); in display_lun_info() 6202 adm_print_pathlist(mlist->dev_path); in display_lun_info() [all …]
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devfsinfo.c | 1014 (void) strcat(dev_path, ":"); in process_minor_name() 1023 case 0: (void) strcat(dev_path, "q"); in process_minor_name() 1025 case 1: (void) strcat(dev_path, "r"); in process_minor_name() 1027 case 2: (void) strcat(dev_path, "s"); in process_minor_name() 1029 case 3: (void) strcat(dev_path, "t"); in process_minor_name() 1031 case 4: (void) strcat(dev_path, "u"); in process_minor_name() 1033 default: (void) strcat(dev_path, "a"); in process_minor_name() 1329 if (dev_path == NULL) { in devfs_dev_to_prom_names() 1332 if (strlen(dev_path) >= MAXPATHLEN) in devfs_dev_to_prom_names() 1335 if (*dev_path != '/') in devfs_dev_to_prom_names() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | dacf_clnt.c | 72 char *dev_path, *dev_pathp, *drv_mname = NULL; in dacfc_match_create_minor() local 92 dev_path = kmem_alloc(MAXPATHLEN, KM_SLEEP); in dacfc_match_create_minor() 93 dev_pathp = ddi_pathname(dip, dev_path); in dacfc_match_create_minor() 127 kmem_free(dev_path, MAXPATHLEN); in dacfc_match_create_minor() 199 kmem_free(dev_path, MAXPATHLEN); in dacfc_match_create_minor()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
H A D | disk_discovery.c | 50 char *cfgpath, *dev_path, *nac; in disk_discovery() local 81 &dev_path) != 0) { in disk_discovery() 97 (void *)dev_path, &proph); in disk_discovery() 108 cfgpath = device_format_disk_name(dev_path); in disk_discovery()
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | hotplug_mgr.c | 400 disk_split_device_path(const char *dev_path, char *device, int *target) in disk_split_device_path() argument 409 (void) strncpy(device, dev_path, MAXPATHLEN); in disk_split_device_path() 429 disk_match_by_device_path(diskmon_t *disklistp, const char *dev_path) in disk_match_by_device_path() argument 437 dm_assert(dev_path != NULL); in disk_match_by_device_path() 439 if (strncmp(dev_path, DEVICES_PREFIX, 8) == 0) in disk_match_by_device_path() 440 dev_path += 8; in disk_match_by_device_path() 443 disk_split_device_path(dev_path, (char *)&dev_device, &dev_target); in disk_match_by_device_path()
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/tavor/ |
H A D | dapl_tavor_hca.c | 58 static DAT_RETURN dapli_process_tavor_node(char *dev_path, int *hca_idx, 175 dapli_process_tavor_node(char *dev_path, int *hca_idx, int try_blueflame) in dapli_process_tavor_node() argument 205 if (strcmp(dev_path, g_tavor_state[i].hca_path) == 0) { in dapli_process_tavor_node() 213 if (strlen("/devices") + strlen(dev_path) + strlen(":devctl") + 1 > in dapli_process_tavor_node() 217 dev_path); in dapli_process_tavor_node() 222 (void) dapl_os_strcat(path_buf, dev_path); in dapli_process_tavor_node() 224 (void) dapl_os_strcpy(g_tavor_state[idx].hca_path, dev_path); in dapli_process_tavor_node()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcpolicy/ |
H A D | psvcpolicy.c | 232 char dev_path[MAXPATHLEN]; in create_i2c_node() local 254 dev_path); in create_i2c_node() 765 char dev_path[MAXPATHLEN]; in handle_ps_hotplug() local 822 snprintf(dev_path, sizeof (dev_path), in handle_ps_hotplug() 825 delete_i2c_node(dev_path); in handle_ps_hotplug() 827 snprintf(dev_path, sizeof (dev_path), in handle_ps_hotplug() 829 delete_i2c_node(dev_path); in handle_ps_hotplug() 1481 char *dev_path; in light_disk_ok2remove_leds() local 1502 dev_path = di_devfs_path(node); in light_disk_ok2remove_leds() 1508 di_devfs_path_free(dev_path); in light_disk_ok2remove_leds() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_usb.c | 740 char *dev_path = NULL; in set_configuration() local 768 dev_path = usb_get_devicepath(ap_id); in set_configuration() 769 if (dev_path == NULL) { in set_configuration() 778 serial_no : "", dev_path ? dev_path : "", driver ? driver : ""); in set_configuration() 784 if (strncmp(dev_path, "/devices/", 9) == 0) { in set_configuration() 785 tmp = dev_path + 8; in set_configuration() 787 tmp = dev_path; in set_configuration() 807 (void **)&dev_path, &size)) != CFGA_USB_OK) { in set_configuration() 813 if (dev_path) { in set_configuration() 814 free(dev_path); in set_configuration()
|
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fx_subr.c | 272 fab_hc2dev(fmd_hdl_t *hdl, const char *hc_path, char **dev_path) in fab_hc2dev() argument 283 *dev_path = fab_xpath_query(hdl, query); in fab_hc2dev() 287 return (*dev_path != NULL); in fab_hc2dev() 326 fab_hc2dev_nvl(fmd_hdl_t *hdl, nvlist_t *detector, char **dev_path) in fab_hc2dev_nvl() argument 334 (void) fab_hc2dev(hdl, hcl, dev_path); in fab_hc2dev_nvl() 338 return (*dev_path != NULL); in fab_hc2dev_nvl()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/ |
H A D | fcal_leds_thread.c | 377 char *dev_path = di_devfs_path(node); in walk_disks() local 379 if (dev_path == NULL) { in walk_disks() 383 if (memcmp(dev_path, ptr, len) != 0) { in walk_disks() 387 free(dev_path); in walk_disks() 390 free(dev_path); in walk_disks()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_ctl.c | 721 char *dev_path, *dev_end; in quiesce_required() local 752 dev_path = apidp->path + strlen(DEVICES_DIR); in quiesce_required() 753 dev_end = strrchr(dev_path, ':'); in quiesce_required() 761 if (strcmp(child_path, dev_path) == 0) { in quiesce_required() 876 char *dev_path = NULL; in suspend_in_rcm() local 895 if ((dev_path = get_node_path(apidp->path)) == NULL) { in suspend_in_rcm() 901 if ((ret = get_hba_children(bus_path, dev_path, &suspend_list)) in suspend_in_rcm() 917 S_FREE(dev_path); in suspend_in_rcm()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/mpt_sas/ |
H A D | mpt_sas.c | 103 char dev_path[PATH_MAX]; in mdi_info_cb() local 123 *dev_path = '\0'; in mdi_info_cb() 124 if (construct_path((uintptr_t)c.ct_dip, dev_path) != DCMD_OK) in mdi_info_cb() 125 strcpy(dev_path, "unknown"); in mdi_info_cb() 127 mdb_printf("LUN %d: %s\n", mdi_lun, dev_path); in mdi_info_cb()
|
/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pci_ecc.c | 664 char buf[FM_MAX_CLASS], dev_path[MAXPATHLEN], *ptr; in ecc_ereport_post() local 695 ddi_pathname(dip, dev_path); in ecc_ereport_post() 696 ptr = strrchr(dev_path, (int)','); in ecc_ereport_post() 701 fm_fmri_dev_set(detector, FM_DEV_SCHEME_VERSION, NULL, dev_path, in ecc_ereport_post()
|
/illumos-gate/usr/src/cmd/hotplugd/ |
H A D | hotplugd_rcm.c | 62 char dev_path[MAXPATHLEN]; member 403 (void) snprintf(arg->dev_path, MAXPATHLEN, "/devices%s", arg->path); in resource_callback() 423 arg->rsrcs[arg->n_rsrcs] = strdup(arg->dev_path); in resource_callback()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_cs.c | 66 do_devctl_dev_create(apid_t *apidt, char *dev_path, int pathlen, in do_devctl_dev_create() argument 74 *dev_path = '\0'; in do_devctl_dev_create() 124 devctl_get_pathname(dev_hdl, dev_path, pathlen); in do_devctl_dev_create() 681 char dev_path[MAXPATHLEN]; in dev_change_state() local 876 if ((ret = do_devctl_dev_create(apidt, dev_path, MAXPATHLEN, in dev_change_state() 993 (void) do_devctl_dev_create(apidt, dev_path, MAXPATHLEN, in dev_change_state() 1002 (void) do_devctl_dev_create(apidt, dev_path, MAXPATHLEN, in dev_change_state()
|
/illumos-gate/usr/src/uts/common/io/ppm/ |
H A D | ppm_subr.c | 454 ppm_parse_pattern(struct ppm_db **dbpp, char *dev_path) in ppm_parse_pattern() argument 463 (void) strcpy(path, dev_path); in ppm_parse_pattern() 530 ppm_match_devs(char *dev_path, ppm_db_t *dbp) in ppm_match_devs() argument 538 return (strcmp(dev_path, dbp->name)); in ppm_match_devs() 540 (void) strcpy(path, dev_path); in ppm_match_devs()
|