Lines Matching defs:path

61 hp_init(const char *path, const char *connection, uint_t flags)
68 i_hp_dprintf("hp_init: path=%p, connection=%p, flags=0x%x\n",
69 (void *)path, (void *)connection, flags);
72 if ((path == NULL) || !HP_INIT_FLAGS_VALID(flags)) {
79 if ((args = i_hp_set_args(HP_CMD_GETINFO, path, connection, flags,
137 /* Extract and free base path */
436 * Return the path (and maybe connection name) of a node.
440 hp_path(hp_node_t node, char *path, char *connection)
448 i_hp_dprintf("hp_path: node=%p, path=%p, connection=%p\n", (void *)node,
449 (void *)path, (void *)connection);
451 if ((node == NULL) || (path == NULL) || (connection == NULL)) {
456 (void) memset(path, 0, MAXPATHLEN);
475 /* Ensure the snapshot actually contains a base path */
482 * Construct the path. Start with the base path from the root
486 (void) strlcat(path, root->hp_basepath, MAXPATHLEN);
488 ((s = strrchr(path, '/')) != NULL))
493 (void) strlcat(path, &components[i], MAXPATHLEN);
513 char path[MAXPATHLEN];
556 /* Get path and connection of specified node */
557 if ((rv = hp_path(node, path, connection)) != 0)
561 if ((args = i_hp_set_args(HP_CMD_CHANGESTATE, path, connection, flags,
595 char path[MAXPATHLEN];
616 /* Get path and connection of specified node */
617 if ((rv = hp_path(node, path, connection)) != 0)
621 if ((args = i_hp_set_args(HP_CMD_SETPRIVATE, path, connection, 0,
655 char path[MAXPATHLEN];
676 /* Get path and connection of specified node */
677 if ((rv = hp_path(node, path, connection)) != 0)
681 if ((args = i_hp_set_args(HP_CMD_GETPRIVATE, path, connection, 0,
841 /* Store the base path in each root node */
1279 i_hp_set_args(hp_cmd_t cmd, const char *path, const char *connection,
1290 (nvlist_add_string(args, HPD_PATH, path) != 0)) {