Lines Matching full: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, in xenbus_watch_path() argument
137 watch->node = path; in xenbus_watch_path()
138 watch->will_handle = will_handle; in xenbus_watch_path()
139 watch->callback = callback; in xenbus_watch_path()
141 err = register_xenbus_watch(watch); in xenbus_watch_path()
144 watch->node = NULL; in xenbus_watch_path()
145 watch->will_handle = NULL; in xenbus_watch_path()
146 watch->callback = NULL; in xenbus_watch_path()
147 xenbus_dev_fatal(dev, err, "adding watch on %s", path); in xenbus_watch_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, in xenbus_watch_pathfmt() argument
187 xenbus_dev_fatal(dev, -ENOMEM, "allocating path for watch"); in xenbus_watch_pathfmt()
190 err = xenbus_watch_path(dev, path, watch, will_handle, callback); in xenbus_watch_pathfmt()