函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sched_rr_handler

函数原型:int sched_rr_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
2691  DEFINE_MUTEX(mutex)
2693  mutex_lock( & mutex)
2694  ret等于读sysctl整数向量
2699  如果非retwrite
2700  sched_rr_timeslice等于如果sysctl_sched_rr_timeslice小于等于0则default timeslice is 100 msecs (used only for SCHED_RR tasks).* Timeslices get refilled after they expire.否则msecs_to_jiffies: - convert milliseconds to jiffies*@m: time in milliseconds* conversion is done as follows:* - negative values mean 'infinite timeout' (MAX_JIFFY_OFFSET)* - 'too large' values [that would result in larger than
2704  mutex_unlock( & mutex)
2706  返回:ret