Searched refs:physpath (Results 1 - 13 of 13) sorted by relevance

/freebsd-10.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dvdev_disk.c323 char *physpath, *minorname; local
325 physpath = kmem_alloc(MAXPATHLEN, KM_SLEEP);
327 if (ddi_dev_pathname(dev, otyp, physpath) == 0 &&
330 strcmp(vd->vdev_physpath, physpath) != 0)) {
333 (void) strlcat(physpath, ":", MAXPATHLEN);
334 (void) strlcat(physpath, minorname, MAXPATHLEN);
335 vd->vdev_physpath = spa_strdup(physpath);
339 kmem_free(physpath, MAXPATHLEN);
H A Dzvol.c872 char *physpath = kmem_zalloc(MAXPATHLEN, KM_SLEEP); local
874 (void) snprintf(physpath, MAXPATHLEN, "%s%u", ZVOL_PSEUDO_DEV,
878 VERIFY(nvlist_add_string(attr, DEV_PHYS_PATH, physpath) == 0);
884 kmem_free(physpath, MAXPATHLEN);
H A Dspa.c3659 * For x86. devpath_list will consist of devid and/or physpath name of
3663 * For Sparc, devpath_list consists the physpath name of the booting device
5739 char *physpath; local
5752 physpath = kmem_zalloc(MAXPATHLEN, KM_SLEEP);
5753 (void) snprintf(physpath, MAXPATHLEN, "/devices%s", vd->vdev_physpath);
5756 VERIFY(nvlist_add_string(attr, DEV_PHYS_PATH, physpath) == 0);
5762 kmem_free(physpath, MAXPATHLEN);
/freebsd-10.0-release/sys/cam/scsi/
H A Dscsi_pass.c234 char *physpath; local
242 physpath = malloc(MAXPATHLEN, M_DEVBUF, M_WAITOK);
248 if (xpt_getattr(physpath, MAXPATHLEN,
249 "GEOM::physpath", periph->path) == 0
250 && strlen(physpath) != 0) {
254 softc->dev, softc->alias_dev, physpath);
271 free(physpath, M_DEVBUF);
H A Dscsi_xpt.c2451 if (device->physpath != NULL) {
2452 free(device->physpath, M_CAMXPT);
2453 device->physpath = NULL;
2459 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT);
2460 if (device->physpath == NULL) {
2464 memcpy(device->physpath, cdai->buf, cdai->bufsiz);
2472 memcpy(cdai->buf, device->physpath, amt);
H A Dscsi_enc_ses.c990 struct sbuf *physpath; member in struct:ses_setphyspath_callback_args
1024 if (strcmp(old_physpath, sbuf_data(args->physpath)) != 0) {
1030 cdai.bufsiz = sbuf_len(args->physpath);
1031 cdai.buf = sbuf_data(args->physpath);
1120 args.physpath= &sb;
1901 * the physpath of any element. This allows us to
/freebsd-10.0-release/sys/geom/
H A Dgeom_dev.c165 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);
267 g_dev_attrchanged(cp, "GEOM::physpath");
461 error = g_io_getattr("GEOM::physpath", c
[all...]
/freebsd-10.0-release/usr.sbin/diskinfo/
H A Ddiskinfo.c62 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.0-release/sys/cam/
H A Dcam_xpt_internal.h99 uint8_t *physpath; /* physical path string form */ member in struct:cam_ed
H A Dcam_xpt.c1122 else if (!strcmp(attr, "GEOM::physpath"))
4613 free(device->physpath, M_CAMXPT);
/freebsd-10.0-release/sys/kern/
H A Dkern_conf.c975 struct cdev *old_alias, const char *physpath)
987 physpath_len = strlen(physpath);
992 if (strncmp("id1,", physpath, 4) == 0) {
993 physpath += 4;
1005 pdev->si_name, physpath, pdev->si_name);
1018 sprintf(devfspath, "%s/%s", physpath, pdev->si_name);
974 make_dev_physpath_alias(int flags, struct cdev **cdev, struct cdev *pdev, struct cdev *old_alias, const char *physpath) argument
/freebsd-10.0-release/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_pool.c2219 vdev_get_one_physpath(nvlist_t *config, char *physpath, size_t physpath_size, argument
2234 rsz = snprintf(physpath + pos, bytes_left, format, tmppath);
2238 /* if physpath was not copied properly, clear it */
2240 physpath[pos] = 0;
2248 vdev_get_physpaths(nvlist_t *nv, char *physpath, size_t phypath_size, argument
2272 if ((ret = vdev_get_one_physpath(nv, physpath,
2288 ret = vdev_get_physpaths(child[i], physpath,
2303 zpool_get_config_physpath(nvlist_t *config, char *physpath, size_t phypath_size) argument
2330 (void) vdev_get_physpaths(child[0], physpath, phypath_size, &rsz,
2345 zpool_get_physpath(zpool_handle_t *zhp, char *physpath, size_ argument
[all...]
/freebsd-10.0-release/sys/cam/ata/
H A Data_xpt.c1687 if (device->physpath != NULL)
1688 free(device->physpath, M_CAMXPT);
1693 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT);
1694 if (device->physpath == NULL) {
1698 memcpy(device->physpath, cdai->buf, cdai->bufsiz);
1706 memcpy(cdai->buf, device->physpath, amt);

Completed in 136 milliseconds