Lines Matching refs:path

40  * Define structures for a path-to-usage lookup table.
49 char *path;
60 char path[MAXPATHLEN];
72 char path[MAXPATHLEN];
86 static int rsrc2path(const char *rsrc, char *path);
326 * RCM info tuples for each path in the snapshot.
372 * compatible list of resource path names. The array has
395 /* Lookup resource path */
396 if (hp_path(node, arg->path, arg->connection) != 0) {
397 log_err("Cannot get RCM resource path.\n");
402 /* Insert "/devices" to path name */
403 (void) snprintf(arg->dev_path, MAXPATHLEN, "/devices%s", arg->path);
406 * Grow resource array to accomodate new /devices path.
428 log_err("Cannot allocate RCM resource path.\n");
461 /* Get path of current node, using buffer provided in 'arg' */
462 if ((rv = hp_path(node, arg->path, arg->connection)) != 0) {
463 log_err("Cannot lookup hotplug path (%s)\n", strerror(rv));
469 lookup.path = arg->path;
526 char path[MAXPATHLEN];
548 * for each device path that has a set of associated RCM
568 * Try to convert the RCM resource name to a hotplug path.
569 * If conversion succeeds and this path differs from the
573 if ((rsrc2path(rsrc, path) == 0) &&
574 ((slot == NULL) || (strcmp(slot->path, path) != 0))) {
576 if ((slot->path = strdup(path)) == NULL) {
615 /* Sort the lookup table by hotplug path */
637 if (table[index].path != NULL)
638 free(table[index].path);
656 * Convert from an RCM resource name to a hotplug device path.
659 rsrc2path(const char *rsrc, char *path)
675 (void) strlcpy(path, &tmp[strlen(S_DEVICES)], MAXPATHLEN);
678 if ((s = strrchr(path, ':')) != NULL)
702 return (strcmp(slot_a->path, slot_b->path));