Home
last modified time | relevance | path

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

/Linux-v4.19/fs/
Deventfd.c27 wait_queue_head_t wqh; member
58 spin_lock_irqsave(&ctx->wqh.lock, flags); in eventfd_signal()
62 if (waitqueue_active(&ctx->wqh)) in eventfd_signal()
63 wake_up_locked_poll(&ctx->wqh, EPOLLIN); in eventfd_signal()
64 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in eventfd_signal()
99 wake_up_poll(&ctx->wqh, EPOLLHUP); in eventfd_release()
110 poll_wait(file, &ctx->wqh, wait); in eventfd_poll()
186 spin_lock_irqsave(&ctx->wqh.lock, flags); in eventfd_ctx_remove_wait_queue()
188 __remove_wait_queue(&ctx->wqh, wait); in eventfd_ctx_remove_wait_queue()
189 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.c1199 wait_queue_head_t *wqh; in __inode_wait_for_writeback() local
1201 wqh = bit_waitqueue(&inode->i_state, __I_SYNC); in __inode_wait_for_writeback()
1204 __wait_on_bit(wqh, &wq, bit_wait, in __inode_wait_for_writeback()
1229 wait_queue_head_t *wqh = bit_waitqueue(&inode->i_state, __I_SYNC); in inode_sleep_on_writeback() local
1232 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in inode_sleep_on_writeback()
1237 finish_wait(wqh, &wait); in inode_sleep_on_writeback()
Duserfaultfd.c924 wait_queue_head_t *wqh) in find_userfault_in() argument
929 VM_BUG_ON(!spin_is_locked(&wqh->lock)); in find_userfault_in()
932 if (!waitqueue_active(wqh)) in find_userfault_in()
935 wq = list_last_entry(&wqh->head, typeof(*wq), entry); in find_userfault_in()
/Linux-v4.19/mm/
Dbacking-dev.c985 wait_queue_head_t *wqh = &congestion_wqh[sync]; in clear_wb_congested() local
992 if (waitqueue_active(wqh)) in clear_wb_congested()
993 wake_up(wqh); in clear_wb_congested()
1021 wait_queue_head_t *wqh = &congestion_wqh[sync]; in congestion_wait() local
1023 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in congestion_wait()
1025 finish_wait(wqh, &wait); in congestion_wait()
1052 wait_queue_head_t *wqh = &congestion_wqh[sync]; in wait_iff_congested() local
1070 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in wait_iff_congested()
1072 finish_wait(wqh, &wait); in wait_iff_congested()
Dmemcontrol.c173 wait_queue_head_t *wqh; member
3958 remove_wait_queue(event->wqh, &event->wait); in memcg_event_remove()
4009 wait_queue_head_t *wqh, poll_table *pt) in memcg_event_ptable_queue_proc() argument
4014 event->wqh = wqh; in memcg_event_ptable_queue_proc()
4015 add_wait_queue(wqh, &event->wait); in memcg_event_ptable_queue_proc()
/Linux-v4.19/drivers/vfio/
Dvirqfd.c82 wait_queue_head_t *wqh, poll_table *pt) in virqfd_ptable_queue_proc() argument
85 add_wait_queue(wqh, &virqfd->wait); in virqfd_ptable_queue_proc()
/Linux-v4.19/kernel/locking/
Drtmutex_common.h156 struct wake_q_head *wqh);
Drtmutex.c1457 struct wake_q_head *wqh)) in rt_mutex_fastunlock() argument
/Linux-v4.19/drivers/net/usb/
Dkaweth.c1214 wait_queue_head_t wqh; member
1226 wake_up(&awd->wqh); in usb_api_blocking_completion()
1239 init_waitqueue_head(&awd.wqh); in usb_start_wait_urb()
1250 if (!wait_event_timeout(awd.wqh, awd.done, timeout)) { in usb_start_wait_urb()
/Linux-v4.19/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()
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.h30 wait_queue_head_t *wqh; member
/Linux-v4.19/virt/kvm/
Deventfd.c240 irqfd_ptable_queue_proc(struct file *file, wait_queue_head_t *wqh, in irqfd_ptable_queue_proc() argument
245 add_wait_queue(wqh, &irqfd->wait); in irqfd_ptable_queue_proc()