Lines Matching refs:watch_queue
7 * See Documentation/core-api/watch_queue.rst
27 #include <linux/watch_queue.h>
42 static inline bool lock_wqueue(struct watch_queue *wqueue)
52 static inline void unlock_wqueue(struct watch_queue *wqueue)
60 struct watch_queue *wqueue = (struct watch_queue *)buf->private;
94 * watch_queue lock held, which guarantees that the pipe
97 static bool post_one_notification(struct watch_queue *wqueue,
200 struct watch_queue *wqueue;
240 struct watch_queue *wqueue = pipe->watch_queue;
314 struct watch_queue *wqueue = pipe->watch_queue;
388 struct watch_queue *wqueue =
389 container_of(kref, struct watch_queue, usage);
408 void put_watch_queue(struct watch_queue *wqueue)
446 void init_watch(struct watch *watch, struct watch_queue *wqueue)
454 static int add_one_watch(struct watch *watch, struct watch_list *wlist, struct watch_queue *wqueue)
460 struct watch_queue *wq = rcu_access_pointer(w->queue);
495 struct watch_queue *wqueue;
523 int remove_watch_from_object(struct watch_list *wlist, struct watch_queue *wq,
527 struct watch_queue *wqueue;
594 void watch_queue_clear(struct watch_queue *wqueue)
662 struct watch_queue *get_watch_queue(int fd)
665 struct watch_queue *wqueue = ERR_PTR(-EINVAL);
671 if (pipe && pipe->watch_queue) {
672 wqueue = pipe->watch_queue;
687 struct watch_queue *wqueue;
698 pipe->watch_queue = wqueue;