Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:prepare_task_switch - prepare to switch tasks*@rq: the runqueue preparing to switch*@prev: the current task that is being switched out*@next: the task we are going to switch to

Proto:static inline void prepare_task_switch(struct rq *rq, struct task_struct *prev, struct task_struct *next)

Type:void

Parameter:

TypeParameterName
struct rq *rq
struct task_struct *prev
struct task_struct *next
3157  kcov_prepare_switch(prev)
3158  sched_info_switch(rq, prev, next)
3159  perf_event_task_sched_out(prev, next)
3160  rseq_preempt(prev)
3161  fire_sched_out_preempt_notifiers(prev, next)
3162  prepare_task(next)
3163  NOP if the arch has not defined these:(next)
Caller
NameDescribe
context_switchext_switch - switch to the new MM and the new thread's register state.