Lines Matching refs:watch
59 * xenbus_watch_path - register a watch
61 * @path: path to watch
62 * @watch: watch to register
65 * Register a @watch on the given path, using the given xenbus_watch structure
68 * @watch->node, and remains the caller's to free. On error, @watch->node will
73 struct xenbus_watch *watch,
79 watch->node = path;
80 watch->callback = callback;
82 err = register_xenbus_watch(watch);
85 watch->node = NULL;
86 watch->callback = NULL;
87 xenbus_dev_fatal(dev, err, "adding watch on %s", path);
96 * xenbus_watch_pathfmt - register a watch on a sprintf-formatted path
98 * @watch: watch to register
100 * @pathfmt: format of path to watch
102 * Register a watch on the given @path, using the given xenbus_watch
105 * (@path/@path2) will be saved as @watch->node, and becomes the caller's to
106 * kfree(). On error, watch->node will be NULL, so the caller has nothing to
111 struct xenbus_watch *watch,
125 xenbus_dev_fatal(dev, -ENOMEM, "allocating path for watch");
128 err = xenbus_watch_path(dev, path, watch, callback);