Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:validate_nla_bitfield32

Proto:static int validate_nla_bitfield32(const struct nlattr *nla, const u32 *valid_flags_mask)

Type:int

Parameter:

TypeParameterName
const struct nlattr *nla
const u32 *valid_flags_mask
50  bf = la_data - head of payload*@nla: netlink attribute
52  If Not valid_flags_mask Then Return -EINVAL
56  If selector & ~valid_flags_mask Then Return -EINVAL
60  If value & ~valid_flags_mask Then Return -EINVAL
64  If value & ~selector Then Return -EINVAL
67  Return 0
Caller
NameDescribe
validate_nla