函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Convert nice value [19,-20] to rlimit style value [1,40].

函数原型:static inline long nice_to_rlimit(long nice)

返回类型:long

参数:

类型参数名称
longnice
50  返回:MAX_NICEnice加1
调用者
名称描述
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