函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\taskstats.c Create Date:2022-07-27 12:54:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:fill_stats

函数原型:static void fill_stats(struct user_namespace *user_ns, struct pid_namespace *pid_ns, struct task_struct *tsk, struct taskstats *stats)

返回类型:void

参数:

类型参数名称
struct user_namespace *user_ns
struct pid_namespace *pid_ns
struct task_struct *tsk
struct taskstats *stats
163  memset(stats, 0, 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 等于切换计数
176  nonvoluntary_ctxt_switches 等于上下文切换计数
177  ll in basic accounting fields
180  xacct_add_tsk(stats, tsk)
调用者
名称描述
fill_stats_for_pid
taskstats_exitSend pid data out on exit