Function report |
Source Code:kernel\sched\core.c |
Create Date:2022-07-28 09:37:09 |
| Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:_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.
Proto:void init_idle(struct task_struct *idle, int cpu)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | idle | |
| int | cpu |
| 6040 | raw_spin_lock( & runqueue lock: ) |
| 6042 | run state = Used in tsk->state: |
| 6043 | exec_start = sched_clock() |
| 6068 | __set_task_cpu(idle, cpu) |
| 6073 | on_rq = ask_struct::on_rq states: |
| 6077 | raw_spin_unlock( & runqueue lock: ) |
| 6081 | init_idle_preempt_count(idle, cpu) |
| 6086 | sched_class = idle_sched_class |
| 6087 | ftrace_graph_init_idle_task(idle, cpu) |
| 6088 | vtime_init_idle(idle, cpu) |
| Name | Describe |
|---|---|
| sched_init |
| 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 |