Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:taskstats_pre_doit

Proto:static int taskstats_pre_doit(const struct genl_ops *ops, struct sk_buff *skb, struct genl_info *info)

Type:int

Parameter:

TypeParameterName
const struct genl_ops *ops
struct sk_buff *skb
struct genl_info *info
667  const struct nla_policy * policy = NULL
670  Case cmd == TASKSTATS_CMD_GET
671  policy = taskstats_cmd_get_policy
672  Break
673  Case 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  Break
676  Default
677  Return -EINVAL
680  Return 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