Lines Matching refs:watch
115 * xenbus_watch_path - register a watch
117 * @path: path to watch
118 * @watch: watch to register
121 * Register a @watch on the given path, using the given xenbus_watch structure
124 * @watch->node, and remains the caller's to free. On error, @watch->node will
129 struct xenbus_watch *watch,
137 watch->node = path;
138 watch->will_handle = will_handle;
139 watch->callback = callback;
141 err = register_xenbus_watch(watch);
144 watch->node = NULL;
145 watch->will_handle = NULL;
146 watch->callback = NULL;
147 xenbus_dev_fatal(dev, err, "adding watch on %s", path);
156 * xenbus_watch_pathfmt - register a watch on a sprintf-formatted path
158 * @watch: watch to register
160 * @pathfmt: format of path to watch
162 * Register a watch on the given @path, using the given xenbus_watch
165 * (@path/@path2) will be saved as @watch->node, and becomes the caller's to
166 * kfree(). On error, watch->node will be NULL, so the caller has nothing to
171 struct xenbus_watch *watch,
187 xenbus_dev_fatal(dev, -ENOMEM, "allocating path for watch");
190 err = xenbus_watch_path(dev, path, watch, will_handle, callback);