Lines Matching full: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, in xenbus_watch_path() argument
140 watch->node = path; in xenbus_watch_path()
141 watch->will_handle = will_handle; in xenbus_watch_path()
142 watch->callback = callback; in xenbus_watch_path()
144 err = register_xenbus_watch(watch); in xenbus_watch_path()
147 watch->node = NULL; in xenbus_watch_path()
148 watch->will_handle = NULL; in xenbus_watch_path()
149 watch->callback = NULL; in xenbus_watch_path()
150 xenbus_dev_fatal(dev, err, "adding watch on %s", path); in xenbus_watch_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, in xenbus_watch_pathfmt() argument
194 xenbus_dev_fatal(dev, -ENOMEM, "allocating path for watch"); in xenbus_watch_pathfmt()
197 err = xenbus_watch_path(dev, path, watch, will_handle, callback); in xenbus_watch_pathfmt()