函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sched_dl_global_validate

函数原型:int sched_dl_global_validate(void)

返回类型:int

参数:

2465  runtime等于global_rt_runtime()
2466  period等于global_rt_period()
2467  new_bw等于to_ratio(period, runtime)
2469  ret等于0
2481  遍历可用CPU(cpu)
2482  _read_lock_sched() - mark the beginning of a RCU-sched critical section* This is equivalent of rcu_read_lock(), but disables preemption.* Read-side critical sections can also be introduced by anything else
2483  dl_b等于dl_bw_of(cpu)
2485  raw_spin_lock_irqsave( & lock, flags)
2486  如果new_bw小于total_bwret等于负EBUSY
2488  raw_spin_unlock_irqrestore( & lock, flags)
2490  标记rcu锁结束
2492  如果ret退出
2496  返回:ret
调用者
名称描述
sched_rt_handler