函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:taskstats_pre_doit

函数原型:static int taskstats_pre_doit(const struct genl_ops *ops, struct sk_buff *skb, struct genl_info *info)

返回类型:int

参数:

类型参数名称
const struct genl_ops *ops
struct sk_buff *skb
struct genl_info *info
667  const struct nla_policy * policy = NULL
670  :cmd恒等于TASKSTATS_CMD_GET
671  policy等于taskstats_cmd_get_policy
672  退出
673  :cmd恒等于CGROUPSTATS_CMD_GET
674  policy等于We have to use TASKSTATS_CMD_ATTR_MAX here, it is the maxattr in the family.* Make sure they are always aligned.
675  退出
676  默认
677  返回:负EINVAL
680  返回:lmsg_validate_deprecated - validate a netlink message including attributes*@nlh: netlinket message header*@hdrlen: length of familiy specific header*@maxtype: maximum attribute type to be expected*@policy: validation policy*@extack: extended ACK report