函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-27 10:36:25
Last Modify:2022-05-22 13:40:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:void wake_up_new_task(struct task_struct *p)

返回类型:void

参数:

类型参数名称
struct task_struct *p
2950  raw_spin_lock_irqsave( & Protection of the PI data structures: , flags)
2951  任务状态等于就绪态
2964  rq等于__task_rq_lock - lock the rq @p resides on.
2965  更新rq运行时间
2966  post_init_entity_util_avg(p)
2968  activate_task(rq, p, ENQUEUE_NOCLOCK)
2969  Tracepoint for waking up a new task:
2970  check_preempt_curr(rq, p, Child wakeup after fork )
2982  task_rq_unlock(rq, p, & rf)
调用者
名称描述
_do_fork分裂进程