Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched\prio.h Create Date:2022-07-28 05:38:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Convert nice value [19,-20] to rlimit style value [1,40].

Proto:static inline long nice_to_rlimit(long nice)

Type:long

Parameter:

TypeParameterName
longnice
50  Return MAX_NICE - nice + 1
Caller
NameDescribe
SYSCALL_DEFINE2Ugh. To avoid negative return values, "getpriority()" will* not return the normal nice-value, but a negated value that* has been offset by 20 (ie it returns 40..1 instead of -20..19)* to stay compatible.
can_nicean_nice - check if a task can reduce its nice value*@p: task*@nice: nice value