Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:la_find - Find a specific attribute in a stream of attributes*@head: head of attribute stream*@len: length of attribute stream*@attrtype: type of attribute to look for* Returns the first attribute in the stream matching the specified type.

Proto:struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype)

Type:struct nlattr

Parameter:

TypeParameterName
const struct nlattr *head
intlen
intattrtype
496  la_for_each_attr - iterate over a stream of attributes*@pos: loop counter, set to current attribute*@head: head of attribute stream*@len: length of attribute stream*@rem: initialized to len, holds bytes currently remaining in stream(nla, head, len, rem)
497  If la_type - attribute type*@nla: netlink attribute == attrtype Then Return nla
500  Return NULL
Caller
NameDescribe
nla_find_nestedla_find_nested - find attribute in a set of nested attributes*@nla: attribute containing the nested attributes*@attrtype: type of attribute to look for* Returns the first attribute which matches the specified type.