Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ttwu_queue

Proto:static void ttwu_queue(struct task_struct *p, int cpu, int wake_flags)

Type:void

Parameter:

TypeParameterName
struct task_struct *p
intcpu
intwake_flags
2398  rq = cpu_rq(cpu)
2409  rq_lock(rq, & rf)
2410  update_rq_clock(rq)
2411  ttwu_do_activate(rq, p, wake_flags, & rf)
2412  rq_unlock(rq, & rf)
Caller
NameDescribe
try_to_wake_upry_to_wake_up - wake up a thread*@p: the thread to be awakened*@state: the mask of task states that can be woken*@wake_flags: wake modifier flags (WF_*)* If (@state & @p->state) @p->state = TASK_RUNNING.