Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ttwu_stat

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

Type:void

Parameter:

TypeParameterName
struct task_struct *p
intcpu
intwake_flags
2181  If Not schedstat_enabled() Then Return
2184  rq = this_rq()
2208  __schedstat_inc(ttwu_count)
2209  __schedstat_inc(nr_wakeups)
2211  If wake_flags & Waker goes to sleep after wakeup Then __schedstat_inc(nr_wakeups_sync)
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.