函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:la_parse_nested - parse nested attributes*@tb: destination array with maxtype+1 elements*@maxtype: maximum attribute type to be expected*@nla: attribute containing the nested attributes*@policy: validation policy*@extack: extended ACK report struct* See

函数原型:static inline int nla_parse_nested(struct nlattr *tb[], int maxtype, const struct nlattr *nla, const struct nla_policy *policy, struct netlink_ext_ack *extack)

返回类型:int

参数:

类型参数名称
struct nlattr *tb
intmaxtype
const struct nlattr *nla
const struct nla_policy *policy
struct netlink_ext_ack *extack
1142  如果非nla_type按位与la_type (16 bits)* +---+---+-------------------------------+* | N | O | Attribute Type |* +---+---+-------------------------------+* N := Carries nested attributes* O := Payload stored in network byte order* Note: The N and O flag are mutually exclusive.的值则
1143  NL_SET_ERR_MSG_ATTR(extack, nla, "NLA_F_NESTED is missing")
1144  返回:负EINVAL
1147  返回:__nla_parse(tb, maxtype, 有效载荷的头部, 有效载荷的长度, policy, NL_VALIDATE_STRICT, extack)