函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:reweight_entity

函数原型:static void reweight_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, unsigned long weight, unsigned long runnable)

返回类型:void

参数:

类型参数名称
struct cfs_rq *cfs_rq
struct sched_entity *se
unsigned longweight
unsigned longrunnable
2883  如果on_rq
2885  如果'curr' points to currently running entity on this cfs_rq.* It is set to NULL otherwise (i.e when none are currently running).恒等于se更新当前进程运行时间,包括虚拟运行时间
2887  account_entity_dequeue(cfs_rq, se)
2888  dequeue_runnable_load_avg(cfs_rq, se)
2890  dequeue_load_avg(cfs_rq, se)
2892  runnable_weight等于runnable
2893  update_load_set( & For load-balancing: , weight)
2905  enqueue_load_avg(cfs_rq, se)
2906  如果on_rq
2907  account_entity_enqueue(cfs_rq, se)
2908  enqueue_runnable_load_avg(cfs_rq, se)
调用者
名称描述
reweight_task