/linux-4.4.14/fs/ |
H A D | eventfd.c | 27 wait_queue_head_t wqh; member in struct:eventfd_ctx 31 * wakeup is performed on "wqh". A read(2) will return the "count" 58 spin_lock_irqsave(&ctx->wqh.lock, flags); eventfd_signal() 62 if (waitqueue_active(&ctx->wqh)) eventfd_signal() 63 wake_up_locked_poll(&ctx->wqh, POLLIN); eventfd_signal() 64 spin_unlock_irqrestore(&ctx->wqh.lock, flags); eventfd_signal() 112 wake_up_poll(&ctx->wqh, POLLHUP); eventfd_release() 123 poll_wait(file, &ctx->wqh, wait); eventfd_poll() 161 spin_lock_irqsave(&ctx->wqh.lock, flags); eventfd_ctx_remove_wait_queue() 163 __remove_wait_queue(&ctx->wqh, wait); eventfd_ctx_remove_wait_queue() 164 if (*cnt != 0 && waitqueue_active(&ctx->wqh)) eventfd_ctx_remove_wait_queue() 165 wake_up_locked_poll(&ctx->wqh, POLLOUT); eventfd_ctx_remove_wait_queue() 166 spin_unlock_irqrestore(&ctx->wqh.lock, flags); eventfd_ctx_remove_wait_queue() 191 spin_lock_irq(&ctx->wqh.lock); eventfd_ctx_read() 197 __add_wait_queue(&ctx->wqh, &wait); eventfd_ctx_read() 208 spin_unlock_irq(&ctx->wqh.lock); eventfd_ctx_read() 210 spin_lock_irq(&ctx->wqh.lock); eventfd_ctx_read() 212 __remove_wait_queue(&ctx->wqh, &wait); eventfd_ctx_read() 217 if (waitqueue_active(&ctx->wqh)) eventfd_ctx_read() 218 wake_up_locked_poll(&ctx->wqh, POLLOUT); eventfd_ctx_read() 220 spin_unlock_irq(&ctx->wqh.lock); eventfd_ctx_read() 256 spin_lock_irq(&ctx->wqh.lock); eventfd_write() 261 __add_wait_queue(&ctx->wqh, &wait); eventfd_write() 272 spin_unlock_irq(&ctx->wqh.lock); eventfd_write() 274 spin_lock_irq(&ctx->wqh.lock); eventfd_write() 276 __remove_wait_queue(&ctx->wqh, &wait); eventfd_write() 281 if (waitqueue_active(&ctx->wqh)) eventfd_write() 282 wake_up_locked_poll(&ctx->wqh, POLLIN); eventfd_write() 284 spin_unlock_irq(&ctx->wqh.lock); eventfd_write() 294 spin_lock_irq(&ctx->wqh.lock); eventfd_show_fdinfo() 297 spin_unlock_irq(&ctx->wqh.lock); eventfd_show_fdinfo() 408 init_waitqueue_head(&ctx->wqh); eventfd_file_create()
|
H A D | timerfd.c | 36 wait_queue_head_t wqh; member in struct:timerfd_ctx 64 spin_lock_irqsave(&ctx->wqh.lock, flags); timerfd_triggered() 67 wake_up_locked(&ctx->wqh); timerfd_triggered() 68 spin_unlock_irqrestore(&ctx->wqh.lock, flags); timerfd_triggered() 104 spin_lock_irqsave(&ctx->wqh.lock, flags); timerfd_clock_was_set() 108 wake_up_locked(&ctx->wqh); timerfd_clock_was_set() 110 spin_unlock_irqrestore(&ctx->wqh.lock, flags); timerfd_clock_was_set() 225 poll_wait(file, &ctx->wqh, wait); timerfd_poll() 227 spin_lock_irqsave(&ctx->wqh.lock, flags); timerfd_poll() 230 spin_unlock_irqrestore(&ctx->wqh.lock, flags); timerfd_poll() 244 spin_lock_irq(&ctx->wqh.lock); timerfd_read() 248 res = wait_event_interruptible_locked_irq(ctx->wqh, ctx->ticks); timerfd_read() 284 spin_unlock_irq(&ctx->wqh.lock); timerfd_read() 296 spin_lock_irq(&ctx->wqh.lock); timerfd_show() 299 spin_unlock_irq(&ctx->wqh.lock); timerfd_show() 334 spin_lock_irq(&ctx->wqh.lock); timerfd_ioctl() 337 wake_up_locked(&ctx->wqh); timerfd_ioctl() 340 spin_unlock_irq(&ctx->wqh.lock); timerfd_ioctl() 397 init_waitqueue_head(&ctx->wqh); SYSCALL_DEFINE2() 443 spin_lock_irq(&ctx->wqh.lock); do_timerfd_settime() 452 spin_unlock_irq(&ctx->wqh.lock); do_timerfd_settime() 477 spin_unlock_irq(&ctx->wqh.lock); do_timerfd_settime() 491 spin_lock_irq(&ctx->wqh.lock); do_timerfd_gettime() 509 spin_unlock_irq(&ctx->wqh.lock); do_timerfd_gettime()
|
H A D | signalfd.c | 37 wait_queue_head_t *wqh = &sighand->signalfd_wqh; signalfd_cleanup() local 43 if (likely(!waitqueue_active(wqh))) signalfd_cleanup() 47 wake_up_poll(wqh, POLLHUP | POLLFREE); signalfd_cleanup()
|
H A D | fs-writeback.c | 1146 wait_queue_head_t *wqh; variable 1148 wqh = bit_waitqueue(&inode->i_state, __I_SYNC); 1151 __wait_on_bit(wqh, &wq, bit_wait, 1176 wait_queue_head_t *wqh = bit_waitqueue(&inode->i_state, __I_SYNC); variable 1179 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); 1184 finish_wait(wqh, &wait);
|
H A D | userfaultfd.c | 471 * After no new page faults can wait on this fault_*wqh, flush userfaultfd_release() 473 * the fault_*wqh. userfaultfd_release()
|
/linux-4.4.14/drivers/vfio/ |
H A D | virqfd.c | 82 wait_queue_head_t *wqh, poll_table *pt) virqfd_ptable_queue_proc() 85 add_wait_queue(wqh, &virqfd->wait); virqfd_ptable_queue_proc() 81 virqfd_ptable_queue_proc(struct file *file, wait_queue_head_t *wqh, poll_table *pt) virqfd_ptable_queue_proc() argument
|
/linux-4.4.14/mm/ |
H A D | backing-dev.c | 900 wait_queue_head_t *wqh = &congestion_wqh[sync]; clear_wb_congested() local 907 if (waitqueue_active(wqh)) clear_wb_congested() 908 wake_up(wqh); clear_wb_congested() 936 wait_queue_head_t *wqh = &congestion_wqh[sync]; congestion_wait() local 938 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); congestion_wait() 940 finish_wait(wqh, &wait); congestion_wait() 973 wait_queue_head_t *wqh = &congestion_wqh[sync]; wait_iff_congested() local 1005 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); wait_iff_congested() 1007 finish_wait(wqh, &wait); wait_iff_congested()
|
H A D | memcontrol.c | 180 wait_queue_head_t *wqh; member in struct:mem_cgroup_event 3818 remove_wait_queue(event->wqh, &event->wait); memcg_event_remove() 3833 * Called with wqh->lock held and interrupts disabled. 3850 * side will require wqh->lock via remove_wait_queue(), memcg_event_wake() 3869 wait_queue_head_t *wqh, poll_table *pt) memcg_event_ptable_queue_proc() 3874 event->wqh = wqh; memcg_event_ptable_queue_proc() 3875 add_wait_queue(wqh, &event->wait); memcg_event_ptable_queue_proc() 3868 memcg_event_ptable_queue_proc(struct file *file, wait_queue_head_t *wqh, poll_table *pt) memcg_event_ptable_queue_proc() argument
|
/linux-4.4.14/kernel/locking/ |
H A D | rtmutex_common.h | 113 struct wake_q_head *wqh);
|
H A D | rtmutex.c | 1374 struct wake_q_head *wqh)) rt_mutex_fastunlock() 1498 struct wake_q_head *wqh) rt_mutex_futex_unlock() 1504 return rt_mutex_slowunlock(lock, wqh); rt_mutex_futex_unlock() 1372 rt_mutex_fastunlock(struct rt_mutex *lock, bool (*slowfn)(struct rt_mutex *lock, struct wake_q_head *wqh)) rt_mutex_fastunlock() argument 1497 rt_mutex_futex_unlock(struct rt_mutex *lock, struct wake_q_head *wqh) rt_mutex_futex_unlock() argument
|
/linux-4.4.14/drivers/vhost/ |
H A D | vhost.c | 116 static void vhost_poll_func(struct file *file, wait_queue_head_t *wqh, vhost_poll_func() argument 122 poll->wqh = wqh; vhost_poll_func() 123 add_wait_queue(wqh, &poll->wait); vhost_poll_func() 156 poll->wqh = NULL; vhost_poll_init() 169 if (poll->wqh) vhost_poll_start() 176 if (poll->wqh) vhost_poll_start() 177 remove_wait_queue(poll->wqh, &poll->wait); vhost_poll_start() 189 if (poll->wqh) { vhost_poll_stop() 190 remove_wait_queue(poll->wqh, &poll->wait); vhost_poll_stop() 191 poll->wqh = NULL; vhost_poll_stop()
|
H A D | vhost.h | 31 wait_queue_head_t *wqh; member in struct:vhost_poll
|
/linux-4.4.14/virt/kvm/ |
H A D | eventfd.c | 184 * Called with wqh->lock held and interrupts disabled 224 * other side is required to acquire wqh->lock, which we hold irqfd_wakeup() 236 irqfd_ptable_queue_proc(struct file *file, wait_queue_head_t *wqh, irqfd_ptable_queue_proc() argument 241 add_wait_queue(wqh, &irqfd->wait); irqfd_ptable_queue_proc()
|
/linux-4.4.14/drivers/net/usb/ |
H A D | kaweth.c | 1244 wait_queue_head_t wqh; member in struct:usb_api_data 1256 wake_up(&awd->wqh); usb_api_blocking_completion() 1269 init_waitqueue_head(&awd.wqh); usb_start_wait_urb() 1280 if (!wait_event_timeout(awd.wqh, awd.done, timeout)) { usb_start_wait_urb()
|