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

Proto:static void fill_stats(struct user_namespace *user_ns, struct pid_namespace *pid_ns, struct task_struct *tsk, struct taskstats *stats)

Type:void

Parameter:

TypeParameterName
struct user_namespace *user_ns
struct pid_namespace *pid_ns
struct task_struct *tsk
struct taskstats *stats
163  memset(stats, 0, size of stats )
171  delayacct_add_tsk(stats, tsk)
174  The version number of this struct. This field is always set to * TAKSTATS_VERSION, which is defined in . * Each time the struct is changed, the value should be incremented. = Format for per-task data returned to userland when* - a task exits* - listener requests stats for a task* The struct is versioned
175  voluntary_ctxt_switches = Context switch counts:
176  nonvoluntary_ctxt_switches = nivcsw
177  ll in basic accounting fields
180  xacct_add_tsk(stats, tsk)
Caller
NameDescribe
fill_stats_for_pid
taskstats_exitSend pid data out on exit