函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:task_contending

函数原型:static void task_contending(struct sched_dl_entity *dl_se, int flags)

返回类型:void

参数:

类型参数名称
struct sched_dl_entity *dl_se
intflags
295  dl_rq等于dl_rq_of_se(dl_se)
301  如果 Maximum runtime for each instance 恒等于0则返回
304  如果flags按位与ENQUEUE_MIGRATEDadd_rq_bw(dl_se, dl_rq)
307  如果dl_non_contending
308  dl_non_contending等于0
316  如果hrtimer_try_to_cancel( & * Inactive timer, responsible for decreasing the active utilization * at the "0-lag time". When a -deadline task blocks, it contributes * to GRUB's active utilization until the "0-lag time", hence a * timer is needed to decrease the active utilization at t)恒等于1则put_task_struct(dl_task_of(dl_se))
318  否则
326  add_running_bw(dl_se, dl_rq)
调用者
名称描述
enqueue_dl_entity
enqueue_task_dl