函数逻辑报告 |
Source Code:kernel\sched\core.c |
Create Date:2022-07-27 10:36:01 |
| Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:__task_rq_lock - lock the rq @p resides on.
函数原型:struct rq *__task_rq_lock(struct task_struct *p, struct rq_flags *rf)__acquires(rq->lock)
返回类型:struct rq
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct task_struct * | p | |
| struct rq_flags * | rf |
| 86 | 循环 |
| 88 | raw_spin_lock( & 运行队列锁) |
| 89 | 如果此条件成立可能性大(为编译器优化)(rq == task_rq(p) && !task_on_rq_migrating(p))则 |
| 90 | rq_pin_lock(rq, rf) |
| 91 | 返回:rq |
| 93 | raw_spin_unlock( & 运行队列锁) |
| 96 | cpu_relax() |
| 名称 | 描述 |
|---|---|
| ttwu_remote | Called in case the task @p isn't fully descheduled from its runqueue,* in this case we must do a remote wakeup. Its a 'light' wakeup though,* since all we need to do is flip p->state to TASK_RUNNING, since* the task is still ->on_rq. |
| wake_up_new_task | wake_up_new_task - wake up a newly created task for the first time.* This function will do some initial scheduler statistics housekeeping* that must be done for every newly created context, then puts the task* on the runqueue and wakes it. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |