/kernel/linux/linux-5.10/include/linux/ |
D | wait.h | 63 extern void __init_waitqueue_head(struct wait_queue_head *wq_head, const char *name, struct lock_cl… 65 #define init_waitqueue_head(wq_head) \ argument 69 __init_waitqueue_head((wq_head), #wq_head, &__key); \ 126 static inline int waitqueue_active(struct wait_queue_head *wq_head) in waitqueue_active() argument 128 return !list_empty(&wq_head->head); in waitqueue_active() 139 static inline bool wq_has_single_sleeper(struct wait_queue_head *wq_head) in wq_has_single_sleeper() argument 141 return list_is_singular(&wq_head->head); in wq_has_single_sleeper() 152 static inline bool wq_has_sleeper(struct wait_queue_head *wq_head) in wq_has_sleeper() argument 162 return waitqueue_active(wq_head); in wq_has_sleeper() 165 extern void add_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry); [all …]
|
D | wait_bit.h | 26 void __wake_up_bit(struct wait_queue_head *wq_head, void *word, int bit); 27 int __wait_on_bit(struct wait_queue_head *wq_head, struct wait_bit_queue_entry *wbq_entry, wait_bit… 28 int __wait_on_bit_lock(struct wait_queue_head *wq_head, struct wait_bit_queue_entry *wbq_entry, wai…
|
/kernel/linux/linux-5.10/kernel/sched/ |
D | wait.c | 9 void __init_waitqueue_head(struct wait_queue_head *wq_head, const char *name, struct lock_class_key… in __init_waitqueue_head() argument 11 spin_lock_init(&wq_head->lock); in __init_waitqueue_head() 12 lockdep_set_class_and_name(&wq_head->lock, key, name); in __init_waitqueue_head() 13 INIT_LIST_HEAD(&wq_head->head); in __init_waitqueue_head() 18 void add_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) in add_wait_queue() argument 23 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue() 24 __add_wait_queue(wq_head, wq_entry); in add_wait_queue() 25 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue() 29 void add_wait_queue_exclusive(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) in add_wait_queue_exclusive() argument 34 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue_exclusive() [all …]
|
D | wait_bit.c | 41 __wait_on_bit(struct wait_queue_head *wq_head, struct wait_bit_queue_entry *wbq_entry, in __wait_on_bit() argument 47 prepare_to_wait(wq_head, &wbq_entry->wq_entry, mode); in __wait_on_bit() 52 finish_wait(wq_head, &wbq_entry->wq_entry); in __wait_on_bit() 61 struct wait_queue_head *wq_head = bit_waitqueue(word, bit); in out_of_line_wait_on_bit() local 64 return __wait_on_bit(wq_head, &wq_entry, action, mode); in out_of_line_wait_on_bit() 72 struct wait_queue_head *wq_head = bit_waitqueue(word, bit); in out_of_line_wait_on_bit_timeout() local 77 return __wait_on_bit(wq_head, &wq_entry, action, mode); in out_of_line_wait_on_bit_timeout() 82 __wait_on_bit_lock(struct wait_queue_head *wq_head, struct wait_bit_queue_entry *wbq_entry, in __wait_on_bit_lock() argument 88 prepare_to_wait_exclusive(wq_head, &wbq_entry->wq_entry, mode); in __wait_on_bit_lock() 98 finish_wait(wq_head, &wbq_entry->wq_entry); in __wait_on_bit_lock() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | reporter_rx.c | 242 u16 wq_head; in mlx5e_rx_reporter_build_diagnose_output() local 255 wq_head = mlx5e_rqwq_get_head(rq); in mlx5e_rx_reporter_build_diagnose_output() 286 err = devlink_fmsg_u32_pair_put(fmsg, "cc", wq_head); in mlx5e_rx_reporter_build_diagnose_output()
|
/kernel/linux/linux-5.10/tools/memory-model/Documentation/ |
D | recipes.txt | 506 * @cond = true; prepare_to_wait(&wq_head, &wait, state); 508 * if (waitqueue_active(wq_head)) if (@cond) 509 * wake_up(wq_head); break; 512 * finish_wait(&wq_head, &wait); 515 On CPU1, prepare_to_wait() contains both a store to wq_head and a call
|
/kernel/linux/linux-5.10/fs/hmdfs/ |
D | stash.c | 342 wait_queue_head_t *wq_head = NULL; in hmdfs_wait_remote_writeback_once() local 355 wq_head = bit_waitqueue(&inode->i_state, __I_SYNC); in hmdfs_wait_remote_writeback_once() 356 __wait_on_bit(wq_head, &wq, bit_wait, TASK_UNINTERRUPTIBLE); in hmdfs_wait_remote_writeback_once()
|
/kernel/linux/patches/linux-5.10/yangfan_patch/ |
D | kernel.patch | 1480 @@ -396,7 +396,8 @@ void finish_wait(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_en 1492 * remove_wait_queue(&wq_head, &wait); wq_entry->flags |= WQ_FLAG_WOKEN;
|