函数逻辑报告 |
Source Code:kernel\sched\wait.c |
Create Date:2022-07-27 10:41:17 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:The core wakeup function
函数原型: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)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
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 | 如果bookmark且flags按位与WQ_FLAG_BOOKMARK则 |
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) |
78 | 删除链表项 |
79 | flags等于0 |
83 | 如果entry恒等于head则返回:nr_exclusive |
90 | 如果flags按位与WQ_FLAG_BOOKMARK则继续下一循环 |
96 | 如果ret且flags按位与wait_queue_entry::flags 且非nr_exclusive先自减则退出 |
107 | 返回:nr_exclusive |
名称 | 描述 |
---|---|
__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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |