函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-27 10:36:51
Last Modify:2022-05-22 13:40:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:an_nice - check if a task can reduce its nice value*@p: task*@nice: nice value

函数原型:int can_nice(const struct task_struct *p, const int nice)

返回类型:int

参数:

类型参数名称
const struct task_struct *p
const intnice
4572  nice_rlim等于Convert nice value [19,-20] to rlimit style value [1,40].
4574  返回:nice_rlim小于等于task_rlimit(p, RLIMIT_NICE)或操作权限检查
调用者
名称描述
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
set_one_prioset the priority of a task* - the caller must hold the RCU read lock