函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sched_rt_handler

函数原型:int sched_rt_handler(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos)

返回类型:int

参数:

类型参数名称
struct ctl_table *table
intwrite
void __user *buffer
size_t *lenp
loff_t *ppos
2651  DEFINE_MUTEX(mutex)
2654  mutex_lock( & mutex)
2655  old_period等于period over which we measure -rt task CPU usage in us.* default: 1s
2656  old_runtime等于part of the period that we allow rt tasks to run in us.* default: 0.95s
2658  ret等于读sysctl整数向量
2660  如果非retwrite
2661  ret等于sched_rt_global_validate()
2662  如果ret则转到:undo
2665  ret等于sched_dl_global_validate()
2666  如果ret则转到:undo
2669  ret等于sched_rt_global_constraints()
2670  如果ret则转到:undo
2673  sched_rt_do_global()
2674  sched_dl_do_global()
2676  如果0则
2677  undo :
2678  period over which we measure -rt task CPU usage in us.* default: 1s等于old_period
2679  part of the period that we allow rt tasks to run in us.* default: 0.95s等于old_runtime
2681  mutex_unlock( & mutex)
2683  返回:ret