Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\netlink.h Create Date:2022-07-28 06:06:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static inline int nlmsg_validate_deprecated(const struct nlmsghdr *nlh, int hdrlen, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack)

Type:int

Parameter:

TypeParameterName
const struct nlmsghdr *nlh
inthdrlen
intmaxtype
const struct nla_policy *policy
struct netlink_ext_ack *extack
805  If Length of message including header < lmsg_msg_size - length of netlink message not including padding*@payload: length of message payload Then Return -EINVAL
808  Return __nla_validate(lmsg_attrdata - head of attributes data*@nlh: netlink message header*@hdrlen: length of family specific header, lmsg_attrlen - length of attributes data*@nlh: netlink message header*@hdrlen: length of family specific header, maxtype, policy, NL_VALIDATE_LIBERAL, extack)
Caller
NameDescribe
taskstats_pre_doit