Home
last modified time | relevance | path

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

/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dwait.h123 #define init_waitqueue_head(wqh) do { \ argument
124 mtx_init(&(wqh)->lock, spin_lock_name("wqhead"), \
126 INIT_LIST_HEAD(&(wqh)->task_list); \
129 #define __init_waitqueue_head(wqh, name, lk) init_waitqueue_head(wqh) argument
136 #define wake_up(wqh) \ argument
137 linux_wake_up(wqh, TASK_NORMAL, 1, false)
138 #define wake_up_all(wqh) \ argument
139 linux_wake_up(wqh, TASK_NORMAL, 0, false)
140 #define wake_up_locked(wqh) \ argument
141 linux_wake_up(wqh, TASK_NORMAL, 1, true)
[all …]
H A Dfs.h74 struct wait_queue_head *wqh; member
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_schedule.c274 linux_wake_up(wait_queue_head_t *wqh, unsigned int state, int nr, bool locked) in linux_wake_up() argument
279 spin_lock(&wqh->lock); in linux_wake_up()
280 list_for_each_entry_safe(pos, next, &wqh->task_list, task_list) { in linux_wake_up()
290 spin_unlock(&wqh->lock); in linux_wake_up()
294 linux_prepare_to_wait(wait_queue_head_t *wqh, wait_queue_t *wq, int state) in linux_prepare_to_wait() argument
297 spin_lock(&wqh->lock); in linux_prepare_to_wait()
299 __add_wait_queue(wqh, wq); in linux_prepare_to_wait()
301 spin_unlock(&wqh->lock); in linux_prepare_to_wait()
305 linux_finish_wait(wait_queue_head_t *wqh, wait_queue_t *wq) in linux_finish_wait() argument
308 spin_lock(&wqh->lock); in linux_finish_wait()
[all …]
H A Dlinux_compat.c1021 linux_poll_wait(struct linux_file *filp, wait_queue_head_t *wqh, poll_table *p) in linux_poll_wait() argument
1037 filp->f_wait_queue.wqh = wqh; in linux_poll_wait()
1039 add_wait_queue(wqh, &filp->f_wait_queue.wq); in linux_poll_wait()
1063 remove_wait_queue(filp->f_wait_queue.wqh, &filp->f_wait_queue.wq); in linux_poll_wait_dequeue()
/freebsd/sys/dev/netmap/
H A Dnetmap_kloop.c453 wait_queue_head_t *wqh; member
480 sync_kloop_poll_table_queue_proc(struct file *file, wait_queue_head_t *wqh, in sync_kloop_poll_table_queue_proc() argument
489 entry->wqh = wqh; in sync_kloop_poll_table_queue_proc()
498 add_wait_queue(wqh, &entry->wait); in sync_kloop_poll_table_queue_proc()
879 if (entry->wqh) in netmap_sync_kloop()
880 remove_wait_queue(entry->wqh, &entry->wait); in netmap_sync_kloop()