Lines Matching defs:devid
34 #include <devid.h>
3279 * Convert from a devid string to a path.
3284 ddi_devid_t devid;
3290 if (devid_str_decode(devid_str, &devid, &minor) != 0)
3293 ret = devid_deviceid_to_nmlist("/dev", devid, minor, &list);
3296 devid_free(devid);
3312 * Convert from a path to a devid string.
3319 ddi_devid_t devid;
3327 if (devid_get(fd, &devid) == 0) {
3329 ret = devid_str_encode(devid, minor);
3332 devid_free(devid);
3368 * devid, but the path will still refer to the old location. To catch this, we
3369 * first do a path -> devid translation (which is fast for the common case). If
3370 * the devid matches, we're done. If not, we do a reverse devid -> path
3379 char *path, *devid;
3413 nvlist_lookup_string(nv, ZPOOL_CONFIG_DEVID, &devid) == 0) {
3420 strcmp(devid, newdevid) != 0) {
3423 if ((newpath = devid_to_path(devid)) != NULL) {