函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\fair.c Create Date:2022-07-27 10:39:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:yield_to_task_fair

函数原型:static bool yield_to_task_fair(struct rq *rq, struct task_struct *p, bool preempt)

返回类型:bool

参数:

类型参数名称
struct rq *rq
struct task_struct *p
boolpreempt
6847  se等于调度实体
6850  如果非on_rqthrottled_hierarchy(cfs_rq_of(se))则返回: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  返回:true