Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\rt.c Create Date:2022-07-28 09:39:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sched_rt_handler

Proto:int sched_rt_handler(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos)

Type:int

Parameter:

TypeParameterName
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 = read a vector of integers
2660  If Not ret && write Then
2661  ret = sched_rt_global_validate()
2662  If ret Then Go to undo
2665  ret = sched_dl_global_validate()
2666  If ret Then Go to undo
2669  ret = sched_rt_global_constraints()
2670  If ret Then Go to undo
2673  sched_rt_do_global()
2674  sched_dl_do_global()
2676  If 0 Then
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  Return ret