Function report |
Source Code:kernel\sched\autogroup.c |
Create Date:2022-07-28 09:43:39 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:proc_sched_autogroup_set_nice
Proto:int proc_sched_autogroup_set_nice(struct task_struct *p, int nice)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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(current process, nice) |
| 222 | If nice < 0 && Not an_nice - check if a task can reduce its nice value*@p: task*@nice: nice value Then Return -EPERM |
| 226 | If Not Check operation authority && time_before(jiffies, next) Then Return -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 | Return err |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |