函数逻辑报告 |
Source Code:kernel\sched\autogroup.c |
Create Date:2022-07-27 10:44:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:proc_sched_autogroup_set_nice
函数原型:int proc_sched_autogroup_set_nice(struct task_struct *p, int nice)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | p | |
int | nice |
210 | next等于Have the 32 bit jiffies value wrap 5 minutes after boot* so jiffies wrap bugs show up earlier. |
218 | err等于security_task_setnice(当前进程, nice) |
222 | 如果nice小于0且非an_nice - check if a task can reduce its nice value*@p: task*@nice: nice value则返回:负EPERM |
226 | 如果非操作权限检查且time_before(jiffies, next)则返回:负EAGAIN |
230 | ag等于autogroup_task_get(p) |
233 | shares等于scale_load(Nice levels are multiplicative, with a gentle 10% change for every* nice level changed[idx]) |
235 | lock for writing |
236 | err等于sched_group_set_shares(tg, shares) |
241 | autogroup_kref_put(ag) |
243 | 返回:err |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |