Function report |
Source Code:kernel\sched\core.c |
Create Date:2022-07-28 09:35:26 |
| Last Modify:2022-05-22 13:40:38 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__task_rq_lock - lock the rq @p resides on.
Proto:struct rq *__task_rq_lock(struct task_struct *p, struct rq_flags *rf)__acquires(rq->lock)
Type:struct rq
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | p | |
| struct rq_flags * | rf |
| 86 | cycle |
| 88 | raw_spin_lock( & runqueue lock: ) |
| 89 | If Value is more likely to compile time(rq == task_rq(p) && !task_on_rq_migrating(p)) Then |
| 90 | rq_pin_lock(rq, rf) |
| 91 | Return rq |
| 93 | raw_spin_unlock( & runqueue lock: ) |
| 96 | cpu_relax() |
| Name | Describe |
|---|---|
| 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. |
| 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 |