函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\netlink.h Create Date:2022-07-27 07:04:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__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

函数原型: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)

返回类型:int

参数:

类型参数名称
const struct nlmsghdr *nlh
inthdrlen
struct nlattr *tb
intmaxtype
const struct nla_policy *policy
unsigned intvalidate
struct netlink_ext_ack *extack
661  如果 Length of message including header 小于Netlink消息不包括填充长度
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  返回:负EINVAL
666  返回:__nla_parse(tb, maxtype, 属性数据头, 属性数据长度, policy, validate, extack)
调用者
名称描述
nlmsg_parselmsg_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*@validate: validation
nlmsg_parse_deprecatedlmsg_parse_deprecated - 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*@extack: extended ACK
nlmsg_parse_deprecated_strictlmsg_parse_deprecated_strict - 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*@extack: extended
genlmsg_parse_deprecatedgenlmsg_parse_deprecated - parse attributes of a genetlink message*@nlh: netlink message header*@family: genetlink message family*@tb: destination array with maxtype+1 elements*@maxtype: maximum attribute type to be expected*@policy: validation
genlmsg_parsegenlmsg_parse - parse attributes of a genetlink message*@nlh: netlink message header*@family: genetlink message family*@tb: destination array with maxtype+1 elements*@maxtype: maximum attribute type to be expected*@policy: validation policy*@extack: