Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:yield_to_task_fair

Proto:static bool yield_to_task_fair(struct rq *rq, struct task_struct *p, bool preempt)

Type:bool

Parameter:

TypeParameterName
struct rq *rq
struct task_struct *p
boolpreempt
6847  se = se
6850  If Not on_rq || throttled_hierarchy(cfs_rq_of(se)) Then Return false
6854  set_next_buddy(se)
6856  sched_yield() is very simple* The magic of dealing with the ->skip buddy is in pick_next_entity.
6858  Return true