Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-28 09:36:14
Last Modify:2022-05-22 13:40:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:an_nice - check if a task can reduce its nice value*@p: task*@nice: nice value

Proto:int can_nice(const struct task_struct *p, const int nice)

Type:int

Parameter:

TypeParameterName
const struct task_struct *p
const intnice
4572  nice_rlim = Convert nice value [19,-20] to rlimit style value [1,40].
4574  Return nice_rlim <= task_rlimit(p, RLIMIT_NICE) || Check operation authority
Caller
NameDescribe
SYSCALL_DEFINE1sys_nice - change the priority of the current process.*@increment: priority increment* sys_setpriority is a more generic, but much slower function that* does similar things.
__sched_setscheduler
proc_sched_autogroup_set_nice