Lines Matching refs:devfspath
859 char *devfspath = di_devfs_path(root); in di_walk_minor() local
860 DPRINTF((DI_INFO, "walking minor nodes under %s\n", devfspath)); in di_walk_minor()
861 di_devfs_path_free(devfspath); in di_walk_minor()
1135 char *full_path, *name, *devfspath; in di_devfs_minor_path() local
1145 devfspath = di_devfs_path(node); in di_devfs_minor_path()
1146 if (devfspath == NULL) in di_devfs_minor_path()
1150 full_path_len = strlen(devfspath) + strlen(name) + 2; in di_devfs_minor_path()
1154 devfspath, name); in di_devfs_minor_path()
1156 di_devfs_path_free(devfspath); in di_devfs_minor_path()
2577 char *devfspath = di_devfs_path(node); in di_walk_hp() local
2578 DPRINTF((DI_INFO, "walking hotplug nodes under %s\n", devfspath)); in di_walk_hp()
2579 di_devfs_path_free(devfspath); in di_walk_hp()
3603 char *devfspath = di_devfs_path(root); in di_walk_link() local
3605 (endpoint == DI_LINK_SRC) ? "src" : "tgt", devfspath)); in di_walk_link()
3606 di_devfs_path_free(devfspath); in di_walk_link()
3668 char *devfspath = di_devfs_path(root); in di_walk_lnode() local
3669 DPRINTF((DI_INFO, "walking lnode data under %s\n", devfspath)); in di_walk_lnode()
3670 di_devfs_path_free(devfspath); in di_walk_lnode()
3699 alias_to_curr(di_node_t anynode, char *devfspath, di_node_t *nodep) in alias_to_curr() argument
3713 if (anynode == DI_NODE_NIL || devfspath == NULL) in alias_to_curr()
3723 if (strncmp(devfspath, alias, strlen(alias)) == 0) { in alias_to_curr()
3724 cp = devfspath + strlen(alias); in alias_to_curr()
3745 di_lookup_node_impl(di_node_t root, char *devfspath) in di_lookup_node_impl() argument
3754 if (*devfspath != '/' || strstr(devfspath, "//")) { in di_lookup_node_impl()
3755 DPRINTF((DI_ERR, "Invalid path: %s\n", devfspath)); in di_lookup_node_impl()
3770 if ((copy = strdup(devfspath)) == NULL) { in di_lookup_node_impl()
3771 DPRINTF((DI_ERR, "strdup failed on: %s\n", devfspath)); in di_lookup_node_impl()
3834 di_lookup_node(di_node_t root, char *devfspath) in di_lookup_node() argument
3839 node = di_lookup_node_impl(root, devfspath); in di_lookup_node()
3845 curr = alias_to_curr(root, devfspath, &node); in di_lookup_node()
3878 di_lookup_path(di_node_t root, char *devfspath) in di_lookup_path() argument
3886 if ((copy = strdup(devfspath)) == NULL) { in di_lookup_path()
3887 DPRINTF((DI_ERR, "strdup failed on: %s\n", devfspath)); in di_lookup_path()
3892 DPRINTF((DI_ERR, "failed to find component: %s\n", devfspath)); in di_lookup_path()
3900 DPRINTF((DI_ERR, "failed to find component: %s\n", devfspath)); in di_lookup_path()
3907 DPRINTF((DI_ERR, "failed to find unit-addr: %s\n", devfspath)); in di_lookup_path()