Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__nlmsg_parse - parse attributes of a netlink message*@nlh: netlink message header*@hdrlen: length of family specific header*@tb: destination array with maxtype+1 elements*@maxtype: maximum attribute type to be expected*@policy: validation

Proto:static inline int __nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy, unsigned int validate, struct netlink_ext_ack *extack)

Type:int

Parameter:

TypeParameterName
const struct nlmsghdr *nlh
inthdrlen
struct nlattr *tb
intmaxtype
const struct nla_policy *policy
unsigned intvalidate
struct netlink_ext_ack *extack
661  If Length of message including header < lmsg_msg_size - length of netlink message not including padding*@payload: length of message payload Then
662  Always use this macro, this allows later putting the* message into a separate section or such for things* like translation or listing all possible messages.* Currently string formatting is not supported (due* to the lack of an output buffer.)(extack, "Invalid header length")
663  Return -EINVAL
666  Return __nla_parse(tb, maxtype, 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, policy, validate, extack)