Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lmsg_find_attr - find a specific attribute in a netlink message*@nlh: netlink message header*@hdrlen: length of familiy specific header*@attrtype: type of attribute to look for* Returns the first attribute which matches the specified type.

Proto:static inline struct nlattr *nlmsg_find_attr(const struct nlmsghdr *nlh, int hdrlen, int attrtype)

Type:struct nlattr

Parameter:

TypeParameterName
const struct nlmsghdr *nlh
inthdrlen
intattrtype
741  Return nla_find(lmsg_attrdata - head of attributes data*@nlh: netlink message header*@hdrlen: length of family specific header, lmsg_attrlen - length of attributes data*@nlh: netlink message header*@hdrlen: length of family specific header, attrtype)