Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\cputime.c Create Date:2022-07-28 09:37:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Account 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

Proto:void account_user_time(struct task_struct *p, u64 cputime)

Type:void

Parameter:

TypeParameterName
struct task_struct *p
u64cputime
122  utime += cputime
123  account_group_user_time - Maintain utime for a thread group
125  index = If ask_nice - return the nice value of a given task.*@p: the task in question.* Return: The nice value [ -20 ... 0 ... 19 ]. > 0 Then CPUTIME_NICE Else CPUTIME_USER
128  task_group_account_field(p, index, cputime)
131  acct_account_cputime(p)
Caller
NameDescribe
account_process_tickAccount a single tick of CPU time.*@p: the process that the CPU time gets accounted to*@user_tick: indicates if the tick is a user or a system tick