Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched.h Create Date:2022-07-28 05:59:45
Last Modify:2021-07-28 10:30:23 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ask_nice - return the nice value of a given task.*@p: the task in question.* Return: The nice value [ -20 ... 0 ... 19 ].

Proto:static inline int task_nice(const struct task_struct *p)

Type:int

Parameter:

TypeParameterName
const struct task_struct *p
1618  Return PRIO_TO_NICE(static_prio)
Caller
NameDescribe
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