Lines Matching defs:wlist
183 * @wlist: The watch list to post the event to.
194 void __post_watch_notification(struct watch_list *wlist,
210 hlist_for_each_entry_rcu(watch, &wlist->watchers, list_node) {
454 static int add_one_watch(struct watch *watch, struct watch_list *wlist, struct watch_queue *wqueue)
459 hlist_for_each_entry(w, &wlist->watchers, list_node) {
472 rcu_assign_pointer(watch->watch_list, wlist);
477 hlist_add_head_rcu(&watch->list_node, &wlist->watchers);
484 * @wlist: The watch list to add to
493 int add_watch_to_object(struct watch *watch, struct watch_list *wlist)
502 spin_lock(&wlist->lock);
503 ret = add_one_watch(watch, wlist, wqueue);
504 spin_unlock(&wlist->lock);
515 * @wlist: The watch list to remove from
523 int remove_watch_from_object(struct watch_list *wlist, struct watch_queue *wq,
534 spin_lock(&wlist->lock);
535 hlist_for_each_entry(watch, &wlist->watchers, list_node) {
540 spin_unlock(&wlist->lock);
547 spin_unlock(&wlist->lock);
549 /* We now own the reference on watch that used to belong to wlist. */
571 if (wlist->release_watch) {
574 release_watch = wlist->release_watch;
581 if (all && !hlist_empty(&wlist->watchers))
596 struct watch_list *wlist;
620 wlist = rcu_dereference(watch->watch_list);
621 if (wlist) {
624 spin_lock(&wlist->lock);
634 release_watch = wlist->release_watch;
635 spin_unlock(&wlist->lock);