Home
last modified time | relevance | path

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

/linux/fs/
H A Deventfd.c32 wait_queue_head_t wqh; member
71 spin_lock_irqsave(&ctx->wqh.lock, flags); in eventfd_signal_mask()
75 if (waitqueue_active(&ctx->wqh)) in eventfd_signal_mask()
76 wake_up_locked_poll(&ctx->wqh, EPOLLIN | mask); in eventfd_signal_mask()
78 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in eventfd_signal_mask()
113 wake_up_poll(&ctx->wqh, EPOLLHUP); in eventfd_release()
124 poll_wait(file, &ctx->wqh, wait); in eventfd_poll()
178 lockdep_assert_held(&ctx->wqh.lock); in eventfd_ctx_do_read()
203 spin_lock_irqsave(&ctx->wqh.lock, flags); in eventfd_ctx_remove_wait_queue()
205 __remove_wait_queue(&ctx->wqh, wait); in eventfd_ctx_remove_wait_queue()
[all …]
H A 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()
105 spin_lock_irqsave(&ctx->wqh.lock, flags); in timerfd_clock_was_set()
109 wake_up_locked_poll(&ctx->wqh, EPOLLIN); in timerfd_clock_was_set()
111 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in timerfd_clock_was_set()
252 poll_wait(file, &ctx->wqh, wait); in timerfd_poll()
254 spin_lock_irqsave(&ctx->wqh.lock, flags); in timerfd_poll()
257 spin_unlock_irqrestore(&ctx->wqh.lock, flags); in timerfd_poll()
[all …]
H A Duserfaultfd.c909 wait_queue_head_t *wqh) in find_userfault_in() argument
914 lockdep_assert_held(&wqh->lock); in find_userfault_in()
917 if (!waitqueue_active(wqh)) in find_userfault_in()
920 wq = list_last_entry(&wqh->head, typeof(*wq), entry); in find_userfault_in()
/linux/arch/powerpc/platforms/pseries/
H A Drtas-work-area.c44 struct wait_queue_head wqh; member
49 .wqh = __WAIT_QUEUE_HEAD_INITIALIZER(rwa_state.wqh),
103 wait_event(rwa_state.wqh, in __rtas_work_area_alloc()
123 wake_up(&rwa_state.wqh); in rtas_work_area_free()
/linux/drivers/hv/
H A Dmshv_vtl_main.c73 wait_queue_head_t *wqh; member
450 static void mshv_vtl_ptable_queue_proc(struct file *file, wait_queue_head_t *wqh, poll_table *pt) in mshv_vtl_ptable_queue_proc() argument
454 WARN_ON(poll_file->wqh); in mshv_vtl_ptable_queue_proc()
455 poll_file->wqh = wqh; in mshv_vtl_ptable_queue_proc()
456 add_wait_queue(wqh, &poll_file->wait); in mshv_vtl_ptable_queue_proc()
486 if (poll_file->wqh) in mshv_vtl_ioctl_set_poll_file()
487 remove_wait_queue(poll_file->wqh, &poll_file->wait); in mshv_vtl_ioctl_set_poll_file()
488 poll_file->wqh = NULL; in mshv_vtl_ioctl_set_poll_file()
H A Dmshv_eventfd.c370 static void mshv_irqfd_queue_proc(struct file *file, wait_queue_head_t *wqh, in mshv_irqfd_queue_proc() argument
383 add_wait_queue_priority(wqh, &irqfd->irqfd_wait); in mshv_irqfd_queue_proc()
/linux/drivers/vfio/
H A 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/kernel/
H A Dseccomp.c234 wait_queue_head_t wqh; member
535 if (waitqueue_active(&orig->wqh)) in __seccomp_filter_orphan()
536 wake_up_poll(&orig->wqh, EPOLLHUP); in __seccomp_filter_orphan()
710 init_waitqueue_head(&sfilter->wqh); in seccomp_prepare_filter()
1188 wake_up_poll_on_current_cpu(&match->wqh, EPOLLIN | EPOLLRDNORM); in seccomp_do_user_notification()
1190 wake_up_poll(&match->wqh, EPOLLIN | EPOLLRDNORM); in seccomp_do_user_notification()
1536 ret = prepare_to_wait_event(&filter->wqh, &wait, TASK_INTERRUPTIBLE); in recv_wait_event()
1548 finish_wait(&filter->wqh, &wait); in recv_wait_event()
1595 wake_up_poll(&filter->wqh, EPOLLOUT | EPOLLWRNORM); in seccomp_notify_recv()
1617 wake_up_poll(&filter->wqh, EPOLLIN | EPOLLRDNORM); in seccomp_notify_recv()
[all …]
/linux/drivers/virt/acrn/
H A Dirqfd.c94 static void hsm_irqfd_poll_func(struct file *file, wait_queue_head_t *wqh, in hsm_irqfd_poll_func() argument
100 add_wait_queue(wqh, &irqfd->wait); in hsm_irqfd_poll_func()
/linux/kernel/futex/
H A Dpi.c620 DEFINE_RT_WAKE_Q(wqh); in wake_futex_pi()
659 postunlock = __rt_mutex_futex_unlock(&pi_state->pi_mutex, &wqh); in wake_futex_pi()
666 rt_mutex_postunlock(&wqh); in wake_futex_pi()
/linux/mm/
H A Dmemcontrol-v1.c84 wait_queue_head_t *wqh; member
1007 remove_wait_queue(event->wqh, &event->wait); in memcg_event_remove()
1058 wait_queue_head_t *wqh, poll_table *pt) in memcg_event_ptable_queue_proc() argument
1063 event->wqh = wqh; in memcg_event_ptable_queue_proc()
1064 add_wait_queue(wqh, &event->wait); in memcg_event_ptable_queue_proc()
H A Dinternal.h492 wait_queue_head_t *wqh; in wake_throttle_isolated() local
494 wqh = &pgdat->reclaim_wait[VMSCAN_THROTTLE_ISOLATED]; in wake_throttle_isolated()
495 if (waitqueue_active(wqh)) in wake_throttle_isolated()
496 wake_up(wqh); in wake_throttle_isolated()
H A Dvmscan.c532 wait_queue_head_t *wqh = &pgdat->reclaim_wait[reason]; in reclaim_throttle() local
587 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in reclaim_throttle()
589 finish_wait(wqh, &wait); in reclaim_throttle()
6190 wait_queue_head_t *wqh; in consider_reclaim_throttle() local
6192 wqh = &pgdat->reclaim_wait[VMSCAN_THROTTLE_NOPROGRESS]; in consider_reclaim_throttle()
6193 if (waitqueue_active(wqh)) in consider_reclaim_throttle()
6194 wake_up(wqh); in consider_reclaim_throttle()
/linux/drivers/vhost/
H A Dvhost.c162 static void vhost_poll_func(struct file *file, wait_queue_head_t *wqh, in vhost_poll_func() argument
168 poll->wqh = wqh; in vhost_poll_func()
169 add_wait_queue(wqh, &poll->wait); in vhost_poll_func()
205 poll->wqh = NULL; in vhost_poll_init()
218 if (poll->wqh) in vhost_poll_start()
237 if (poll->wqh) { in vhost_poll_stop()
238 remove_wait_queue(poll->wqh, &poll->wait); in vhost_poll_stop()
239 poll->wqh = NULL; in vhost_poll_stop()
H A Dvhost.h58 wait_queue_head_t *wqh; member
/linux/virt/kvm/
H A Deventfd.c300 static void kvm_irqfd_register(struct file *file, wait_queue_head_t *wqh, in kvm_irqfd_register() argument
339 p->ret = add_wait_queue_priority_exclusive(wqh, &irqfd->wait); in kvm_irqfd_register()
/linux/drivers/xen/
H A Dprivcmd.c968 irqfd_poll_func(struct file *file, wait_queue_head_t *wqh, poll_table *pt) in irqfd_poll_func() argument
973 add_wait_queue_priority(wqh, &kirqfd->wait); in irqfd_poll_func()