/freebsd-10.1-release/sys/cam/scsi/ |
H A D | scsi_pass.c | 229 char *physpath; local 237 physpath = malloc(MAXPATHLEN, M_DEVBUF, M_WAITOK); 243 if (xpt_getattr(physpath, MAXPATHLEN, 244 "GEOM::physpath", periph->path) == 0 245 && strlen(physpath) != 0) { 249 softc->dev, softc->alias_dev, physpath); 266 free(physpath, M_DEVBUF);
|
H A D | scsi_xpt.c | 2484 if (device->physpath != NULL) { 2485 free(device->physpath, M_CAMXPT); 2486 device->physpath = NULL; 2492 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT); 2493 if (device->physpath == NULL) { 2497 memcpy(device->physpath, cdai->buf, cdai->bufsiz); 2505 memcpy(cdai->buf, device->physpath, amt);
|
H A D | scsi_enc_ses.c | 983 struct sbuf *physpath; member in struct:ses_setphyspath_callback_args 1017 if (strcmp(old_physpath, sbuf_data(args->physpath)) != 0) { 1023 cdai.bufsiz = sbuf_len(args->physpath); 1024 cdai.buf = sbuf_data(args->physpath); 1113 args.physpath= &sb; 1894 * the physpath of any element. This allows us to
|
/freebsd-10.1-release/sys/geom/ |
H A D | geom_dev.c | 165 if (strcmp(attr, "GEOM::physpath") != 0) 169 char *physpath; local 173 physpath = g_malloc(physpath_len, M_WAITOK|M_ZERO); 175 g_io_getattr("GEOM::physpath", cp, &physpath_len, physpath); 177 if (error == 0 && strlen(physpath) != 0) { 185 dev, old_alias_dev, physpath); 190 g_free(physpath); 268 g_dev_attrchanged(cp, "GEOM::physpath"); 462 error = g_io_getattr("GEOM::physpath", c [all...] |
/freebsd-10.1-release/usr.sbin/diskinfo/ |
H A D | diskinfo.c | 62 char buf[BUFSIZ], ident[DISK_IDENT_SIZE], physpath[MAXPATHLEN]; local 156 if (ioctl(fd, DIOCGPHYSPATH, physpath) == 0) 157 printf("\t%-12s\t# Physical path\n", physpath);
|
/freebsd-10.1-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | vdev_disk.c | 475 char *physpath, *minorname; local 477 physpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); 479 if (ddi_dev_pathname(dev, otyp, physpath) == 0 && 482 strcmp(vd->vdev_physpath, physpath) != 0)) { 485 (void) strlcat(physpath, ":", MAXPATHLEN); 486 (void) strlcat(physpath, minorname, MAXPATHLEN); 487 vd->vdev_physpath = spa_strdup(physpath); 491 kmem_free(physpath, MAXPATHLEN);
|
H A D | zvol.c | 957 char *physpath = kmem_zalloc(MAXPATHLEN, KM_SLEEP); local 959 (void) snprintf(physpath, MAXPATHLEN, "%s%u", ZVOL_PSEUDO_DEV, 963 VERIFY(nvlist_add_string(attr, DEV_PHYS_PATH, physpath) == 0); 969 kmem_free(physpath, MAXPATHLEN);
|
H A D | spa.c | 3820 * For x86. devpath_list will consist of devid and/or physpath name of 3824 * For Sparc, devpath_list consists the physpath name of the booting device 5895 char *physpath; local 5908 physpath = kmem_zalloc(MAXPATHLEN, KM_SLEEP); 5909 (void) snprintf(physpath, MAXPATHLEN, "/devices%s", vd->vdev_physpath); 5912 VERIFY(nvlist_add_string(attr, DEV_PHYS_PATH, physpath) == 0); 5918 kmem_free(physpath, MAXPATHLEN);
|
/freebsd-10.1-release/sys/cam/ |
H A D | cam_xpt_internal.h | 87 uint8_t *physpath; /* physical path string form */ member in struct:cam_ed
|
H A D | cam_xpt.c | 1106 else if (!strcmp(attr, "GEOM::physpath")) 4787 free(device->physpath, M_CAMXPT);
|
/freebsd-10.1-release/sys/kern/ |
H A D | kern_conf.c | 973 struct cdev *old_alias, const char *physpath) 985 physpath_len = strlen(physpath); 990 if (strncmp("id1,", physpath, 4) == 0) { 991 physpath += 4; 1003 pdev->si_name, physpath, pdev->si_name); 1016 sprintf(devfspath, "%s/%s", physpath, pdev->si_name); 972 make_dev_physpath_alias(int flags, struct cdev **cdev, struct cdev *pdev, struct cdev *old_alias, const char *physpath) argument
|
/freebsd-10.1-release/cddl/contrib/opensolaris/lib/libzfs/common/ |
H A D | libzfs_pool.c | 2235 vdev_get_one_physpath(nvlist_t *config, char *physpath, size_t physpath_size, argument 2250 rsz = snprintf(physpath + pos, bytes_left, format, tmppath); 2254 /* if physpath was not copied properly, clear it */ 2256 physpath[pos] = 0; 2264 vdev_get_physpaths(nvlist_t *nv, char *physpath, size_t phypath_size, argument 2288 if ((ret = vdev_get_one_physpath(nv, physpath, 2304 ret = vdev_get_physpaths(child[i], physpath, 2319 zpool_get_config_physpath(nvlist_t *config, char *physpath, size_t phypath_size) argument 2346 (void) vdev_get_physpaths(child[0], physpath, phypath_size, &rsz, 2361 zpool_get_physpath(zpool_handle_t *zhp, char *physpath, size_ argument [all...] |
/freebsd-10.1-release/sys/cam/ata/ |
H A D | ata_xpt.c | 1684 if (device->physpath != NULL) 1685 free(device->physpath, M_CAMXPT); 1690 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT); 1691 if (device->physpath == NULL) { 1695 memcpy(device->physpath, cdai->buf, cdai->bufsiz); 1703 memcpy(cdai->buf, device->physpath, amt);
|