Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-28 09:35:49
Last Modify:2022-05-22 13:40:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:void wake_up_new_task(struct task_struct *p)

Type:void

Parameter:

TypeParameterName
struct task_struct *p
2950  raw_spin_lock_irqsave( & Protection of the PI data structures: , flags)
2951  run state = Used in tsk->state:
2964  rq = __task_rq_lock - lock the rq @p resides on.
2965  update_rq_clock(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)
Caller
NameDescribe
_do_forkfork routine