Home
last modified time | relevance | path

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

/Linux-v5.4/fs/
Deventfd.c31 wait_queue_head_t wqh; member
63 spin_lock_irqsave(&ctx->wqh.lock, flags); in eventfd_signal()
67 if (waitqueue_active(&ctx->wqh)) in eventfd_signal()
68 wake_up_locked_poll(&ctx->wqh, EPOLLIN); in eventfd_signal()
69 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in eventfd_signal()
106 wake_up_poll(&ctx->wqh, EPOLLHUP); in eventfd_release()
117 poll_wait(file, &ctx->wqh, wait); in eventfd_poll()
193 spin_lock_irqsave(&ctx->wqh.lock, flags); in eventfd_ctx_remove_wait_queue()
195 __remove_wait_queue(&ctx->wqh, wait); in eventfd_ctx_remove_wait_queue()
196 if (*cnt != 0 && waitqueue_active(&ctx->wqh)) in eventfd_ctx_remove_wait_queue()
[all …]
Dtimerfd.c37 wait_queue_head_t wqh; member
66 spin_lock_irqsave(&ctx->wqh.lock, flags); in timerfd_triggered()
69 wake_up_locked_poll(&ctx->wqh, EPOLLIN); in timerfd_triggered()
70 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in timerfd_triggered()
106 spin_lock_irqsave(&ctx->wqh.lock, flags); in timerfd_clock_was_set()
110 wake_up_locked_poll(&ctx->wqh, EPOLLIN); in timerfd_clock_was_set()
112 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in timerfd_clock_was_set()
236 poll_wait(file, &ctx->wqh, wait); in timerfd_poll()
238 spin_lock_irqsave(&ctx->wqh.lock, flags); in timerfd_poll()
241 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.c1328 wait_queue_head_t *wqh; in __inode_wait_for_writeback() local
1330 wqh = bit_waitqueue(&inode->i_state, __I_SYNC); in __inode_wait_for_writeback()
1333 __wait_on_bit(wqh, &wq, bit_wait, in __inode_wait_for_writeback()
1358 wait_queue_head_t *wqh = bit_waitqueue(&inode->i_state, __I_SYNC); in inode_sleep_on_writeback() local
1361 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in inode_sleep_on_writeback()
1366 finish_wait(wqh, &wait); in inode_sleep_on_writeback()
Duserfaultfd.c947 wait_queue_head_t *wqh) in find_userfault_in() argument
952 lockdep_assert_held(&wqh->lock); in find_userfault_in()
955 if (!waitqueue_active(wqh)) in find_userfault_in()
958 wq = list_last_entry(&wqh->head, typeof(*wq), entry); in find_userfault_in()
/Linux-v5.4/mm/
Dbacking-dev.c1053 wait_queue_head_t *wqh = &congestion_wqh[sync]; in clear_wb_congested() local
1060 if (waitqueue_active(wqh)) in clear_wb_congested()
1061 wake_up(wqh); in clear_wb_congested()
1089 wait_queue_head_t *wqh = &congestion_wqh[sync]; in congestion_wait() local
1091 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in congestion_wait()
1093 finish_wait(wqh, &wait); in congestion_wait()
1120 wait_queue_head_t *wqh = &congestion_wqh[sync]; in wait_iff_congested() local
1138 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in wait_iff_congested()
1140 finish_wait(wqh, &wait); in wait_iff_congested()
Dmemcontrol.c171 wait_queue_head_t *wqh; member
4574 remove_wait_queue(event->wqh, &event->wait); in memcg_event_remove()
4625 wait_queue_head_t *wqh, poll_table *pt) in memcg_event_ptable_queue_proc() argument
4630 event->wqh = wqh; in memcg_event_ptable_queue_proc()
4631 add_wait_queue(wqh, &event->wait); in memcg_event_ptable_queue_proc()
/Linux-v5.4/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.4/kernel/locking/
Drtmutex_common.h156 struct wake_q_head *wqh);
Drtmutex.c1456 struct wake_q_head *wqh)) in rt_mutex_fastunlock() argument
/Linux-v5.4/kernel/
Dseccomp.c102 wait_queue_head_t wqh; member
756 wake_up_poll(&match->notif->wqh, EPOLLIN | EPOLLRDNORM); in seccomp_do_user_notification()
1047 wake_up_poll(&filter->notif->wqh, EPOLLOUT | EPOLLWRNORM); in seccomp_notify_recv()
1178 poll_wait(file, &filter->notif->wqh, poll_tab); in seccomp_notify_poll()
1221 init_waitqueue_head(&filter->notif->wqh); in init_listener()
/Linux-v5.4/drivers/net/usb/
Dkaweth.c1202 wait_queue_head_t wqh; member
1214 wake_up(&awd->wqh); in usb_api_blocking_completion()
1227 init_waitqueue_head(&awd.wqh); in usb_start_wait_urb()
1238 if (!wait_event_timeout(awd.wqh, awd.done, timeout)) { in usb_start_wait_urb()
/Linux-v5.4/drivers/vhost/
Dvhost.c158 static void vhost_poll_func(struct file *file, wait_queue_head_t *wqh, in vhost_poll_func() argument
164 poll->wqh = wqh; in vhost_poll_func()
165 add_wait_queue(wqh, &poll->wait); in vhost_poll_func()
195 poll->wqh = NULL; in vhost_poll_init()
207 if (poll->wqh) in vhost_poll_start()
226 if (poll->wqh) { in vhost_poll_stop()
227 remove_wait_queue(poll->wqh, &poll->wait); in vhost_poll_stop()
228 poll->wqh = NULL; in vhost_poll_stop()
Dvhost.h30 wait_queue_head_t *wqh; member
/Linux-v5.4/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()