Home
last modified time | relevance | path

Searched refs:wqh (Results 1 – 15 of 15) sorted by relevance

/Linux-v5.10/fs/
Deventfd.c34 wait_queue_head_t wqh; member
77 spin_lock_irqsave(&ctx->wqh.lock, flags); in eventfd_signal()
82 if (waitqueue_active(&ctx->wqh)) in eventfd_signal()
83 wake_up_locked_poll(&ctx->wqh, EPOLLIN); in eventfd_signal()
85 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in eventfd_signal()
122 wake_up_poll(&ctx->wqh, EPOLLHUP); in eventfd_release()
133 poll_wait(file, &ctx->wqh, wait); in eventfd_poll()
209 spin_lock_irqsave(&ctx->wqh.lock, flags); in eventfd_ctx_remove_wait_queue()
211 __remove_wait_queue(&ctx->wqh, wait); in eventfd_ctx_remove_wait_queue()
212 if (*cnt != 0 && waitqueue_active(&ctx->wqh)) in eventfd_ctx_remove_wait_queue()
[all …]
Dtimerfd.c38 wait_queue_head_t wqh; member
67 spin_lock_irqsave(&ctx->wqh.lock, flags); in timerfd_triggered()
70 wake_up_locked_poll(&ctx->wqh, EPOLLIN); in timerfd_triggered()
71 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in timerfd_triggered()
107 spin_lock_irqsave(&ctx->wqh.lock, flags); in timerfd_clock_was_set()
111 wake_up_locked_poll(&ctx->wqh, EPOLLIN); in timerfd_clock_was_set()
113 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in timerfd_clock_was_set()
239 poll_wait(file, &ctx->wqh, wait); in timerfd_poll()
241 spin_lock_irqsave(&ctx->wqh.lock, flags); in timerfd_poll()
244 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in timerfd_poll()
[all …]
Dsignalfd.c38 wait_queue_head_t *wqh = &sighand->signalfd_wqh; in signalfd_cleanup() local
44 if (likely(!waitqueue_active(wqh))) in signalfd_cleanup()
48 wake_up_poll(wqh, EPOLLHUP | POLLFREE); in signalfd_cleanup()
Dfs-writeback.c1336 wait_queue_head_t *wqh; in __inode_wait_for_writeback() local
1338 wqh = bit_waitqueue(&inode->i_state, __I_SYNC); in __inode_wait_for_writeback()
1341 __wait_on_bit(wqh, &wq, bit_wait, in __inode_wait_for_writeback()
1366 wait_queue_head_t *wqh = bit_waitqueue(&inode->i_state, __I_SYNC); in inode_sleep_on_writeback() local
1369 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in inode_sleep_on_writeback()
1374 finish_wait(wqh, &wait); in inode_sleep_on_writeback()
Duserfaultfd.c903 wait_queue_head_t *wqh) in find_userfault_in() argument
908 lockdep_assert_held(&wqh->lock); in find_userfault_in()
911 if (!waitqueue_active(wqh)) in find_userfault_in()
914 wq = list_last_entry(&wqh->head, typeof(*wq), entry); in find_userfault_in()
/Linux-v5.10/mm/
Dbacking-dev.c921 wait_queue_head_t *wqh = &congestion_wqh[sync]; in clear_bdi_congested() local
928 if (waitqueue_active(wqh)) in clear_bdi_congested()
929 wake_up(wqh); in clear_bdi_congested()
957 wait_queue_head_t *wqh = &congestion_wqh[sync]; in congestion_wait() local
959 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in congestion_wait()
961 finish_wait(wqh, &wait); in congestion_wait()
988 wait_queue_head_t *wqh = &congestion_wqh[sync]; in wait_iff_congested() local
1006 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in wait_iff_congested()
1008 finish_wait(wqh, &wait); in wait_iff_congested()
Dmemcontrol.c163 wait_queue_head_t *wqh; member
4790 remove_wait_queue(event->wqh, &event->wait); in memcg_event_remove()
4841 wait_queue_head_t *wqh, poll_table *pt) in memcg_event_ptable_queue_proc() argument
4846 event->wqh = wqh; in memcg_event_ptable_queue_proc()
4847 add_wait_queue(wqh, &event->wait); in memcg_event_ptable_queue_proc()
/Linux-v5.10/drivers/vfio/
Dvirqfd.c79 wait_queue_head_t *wqh, poll_table *pt) in virqfd_ptable_queue_proc() argument
82 add_wait_queue(wqh, &virqfd->wait); in virqfd_ptable_queue_proc()
/Linux-v5.10/kernel/
Dseccomp.c187 wait_queue_head_t wqh; member
436 if (waitqueue_active(&orig->wqh)) in __seccomp_filter_orphan()
437 wake_up_poll(&orig->wqh, EPOLLHUP); in __seccomp_filter_orphan()
579 init_waitqueue_head(&sfilter->wqh); in seccomp_prepare_filter()
866 wake_up_poll(&match->wqh, EPOLLIN | EPOLLRDNORM); in seccomp_do_user_notification()
1223 wake_up_poll(&filter->wqh, EPOLLOUT | EPOLLWRNORM); in seccomp_notify_recv()
1447 poll_wait(file, &filter->wqh, poll_tab); in seccomp_notify_poll()
/Linux-v5.10/kernel/locking/
Drtmutex_common.h156 struct wake_q_head *wqh);
Drtmutex.c1454 struct wake_q_head *wqh)) in rt_mutex_fastunlock() argument
/Linux-v5.10/drivers/vhost/
Dvhost.c154 static void vhost_poll_func(struct file *file, wait_queue_head_t *wqh, in vhost_poll_func() argument
160 poll->wqh = wqh; in vhost_poll_func()
161 add_wait_queue(wqh, &poll->wait); in vhost_poll_func()
196 poll->wqh = NULL; in vhost_poll_init()
208 if (poll->wqh) in vhost_poll_start()
227 if (poll->wqh) { in vhost_poll_stop()
228 remove_wait_queue(poll->wqh, &poll->wait); in vhost_poll_stop()
229 poll->wqh = NULL; in vhost_poll_stop()
Dvhost.h32 wait_queue_head_t *wqh; member
/Linux-v5.10/virt/kvm/
Deventfd.c234 irqfd_ptable_queue_proc(struct file *file, wait_queue_head_t *wqh, in irqfd_ptable_queue_proc() argument
239 add_wait_queue(wqh, &irqfd->wait); in irqfd_ptable_queue_proc()
/Linux-v5.10/Documentation/RCU/
DlistRCU.rst426 spin_lock_irqsave(&ctx->wqh.lock, flags);
430 wake_up_locked_poll(&ctx->wqh, EPOLLIN);
432 spin_unlock_irqrestore(&ctx->wqh.lock, flags);