函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sys.c Create Date:2022-07-27 10:19:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:set the priority of a task* - the caller must hold the RCU read lock

函数原型:static int set_one_prio(struct task_struct *p, int niceval, int error)

返回类型:int

参数:

类型参数名称
struct task_struct *p
intniceval
interror
176  如果非Returns true if current's euid is same as p's uid or euid,* or has CAP_SYS_NICE to p's user_ns.* Called with rcu_read_lock, creds are safe
177  error等于负EPERM
178  转到:out
180  如果niceval小于返回给定任务的值且非can_nice(p, niceval)则
181  error等于负EACCES
182  转到:out
184  no_nice等于security_task_setnice(p, niceval)
185  如果no_nice
186  error等于no_nice
187  转到:out
189  如果error恒等于负ESRCHerror等于0
191  set_user_nice(p, niceval)
192  out :
193  返回:error
调用者
名称描述
SYSCALL_DEFINE3