函数逻辑报告 |
Source Code:kernel\sched\core.c |
Create Date:2022-07-27 10:37:41 |
| Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:_idle - set up an idle thread for a given CPU*@idle: task in question*@cpu: CPU the idle task belongs to* NOTE: this function does not set the idle thread's NEED_RESCHED* flag, to make booting more robust.
函数原型:void init_idle(struct task_struct *idle, int cpu)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct task_struct * | idle | |
| int | cpu |
| 6040 | raw_spin_lock( & 运行队列锁) |
| 6043 | exec_start等于sched_clock() |
| 6044 | 任务标志或等于I am an IDLE thread |
| 6068 | __set_task_cpu(idle, cpu) |
| 6077 | raw_spin_unlock( & 运行队列锁) |
| 6081 | init_idle_preempt_count(idle, cpu) |
| 6086 | 调度函数等于idle_sched_class |
| 6087 | ftrace_graph_init_idle_task(idle, cpu) |
| 6088 | vtime_init_idle(idle, cpu) |
| 名称 | 描述 |
|---|---|
| sched_init | 初始化调度器数据结构并创建运行队列 |
| fork_idle |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |