Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\nlattr.c Create Date:2022-07-28 07:16:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:nla_validate_array

Proto:static int nla_validate_array(const struct nlattr *head, int len, int maxtype, const struct nla_policy *policy, struct netlink_ext_ack *extack, unsigned int validate)

Type:int

Parameter:

TypeParameterName
const struct nlattr *head
intlen
intmaxtype
const struct nla_policy *policy
struct netlink_ext_ack *extack
unsigned intvalidate
81  If la_len - length of payload*@nla: netlink attribute == 0 Then Continue
84  If la_len - length of payload*@nla: netlink attribute < NLA_HDRLEN Then
85  NL_SET_ERR_MSG_ATTR(extack, entry, "Array element too short")
87  Return -ERANGE
90  ret = __nla_validate(la_data - head of payload*@nla: netlink attribute, la_len - length of payload*@nla: netlink attribute, maxtype, policy, validate, extack)
92  If ret < 0 Then Return ret
96  Return 0
Caller
NameDescribe
validate_nla