Home
last modified time | relevance | path

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

/linux-6.15/fs/
H A Deventfd.c32 wait_queue_head_t wqh; member
75 if (waitqueue_active(&ctx->wqh)) in eventfd_signal_mask()
124 poll_wait(file, &ctx->wqh, wait); in eventfd_poll()
222 spin_lock_irq(&ctx->wqh.lock); in eventfd_read()
237 if (waitqueue_active(&ctx->wqh)) in eventfd_read()
240 spin_unlock_irq(&ctx->wqh.lock); in eventfd_read()
260 spin_lock_irq(&ctx->wqh.lock); in eventfd_write()
277 spin_unlock_irq(&ctx->wqh.lock); in eventfd_write()
288 spin_lock_irq(&ctx->wqh.lock); in eventfd_show_fdinfo()
290 spin_unlock_irq(&ctx->wqh.lock); in eventfd_show_fdinfo()
[all …]
H A Dtimerfd.c38 wait_queue_head_t wqh; member
252 poll_wait(file, &ctx->wqh, wait); in timerfd_poll()
272 spin_lock_irq(&ctx->wqh.lock); in timerfd_read_iter()
312 spin_unlock_irq(&ctx->wqh.lock); in timerfd_read_iter()
327 spin_lock_irq(&ctx->wqh.lock); in timerfd_show()
330 spin_unlock_irq(&ctx->wqh.lock); in timerfd_show()
365 spin_lock_irq(&ctx->wqh.lock); in timerfd_ioctl()
421 init_waitqueue_head(&ctx->wqh); in SYSCALL_DEFINE2()
484 spin_lock_irq(&ctx->wqh.lock); in do_timerfd_settime()
522 spin_unlock_irq(&ctx->wqh.lock); in do_timerfd_settime()
[all …]
H A Duserfaultfd.c886 wait_queue_head_t *wqh) in find_userfault_in() argument
891 lockdep_assert_held(&wqh->lock); in find_userfault_in()
894 if (!waitqueue_active(wqh)) in find_userfault_in()
897 wq = list_last_entry(&wqh->head, typeof(*wq), entry); in find_userfault_in()
/linux-6.15/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-6.15/kernel/locking/
H A Drtmutex.c549 WARN_ON_ONCE(wqh->rtlock_task); in rt_mutex_wake_q_add_task()
551 wqh->rtlock_task = task; in rt_mutex_wake_q_add_task()
553 wake_q_add(&wqh->head, task); in rt_mutex_wake_q_add_task()
567 put_task_struct(wqh->rtlock_task); in rt_mutex_wake_up_q()
568 wqh->rtlock_task = NULL; in rt_mutex_wake_up_q()
571 if (!wake_q_empty(&wqh->head)) in rt_mutex_wake_up_q()
572 wake_up_q(&wqh->head); in rt_mutex_wake_up_q()
1354 rt_mutex_wake_q_add(wqh, waiter); in mark_wakeup_next_waiter()
1413 DEFINE_RT_WAKE_Q(wqh); in rt_mutex_slowunlock()
1466 mark_wakeup_next_waiter(&wqh, lock); in rt_mutex_slowunlock()
[all …]
H A Drtmutex_api.c166 struct rt_wake_q_head *wqh) in __rt_mutex_futex_unlock() argument
183 mark_wakeup_next_waiter(wqh, lock); in __rt_mutex_futex_unlock()
190 DEFINE_RT_WAKE_Q(wqh); in rt_mutex_futex_unlock()
195 postunlock = __rt_mutex_futex_unlock(lock, &wqh); in rt_mutex_futex_unlock()
199 rt_mutex_postunlock(&wqh); in rt_mutex_futex_unlock()
485 void __sched rt_mutex_postunlock(struct rt_wake_q_head *wqh) in rt_mutex_postunlock() argument
487 rt_mutex_wake_up_q(wqh); in rt_mutex_postunlock()
H A Drwbase_rt.c155 DEFINE_RT_WAKE_Q(wqh); in __rwbase_read_unlock()
166 rt_mutex_wake_q_add_task(&wqh, owner, state); in __rwbase_read_unlock()
171 rt_mutex_wake_up_q(&wqh); in __rwbase_read_unlock()
H A Drtmutex_common.h102 struct rt_wake_q_head *wqh);
104 extern void rt_mutex_postunlock(struct rt_wake_q_head *wqh);
/linux-6.15/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-6.15/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()
1170 wake_up_poll_on_current_cpu(&match->wqh, EPOLLIN | EPOLLRDNORM); in seccomp_do_user_notification()
1172 wake_up_poll(&match->wqh, EPOLLIN | EPOLLRDNORM); in seccomp_do_user_notification()
1520 ret = prepare_to_wait_event(&filter->wqh, &wait, TASK_INTERRUPTIBLE); in recv_wait_event()
1532 finish_wait(&filter->wqh, &wait); in recv_wait_event()
1579 wake_up_poll(&filter->wqh, EPOLLOUT | EPOLLWRNORM); in seccomp_notify_recv()
1601 wake_up_poll(&filter->wqh, EPOLLIN | EPOLLRDNORM); in seccomp_notify_recv()
[all …]
/linux-6.15/drivers/virt/acrn/
H A Dirqfd.c96 static void hsm_irqfd_poll_func(struct file *file, wait_queue_head_t *wqh, in hsm_irqfd_poll_func() argument
102 add_wait_queue(wqh, &irqfd->wait); in hsm_irqfd_poll_func()
/linux-6.15/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-6.15/drivers/hv/
H A Dmshv_eventfd.c364 static void mshv_irqfd_queue_proc(struct file *file, wait_queue_head_t *wqh, in mshv_irqfd_queue_proc() argument
370 irqfd->irqfd_wqh = wqh; in mshv_irqfd_queue_proc()
371 add_wait_queue_priority(wqh, &irqfd->irqfd_wait); in mshv_irqfd_queue_proc()
/linux-6.15/mm/
H A Dmemcontrol-v1.c84 wait_queue_head_t *wqh; member
985 remove_wait_queue(event->wqh, &event->wait); in memcg_event_remove()
1036 wait_queue_head_t *wqh, poll_table *pt) in memcg_event_ptable_queue_proc() argument
1041 event->wqh = wqh; in memcg_event_ptable_queue_proc()
1042 add_wait_queue(wqh, &event->wait); in memcg_event_ptable_queue_proc()
H A Dinternal.h400 wait_queue_head_t *wqh; in wake_throttle_isolated() local
402 wqh = &pgdat->reclaim_wait[VMSCAN_THROTTLE_ISOLATED]; in wake_throttle_isolated()
403 if (waitqueue_active(wqh)) in wake_throttle_isolated()
404 wake_up(wqh); in wake_throttle_isolated()
H A Dvmscan.c544 wait_queue_head_t *wqh = &pgdat->reclaim_wait[reason]; in reclaim_throttle() local
599 prepare_to_wait(wqh, &wait, TASK_UNINTERRUPTIBLE); in reclaim_throttle()
601 finish_wait(wqh, &wait); in reclaim_throttle()
6164 wait_queue_head_t *wqh; in consider_reclaim_throttle() local
6166 wqh = &pgdat->reclaim_wait[VMSCAN_THROTTLE_NOPROGRESS]; in consider_reclaim_throttle()
6167 if (waitqueue_active(wqh)) in consider_reclaim_throttle()
6168 wake_up(wqh); in consider_reclaim_throttle()
/linux-6.15/drivers/vhost/
H A 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()
197 poll->wqh = NULL; in vhost_poll_init()
210 if (poll->wqh) in vhost_poll_start()
229 if (poll->wqh) { in vhost_poll_stop()
230 remove_wait_queue(poll->wqh, &poll->wait); in vhost_poll_stop()
231 poll->wqh = NULL; in vhost_poll_stop()
H A Dvhost.h45 wait_queue_head_t *wqh; member
/linux-6.15/virt/kvm/
H A Deventfd.c249 irqfd_ptable_queue_proc(struct file *file, wait_queue_head_t *wqh, in irqfd_ptable_queue_proc() argument
254 add_wait_queue_priority(wqh, &irqfd->wait); in irqfd_ptable_queue_proc()
/linux-6.15/Documentation/RCU/
H A DlistRCU.rst467 spin_lock_irqsave(&ctx->wqh.lock, flags);
471 wake_up_locked_poll(&ctx->wqh, EPOLLIN);
473 spin_unlock_irqrestore(&ctx->wqh.lock, flags);
/linux-6.15/kernel/rcu/
H A Dtree.c1065 struct swait_queue_head *wqh = arg; in swake_up_one_online_ipi() local
1067 swake_up_one(wqh); in swake_up_one_online_ipi()
1070 static void swake_up_one_online(struct swait_queue_head *wqh) in swake_up_one_online() argument
1087 wqh, 0); in swake_up_one_online()
1091 swake_up_one(wqh); in swake_up_one_online()
/linux-6.15/drivers/xen/
H A Dprivcmd.c955 irqfd_poll_func(struct file *file, wait_queue_head_t *wqh, poll_table *pt) in irqfd_poll_func() argument
960 add_wait_queue_priority(wqh, &kirqfd->wait); in irqfd_poll_func()