Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:fill_stats_for_pid

Proto:static int fill_stats_for_pid(pid_t pid, struct taskstats *stats)

Type:int

Parameter:

TypeParameterName
pid_tpid
struct taskstats *stats
187  tsk = find_get_task_by_vpid(pid)
188  If Not tsk Then Return -ESRCH
190  fill_stats(current_user_ns(), task_active_pid_ns(current process), tsk, stats)
191  put_task_struct(tsk)
192  Return 0
Caller
NameDescribe
cmd_attr_pid