Lines Matching defs:path
64 * Build a hotplug information snapshot. The path, connection,
68 getinfo(const char *path, const char *connection, uint_t flags, hp_node_t *retp)
75 if ((path == NULL) || (retp == NULL))
78 dprintf("getinfo: path=%s, connection=%s, flags=0x%x\n", path,
81 /* Allocate the base path */
82 if ((basepath = base_path(path)) == NULL)
110 /* Store a pointer to the base path in each root node */
131 * When path is set to "/", the results need to be limited only to
136 copy_devinfo(const char *path, const char *connection, uint_t flags,
144 if ((di_root = di_init(path, DINFOSUBTREE | DINFOHP)) == DI_NODE_NIL)
148 if (strcmp(path, "/") == 0) {
368 * Normalize the base path of a hotplug information snapshot.
372 base_path(const char *path)
379 if (strncmp(path, S_DEVICES, devices_len) == 0)
380 base_path = strdup(&path[devices_len]);
382 base_path = strdup(path);