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

/freebsd-9.3-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-9.3-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);
271 g_dev_attrchanged(cp, "GEOM::physpath");
465 error = g_io_getattr("GEOM::physpath", c
[all...]
/freebsd-9.3-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-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dvdev_disk.c458 char *physpath, *minorname; local
460 physpath = kmem_alloc(MAXPATHLEN, KM_SLEEP);
462 if (ddi_dev_pathname(dev, otyp, physpath) == 0 &&
465 strcmp(vd->vdev_physpath, physpath) != 0)) {
468 (void) strlcat(physpath, ":", MAXPATHLEN);
469 (void) strlcat(physpath, minorname, MAXPATHLEN);
470 vd->vdev_physpath = spa_strdup(physpath);
474 kmem_free(physpath, MAXPATHLEN);
H A Dzvol.c879 char *physpath = kmem_zalloc(MAXPATHLEN, KM_SLEEP); local
881 (void) snprintf(physpath, MAXPATHLEN, "%s%u", ZVOL_PSEUDO_DEV,
885 VERIFY(nvlist_add_string(attr, DEV_PHYS_PATH, physpath) == 0);
891 kmem_free(physpath, MAXPATHLEN);
H A Dspa.c3768 * For x86. devpath_list will consist of devid and/or physpath name of
3772 * For Sparc, devpath_list consists the physpath name of the booting device
5848 char *physpath; local
5861 physpath = kmem_zalloc(MAXPATHLEN, KM_SLEEP);
5862 (void) snprintf(physpath, MAXPATHLEN, "/devices%s", vd->vdev_physpath);
5865 VERIFY(nvlist_add_string(attr, DEV_PHYS_PATH, physpath) == 0);
5871 kmem_free(physpath, MAXPATHLEN);
/freebsd-9.3-release/sys/cam/
H A Dcam_xpt_internal.h100 uint8_t *physpath; /* physical path string form */ member in struct:cam_ed
H A Dcam_xpt.c1124 else if (!strcmp(attr, "GEOM::physpath"))
4653 free(device->physpath, M_CAMXPT);
/freebsd-9.3-release/sys/kern/
H A Dkern_conf.c968 struct cdev *old_alias, const char *physpath)
980 physpath_len = strlen(physpath);
985 if (strncmp("id1,", physpath, 4) == 0) {
986 physpath += 4;
998 pdev->si_name, physpath, pdev->si_name);
1011 sprintf(devfspath, "%s/%s", physpath, pdev->si_name);
967 make_dev_physpath_alias(int flags, struct cdev **cdev, struct cdev *pdev, struct cdev *old_alias, const char *physpath) argument
/freebsd-9.3-release/cddl/contrib/opensolaris/lib/libzfs/common/
H A Dlibzfs_pool.c2226 vdev_get_one_physpath(nvlist_t *config, char *physpath, size_t physpath_size, argument
2241 rsz = snprintf(physpath + pos, bytes_left, format, tmppath);
2245 /* if physpath was not copied properly, clear it */
2247 physpath[pos] = 0;
2255 vdev_get_physpaths(nvlist_t *nv, char *physpath, size_t phypath_size, argument
2279 if ((ret = vdev_get_one_physpath(nv, physpath,
2295 ret = vdev_get_physpaths(child[i], physpath,
2310 zpool_get_config_physpath(nvlist_t *config, char *physpath, size_t phypath_size) argument
2337 (void) vdev_get_physpaths(child[0], physpath, phypath_size, &rsz,
2352 zpool_get_physpath(zpool_handle_t *zhp, char *physpath, size_ argument
[all...]
/freebsd-9.3-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 230 milliseconds