函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched.h Create Date:2022-07-27 06:58:35
Last Modify:2021-07-28 10:30:23 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:返回给定任务的值

函数原型:static inline int task_nice(const struct task_struct *p)

返回类型:int

参数:

类型参数名称
const struct task_struct *p
1618  返回:PRIO_TO_NICE(静态优先级)
调用者
名称描述
set_one_prioset the priority of a task* - the caller must hold the RCU read lock
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.
set_user_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
SYSCALL_DEFINE4sys_sched_getattr - similar to sched_getparam, but with sched_attr*@pid: the pid in question.*@uattr: structure containing the extended parameters.*@usize: sizeof(attr) for fwd/bwd comp.*@flags: for future extension.
account_user_timeAccount user CPU time to a process.*@p: the process that the CPU time gets accounted to*@cputime: the CPU time spent in user space since the last update
account_guest_timeAccount guest CPU time to a process.*@p: the process that the CPU time gets accounted to*@cputime: the CPU time spent in virtual machine since the last update
bacct_add_tskll in basic accounting fields
__estimate_accuracy
task_nice_ioprio process has set io priority explicitly, use that. if not, convert* the cpu scheduler nice value to an io priority