Function report |
Source Code:kernel\sched\wait.c |
Create Date:2022-07-28 09:40:41 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:The core wakeup function
Proto:static int __wake_up_common(struct wait_queue_head *wq_head, unsigned int mode, int nr_exclusive, int wake_flags, void *key, wait_queue_entry_t *bookmark)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct wait_queue_head * | wq_head | |
| unsigned int | mode | |
| int | nr_exclusive | |
| int | wake_flags | |
| void * | key | |
| wait_queue_entry_t * | bookmark |
| 71 | cnt = 0 |
| 73 | lockdep_assert_held( & lock) |
| 75 | If bookmark && flags & WQ_FLAG_BOOKMARK Then |
| 76 | curr = list_next_entry - get the next element in list*@pos: the type * to cursor*@member: the name of the list_head within the struct.(bookmark, entry) |
| 79 | flags = 0 |
| 83 | If entry == head Then Return nr_exclusive |
| 90 | If flags & WQ_FLAG_BOOKMARK Then Continue |
| 94 | If ret < 0 Then Break |
| 96 | If ret && flags & wait_queue_entry::flags && Not --nr_exclusive Then Break |
| 101 | flags = WQ_FLAG_BOOKMARK |
| 103 | Break |
| 107 | Return nr_exclusive |
| Name | Describe |
|---|---|
| __wake_up_common_lock | |
| __wake_up_locked | Same as __wake_up but called with the spinlock in wait_queue_head_t held. |
| __wake_up_locked_key | |
| __wake_up_locked_key_bookmark | |
| __wake_up_locked_sync_key | __wake_up_locked_sync_key - wake up a thread blocked on a locked waitqueue |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |