Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto: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)

Type:int

Parameter:

TypeParameterName
struct nlattr *tb
intmaxtype
const struct nlattr *nla
const struct nla_policy *policy
struct netlink_ext_ack *extack
1142  If Not (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.) Then
1143  NL_SET_ERR_MSG_ATTR(extack, nla, "NLA_F_NESTED is missing")
1144  Return -EINVAL
1147  Return __nla_parse(tb, maxtype, la_data - head of payload*@nla: netlink attribute, la_len - length of payload*@nla: netlink attribute, policy, NL_VALIDATE_STRICT, extack)