Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:la_strcmp - Compare a string attribute against a string*@nla: netlink string attribute*@str: another string

Proto:int nla_strcmp(const struct nlattr *nla, const char *str)

Type:int

Parameter:

TypeParameterName
const struct nlattr *nla
const char *str
607  len = strlen(str)
608  buf = la_data - head of payload*@nla: netlink attribute
609  attrlen = la_len - length of payload*@nla: netlink attribute
612  If attrlen > 0 && buf[attrlen - 1] == '\0' Then attrlen--
615  d = attrlen - len
616  If d == 0 Then d = memcmp(la_data - head of payload*@nla: netlink attribute, str, len)
619  Return d