/illumos-gate/usr/src/lib/storage/liba5k/common/ |
H A D | lhot.c | 113 * dev_path - pointer to the device path of type dtype and with tid 121 l_make_node(char *ses_path, int tid, char *dev_path, argument 132 if ((ses_path == NULL) || (dev_path == NULL) || (map == NULL)) { 145 *dev_path = '\0'; 152 *dev_path = '\0'; 173 (void) strcpy(dev_path, 192 (void) strncpy(dev_path, ses_path, len); 193 dev_path[len] = '\0'; 194 (void) strcat(dev_path, ssd); 221 *dev_path 528 l_device_present(char *ses_path, int tid, gfc_map_t *map, int verbose_flag, char **dev_path) argument 734 char *dev_path, ses_path[MAXPATHLEN]; local [all...] |
H A D | mon.c | 803 char ses_path[MAXPATHLEN], dev_path[MAXPATHLEN]; local 863 (void) strcpy(dev_path, path_struct->p_physical_path); 934 dl->dev_path = dev_path; 935 if ((err = g_get_multipath(dev_path, 944 if ((devhdl = devctl_device_acquire(dl1->dev_path, 949 strerror(errno), dl1->dev_path); 998 char dev_path[MAXPATHLEN]; local 1056 (void) memset(dev_path, 0, MAXPATHLEN); 1057 (void) strcpy(dev_path, [all...] |
/illumos-gate/usr/src/lib/libpcp/common/ |
H A D | pcp_utils.c | 69 * Extract from dev_path the "service name" portion. 77 get_vldc_svc_name(char *dev_path, char *service, char **match) argument 80 char *pathname = strdup(dev_path); 123 * Extract from dev_path the "service name" portion. 131 get_glvc_svc_name(char *dev_path, char *service, char **match) argument 134 char *pathname = strdup(dev_path); 228 char *dev_path = NULL; local 236 return (dev_path); 252 dev_path = malloc(strlen(glvc_path) + 254 (void) strcpy(dev_path, DEVICES_DI 285 char *dev_path = NULL; local [all...] |
H A D | libpcp.c | 192 char *dev_path; local 201 dev_path = platsvc_name_to_path(channel_name, &xport_type); 206 if (NULL == dev_path) 212 if ((channel_fd = open(dev_path, O_RDWR|O_EXCL)) < 0) { 213 free(dev_path); 217 free(dev_path);
|
/illumos-gate/usr/src/lib/storage/libg_fc/common/ |
H A D | hot.c | 356 if ((devhdl = devctl_device_acquire(dl->dev_path, 361 strerror(errno), dl->dev_path); 396 if ((devhdl = devctl_device_acquire(dl->dev_path, 460 if (strstr(dl->dev_path, SCSI_VHCI) == NULL) { 463 p = strstr(dl->dev_path, SLASH_SES); 465 p = strstr(dl->dev_path, SLSH_DRV_NAME_SSD); 467 p = strstr(dl->dev_path, 475 "invalid.\n Path: %s\n", dl->dev_path); 479 len = strlen(dl->dev_path) - strlen(p); 482 len = strlen(dl->dev_path); [all...] |
H A D | mpath.c | 90 g_get_lun_str(char *dev_path, char lunstr[], int path_num) argument 103 if (strstr(dev_path, "/devices") == NULL) { 108 (void) strcpy(client_path, dev_path + DEV_PREFIX_LEN-1); 231 get_pathlist(char *dev_path, sv_iocdata_t *ioc, int *num_paths_to_copy) argument 244 if (strncmp(dev_path, SCSI_VHCI, 246 if ((physical_path = g_get_physical_name(dev_path)) == NULL) { 258 (void) strcpy(physical_path, dev_path); 388 * dev_path client device path 397 g_get_pathlist(char *dev_path, struct mp_pathlist *pathlist_p) argument 416 if ((caller_ret = get_pathlist(dev_path, 503 g_get_pathcount(char *dev_path) argument 570 g_failover(char *dev_path, char *path_class) argument [all...] |
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | bootdev.c | 214 char *dev_path, *prom_path; local 232 dev_path = kmem_zalloc(MAXPATHLEN, KM_SLEEP); 233 if (resolve_devfs_name(dev_name, dev_path) != 0 || 234 strncmp(dev_path, "/devices/", 9) != 0) { 235 kmem_free(dev_path, MAXPATHLEN); 238 dev_name = dev_path + sizeof ("/devices") - 1; 245 kmem_free(dev_path, MAXPATHLEN); 257 kmem_free(dev_path, MAXPATHLEN); 382 kmem_free(dev_path, MAXPATHLEN);
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
H A D | disk_discovery.c | 52 char *cfgpath, *dev_path, *nac; local 83 &dev_path) != 0) { 99 (void *)dev_path, &proph); 110 cfgpath = device_format_disk_name(dev_path);
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | hotplug.c | 487 char ses_path[MAXPATHLEN], dev_path[MAXPATHLEN]; local 687 * set dev_path to NULL, 690 *dev_path = NULL; 714 (void) strcpy(dev_path, path_phys); 715 if ((err = g_get_wwn(dev_path, port_wwn, 769 *dev_path = '\0'; 825 l_make_node(ses_path, tid, dev_path, &map, 0); 874 * dev_path is NULL when removing a whole encloser. We 880 if ((err = g_get_multipath(dev_path, 1472 char *dev_path, device_nam local 1529 char *ses_path, *dev_path, code; local 1728 char *ses_path, *dev_path = NULL, device_name[MAXNAMELEN]; local 2198 char device_name[MAXNAMELEN], *dev_path = NULL; local [all...] |
H A D | diag.c | 115 ml->dev_path) == 0) { 148 ml->dev_path) == 0) {
|
H A D | g_adm.c | 4222 (void) strcpy(phys_path, mlist->dev_path); 4233 if ((err = g_get_wwn(mlist->dev_path, port_wwn, node_wwn, 4235 (void) print_errString(err, mlist->dev_path); 4271 if ((strstr(mlist->dev_path, SCSI_VHCI) != NULL) && 4275 (void) strcpy(temppath, mlist->dev_path); 4520 if (strstr(mlist->dev_path, SCSI_VHCI) != NULL) { 4522 mlist->logical_path, mlist->dev_path); 4523 (void) adm_print_pathlist(mlist->dev_path); 4527 mlist->logical_path, mlist->dev_path); 5748 adm_print_pathlist(char *dev_path) argument [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | dacf_clnt.c | 74 char *dev_path, *dev_pathp, *drv_mname = NULL; local 94 dev_path = kmem_alloc(MAXPATHLEN, KM_SLEEP); 95 dev_pathp = ddi_pathname(dip, dev_path); 129 kmem_free(dev_path, MAXPATHLEN); 201 kmem_free(dev_path, MAXPATHLEN);
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
H A D | pi_subr.c | 162 char *dev_path[MAX_DIPATH_DEPTH] = { NULL }; local 188 dev_path[j] = (char *)topo_mod_alloc(mod, len); 189 rv = snprintf(dev_path[j], len, "/@%s", bus_addr[i]); 200 path = strcpy(path, dev_path[0]); 203 path = strncat(path, dev_path[i], strlen(dev_path[i]) + 1); 210 if (dev_path[i] != NULL) { 211 topo_mod_strfree(mod, dev_path[i]); 598 char *dev_path[MAX_PATH_DEPTH] = { NULL }; local 648 dev_path[ [all...] |
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devfsinfo.c | 129 static int process_minor_name(char *dev_path, const char *default_root); 141 static int devfs_prom_to_dev_name(char *prom_path, char *dev_path); 142 static int devfs_dev_to_prom_names(char *dev_path, char *prom_path, size_t len); 984 process_minor_name(char *dev_path, const char *root) argument 996 (void) snprintf(path, sizeof (path), "%s%s%s", root, DEVICES, dev_path); 1012 if ((cp = strrchr(dev_path, '/')) != NULL) { 1014 (void) strcat(dev_path, ":"); 1015 (void) strcat(dev_path, default_minor_name); 1017 (void) strcat(dev_path, default_minor_name); 1023 case 0: (void) strcat(dev_path, " 1318 devfs_dev_to_prom_names(char *dev_path, char *prom_path, size_t len) argument 1386 devfs_dev_to_prom_name(char *dev_path, char *prom_path) argument 1573 devfs_prom_to_dev_name(char *prom_path, char *dev_path) argument [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcpolicy/ |
H A D | psvcpolicy.c | 234 char dev_path[MAXPATHLEN]; local 251 if (devctl_get_pathname(dev_hdl, dev_path, MAXPATHLEN) == NULL) 256 dev_path); 767 char dev_path[MAXPATHLEN]; local 824 snprintf(dev_path, sizeof (dev_path), 827 delete_i2c_node(dev_path); 829 snprintf(dev_path, sizeof (dev_path), 831 delete_i2c_node(dev_path); 1483 char *dev_path; local [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_usb.c | 739 char *dev_path = NULL; local 767 dev_path = usb_get_devicepath(ap_id); 768 if (dev_path == NULL) { 777 serial_no : "", dev_path ? dev_path : "", driver ? driver : ""); 783 if (strncmp(dev_path, "/devices/", 9) == 0) { 784 tmp = dev_path + 8; 786 tmp = dev_path; 806 (void **)&dev_path, &size)) != CFGA_USB_OK) { 812 if (dev_path) { [all...] |
/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) argument 409 (void) strncpy(device, dev_path, MAXPATHLEN); 429 disk_match_by_device_path(diskmon_t *disklistp, const char *dev_path) argument 437 dm_assert(dev_path != NULL); 439 if (strncmp(dev_path, DEVICES_PREFIX, 8) == 0) 440 dev_path += 8; 442 /* pare dev_path into device and target components */ 443 disk_split_device_path(dev_path, (char *)&dev_device, &dev_target);
|
/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, 174 dapli_process_tavor_node(char *dev_path, int *hca_idx, int try_blueflame) argument 204 if (strcmp(dev_path, g_tavor_state[i].hca_path) == 0) { 212 if (strlen("/devices") + strlen(dev_path) + strlen(":devctl") + 1 > 216 dev_path); 221 (void) dapl_os_strcat(path_buf, dev_path); 223 (void) dapl_os_strcpy(g_tavor_state[idx].hca_path, dev_path);
|
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/ |
H A D | cfga_ctl.c | 721 char *dev_path, *dev_end; local 752 dev_path = apidp->path + strlen(DEVICES_DIR); 753 dev_end = strrchr(dev_path, ':'); 761 if (strcmp(child_path, dev_path) == 0) { 876 char *dev_path = NULL; local 890 * The dev_path is already initialized to NULL. If the AP Id 891 * path differs from the HBA path, then the dev_path should 895 if ((dev_path = get_node_path(apidp->path)) == NULL) { 901 if ((ret = get_hba_children(bus_path, dev_path, &suspend_list)) 917 S_FREE(dev_path); [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/ |
H A D | fcal_leds_thread.c | 379 char *dev_path = di_devfs_path(node); local 381 if (dev_path == NULL) { 385 if (memcmp(dev_path, ptr, len) != 0) { 389 free(dev_path); 392 free(dev_path);
|
/illumos-gate/usr/src/cmd/hotplugd/ |
H A D | hotplugd_rcm.c | 62 char dev_path[MAXPATHLEN]; member in struct:__anon644 403 (void) snprintf(arg->dev_path, MAXPATHLEN, "/devices%s", arg->path); 423 arg->rsrcs[arg->n_rsrcs] = strdup(arg->dev_path);
|
/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pci_ecc.c | 664 char buf[FM_MAX_CLASS], dev_path[MAXPATHLEN], *ptr; local 695 ddi_pathname(dip, dev_path); 696 ptr = strrchr(dev_path, (int)','); 701 fm_fmri_dev_set(detector, FM_DEV_SCHEME_VERSION, NULL, dev_path,
|
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fx_subr.c | 268 fab_hc2dev(fmd_hdl_t *hdl, const char *hc_path, char **dev_path) argument 279 *dev_path = fab_xpath_query(hdl, query); 283 return (*dev_path != NULL); 322 fab_hc2dev_nvl(fmd_hdl_t *hdl, nvlist_t *detector, char **dev_path) argument 330 (void) fab_hc2dev(hdl, hcl, dev_path); 334 return (*dev_path != NULL);
|
/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, argument 74 *dev_path = NULL; 124 devctl_get_pathname(dev_hdl, dev_path, pathlen); 681 char dev_path[MAXPATHLEN]; local 876 if ((ret = do_devctl_dev_create(apidt, dev_path, MAXPATHLEN, 993 (void) do_devctl_dev_create(apidt, dev_path, MAXPATHLEN, 1002 (void) do_devctl_dev_create(apidt, dev_path, MAXPATHLEN,
|
/illumos-gate/usr/src/cmd/mdb/common/modules/mpt_sas/ |
H A D | mpt_sas.c | 102 char dev_path[PATH_MAX]; local 122 *dev_path = NULL; 123 if (construct_path((uintptr_t)c.ct_dip, dev_path) != DCMD_OK) 124 strcpy(dev_path, "unknown"); 126 mdb_printf("LUN %d: %s\n", mdi_lun, dev_path);
|