Lines Matching refs:path
117 * @path: path to watch
121 * Register a @watch on the given path, using the given xenbus_watch structure
123 * success, or -errno on error. On success, the given @path will be saved as
128 int xenbus_watch_path(struct xenbus_device *dev, const char *path,
137 watch->node = path;
147 xenbus_dev_fatal(dev, err, "adding watch on %s", path);
156 * xenbus_watch_pathfmt - register a watch on a sprintf-formatted path
160 * @pathfmt: format of path to watch
162 * Register a watch on the given @path, using the given xenbus_watch
164 * Return 0 on success, or -errno on error. On success, the watched path
165 * (@path/@path2) will be saved as @watch->node, and becomes the caller's to
180 char *path;
183 path = kvasprintf(GFP_NOIO | __GFP_HIGH, pathfmt, ap);
186 if (!path) {
187 xenbus_dev_fatal(dev, -ENOMEM, "allocating path for watch");
190 err = xenbus_watch_path(dev, path, watch, will_handle, callback);
193 kfree(path);
878 * @path: path for driver
880 * Return the state of the driver rooted at the given store path, or
883 enum xenbus_state xenbus_read_driver_state(const char *path)
886 int err = xenbus_gather(XBT_NIL, path, "state", "%d", &result, NULL);