函数逻辑报告 |
Source Code:kernel\sched\core.c |
Create Date:2022-07-27 10:36:19 |
| Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:ry_to_wake_up - wake up a thread*@p: the thread to be awakened*@state: the mask of task states that can be woken*@wake_flags: wake modifier flags (WF_*)* If (@state & @p->state) @p->state = TASK_RUNNING.
函数原型:static int try_to_wake_up(struct task_struct *p, unsigned int state, int wake_flags)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct task_struct * | p | |
| unsigned int | state | |
| int | wake_flags |
| 2521 | success等于0 |
| 2523 | 禁止抢占() |
| 2561 | success等于1 |
| 2584 | smp_rmb() |
| 2638 | 如果in_iowait则 |
| 2639 | delayacct_blkio_end(p) |
| 2640 | atomic_dec( & nr_iowait) |
| 2645 | ttwu_queue(p, cpu, wake_flags) |
| 2646 | unlock : |
| 2648 | out : |
| 2649 | 如果success则ttwu_stat(p, cpu, wake_flags) |
| 2651 | 禁用抢占和中断() |
| 2653 | 返回:success |
| 名称 | 描述 |
|---|---|
| wake_up_process | 唤醒中断线程 |
| wake_up_state | |
| default_wake_function |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |