Searched refs:wait_queue_head (Results 1 – 3 of 3) sorted by relevance
/DragonOS-0.1.2/kernel/src/libs/ |
D | wait_queue.c | 24 void wait_queue_sleep_on(wait_queue_node_t *wait_queue_head) in wait_queue_sleep_on() argument 29 list_append(&wait_queue_head->wait_list, &wait->wait_list); in wait_queue_sleep_on() 39 void wait_queue_sleep_on_unlock(wait_queue_node_t *wait_queue_head, in wait_queue_sleep_on_unlock() argument 45 list_append(&wait_queue_head->wait_list, &wait->wait_list); in wait_queue_sleep_on_unlock() 55 void wait_queue_sleep_on_interriptible(wait_queue_node_t *wait_queue_head) in wait_queue_sleep_on_interriptible() argument 60 list_append(&wait_queue_head->wait_list, &wait->wait_list); in wait_queue_sleep_on_interriptible() 71 void wait_queue_wakeup(wait_queue_node_t *wait_queue_head, int64_t state) in wait_queue_wakeup() argument 73 if (list_empty(&wait_queue_head->wait_list)) in wait_queue_wakeup() 75 …wait_queue_node_t *wait = container_of(list_next(&wait_queue_head->wait_list), wait_queue_node_t, … in wait_queue_wakeup()
|
/DragonOS-0.1.2/kernel/src/common/ |
D | wait_queue.h | 31 void wait_queue_sleep_on(wait_queue_node_t *wait_queue_head); 38 void wait_queue_sleep_on_unlock(wait_queue_node_t *wait_queue_head, void *lock); 44 void wait_queue_sleep_on_interriptible(wait_queue_node_t *wait_queue_head); 52 void wait_queue_wakeup(wait_queue_node_t *wait_queue_head, int64_t state);
|
/DragonOS-0.1.2/docs/kernel/sched/ |
D | waiting.md | 12 …,实质上就是链表+自旋锁。它与`wait_queue.h`中的队列`wait_queue_node_t`是兼容的,当你使用`struct wait_queue_head`作为队列头时,你同样可以使… 61   您可以使用`void wait_queue_wakeup(wait_queue_node_t * wait_queue_head, int64_t state);`函数,从指… 72 ## 二. wait_queue_head等待队列头 84    等待队列头的使用逻辑与等待队列实际是一样的,因为他同样也是等待队列的节点(仅仅多了一把锁)。且wait_queue_head的函数基本上与wait_queue一致,只不过多…
|