Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\fair.c Create Date:2022-07-28 09:38:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:task_cfs_rq

Proto:static inline struct cfs_rq *task_cfs_rq(struct task_struct *p)

Type:struct cfs_rq

Parameter:

TypeParameterName
struct task_struct *p
447  Return & ( & ( * ({
447  task_cpu(p)
447  ({
447  Do
447  const void * __vpp_verify = NULL
447  When 0 cycle
447  &runqueues
447  })
447  })))->cfs
Caller
NameDescribe
check_preempt_wakeupPreempt the current task with a newly woken task if needed:
yield_task_fairsched_yield() is very simple* The magic of dealing with the ->skip buddy is in pick_next_entity.
task_fork_fairalled on fork with the child task as argument from the parent's context* - child not yet on the tasklist* - preemption disabled