Lines Matching refs:watch
115 * xenbus_watch_path - register a watch
117 * @path: path to watch
118 * @watch: watch to register
122 * Register a @watch on the given path, using the given xenbus_watch structure
125 * On success, the given @path will be saved as @watch->node, and remains the
126 * caller's to free. On error, @watch->node will be NULL, the device will
132 struct xenbus_watch *watch,
140 watch->node = path;
141 watch->will_handle = will_handle;
142 watch->callback = callback;
144 err = register_xenbus_watch(watch);
147 watch->node = NULL;
148 watch->will_handle = NULL;
149 watch->callback = NULL;
150 xenbus_dev_fatal(dev, err, "adding watch on %s", path);
159 * xenbus_watch_pathfmt - register a watch on a sprintf-formatted path
161 * @watch: watch to register
164 * @pathfmt: format of path to watch
166 * Register a watch on the given @path, using the given xenbus_watch
170 * as @watch->node, and becomes the caller's to kfree().
171 * On error, watch->node will be NULL, so the caller has nothing to
178 struct xenbus_watch *watch,
194 xenbus_dev_fatal(dev, -ENOMEM, "allocating path for watch");
197 err = xenbus_watch_path(dev, path, watch, will_handle, callback);