Lines Matching defs:path
45 * cannot be accessed at the physical path where it once resided. Discovery
166 "/etc/devices/devid_cache", /* path to cache */
246 * Unpack a device path/nvlist pair to the list of devid cache elements.
262 * check path for a devid
503 * If a devpath is provided it will be used as the path to register the
505 * we duplicate the path string so that it can be cached/freed indepdently
515 char *path, *fullpath;
526 path = kmem_alloc(pathlen, KM_SLEEP);
527 bcopy(devpath, path, pathlen);
540 path = kmem_alloc(pathlen, KM_SLEEP);
541 bcopy(fullpath, path, pathlen);
545 DEVID_LOG_REG(("register", devid, path));
556 if (strcmp(path, np->nvp_devpath) == 0) {
558 "register: %s path match\n", path));
570 kmem_free(path, pathlen);
579 * We're registering an already-cached path
584 "devid %s does not match\n", path));
586 * Replace cached devid for this path
588 * may map to multiple paths but one path
596 "devid register: %s devid match\n", path));
602 kmem_free(path, pathlen);
614 new_nvp->nvp_devpath = path;
648 * Devid-path remains in the cache.
677 char *path = mdi_pi_pathname(pip);
680 path));
815 * Otherwise, use the path instead.
867 char *path, **paths;
904 path = i_ddi_strdup(paths[i], KM_SLEEP);
905 paths[i] = path;
1035 * If given a full path and NULL ua, search for a cache entry
1036 * whose path matches the full path. On a cache hit duplicate the
1040 * Given a path and a non-NULL unit address, search the cache for any entry
1041 * matching "<path>/%@<unit-address>" where '%' is a wildcard meaning
1042 * any node name. The path should not end a '/'. On a cache hit
1051 e_devid_cache_path_to_devid(char *path, char *ua,
1060 if (path == NULL || *path == '\0' || (ua && *ua == '\0') ||
1067 pathlen = strlen(path);
1089 cand = np->nvp_devpath; /* candidate path */
1093 if (strcmp(cand, path) == 0)
1100 * The compare for initial path plus ua and unknown nodename
1103 * Does the initial path component match 'path'?
1105 if (strncmp(path, cand, pathlen) != 0)
1160 devid_log(char *fmt, ddi_devid_t devid, char *path)
1163 if (path) {
1164 cmn_err(CE_CONT, "%s: %s %s\n", fmt, path, devidstr);