Lines Matching defs:devpath

128 static int		new_devpath(alias_t *ap, char *devpath);
196 char *devpath;
210 devpath = di_devfs_path(node);
212 if ((bp = find_bus(args, devpath)) != NULL) {
213 di_devfs_path_free((void *) devpath);
226 if (strcmp(devpath, "/") == 0) {
227 di_devfs_path_free((void *) devpath);
232 (void) fprintf(stderr, "INFO: add_bus %s\n", devpath);
240 bp->name = strdup(devpath);
241 di_devfs_path_free((void *) devpath);
266 devpath = di_devfs_path(pnode);
267 bp->pname = strdup(devpath);
268 di_devfs_path_free((void *) devpath);
306 char *devpath;
318 char *devpath;
321 devpath = di_devfs_path(node);
322 (void) snprintf(dev_name, sizeof (dev_name), "%s:%s", devpath,
324 di_devfs_path_free((void *) devpath);
338 devpath = di_devfs_path(node);
339 (void) snprintf(slice_path, sizeof (slice_path), "%s:%s", devpath,
341 di_devfs_path_free((void *) devpath);
357 char *devpath;
362 devpath = di_devfs_path(node);
364 if ((cp = find_controller(args, devpath)) != NULL) {
365 di_devfs_path_free((void *) devpath);
375 di_devfs_path_free((void *) devpath);
376 devpath = di_devfs_path(pnode);
378 if ((cp = find_controller(args, devpath)) != NULL) {
379 di_devfs_path_free((void *) devpath);
390 (void) fprintf(stderr, "INFO: add_controller %s\n", devpath);
398 cp->name = strdup(devpath);
399 di_devfs_path_free((void *) devpath);
495 "INFO: devpath %s\n", devlink_path);
506 * devpath. Do not add it again. new_devpath will
528 char *devpath;
531 devpath = di_devfs_path(node);
532 (void) snprintf(dev_name, sizeof (dev_name), "%s:%s", devpath,
534 di_devfs_path_free((void *) devpath);
611 * this devpath.
623 char *devpath;
631 devpath = di_devfs_path(node);
634 devpath, di_minor_name(minor));
635 di_devfs_path_free((void *) devpath);
1224 (void) fprintf(stderr, "INFO: cluster devpath %s\n",
1737 * Append the new devpath to the end of the devpath list. This is important
1742 new_devpath(alias_t *ap, char *devpath)
1748 * First, search the alias list to be sure that this devpath is
1753 if (libdiskmgt_str_eq(alistp->devpath, devpath)) {
1759 * Otherwise, not found so add this new devpath to the list.
1767 newdp->devpath = strdup(devpath);
1768 if (newdp->devpath == NULL) {
1778 /* append the devpath to the end of the list */
1796 char *devpath;
1810 devpath = di_devfs_path(node);
1818 if (libdiskmgt_str_eq(devpath, cp->paths[i]->name)) {
1828 di_devfs_path_free((void *) devpath);
1839 di_devfs_path_free((void *) devpath);
1843 pp->name = strdup(devpath);
1844 di_devfs_path_free((void *) devpath);