函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\string.c Create Date:2022-07-27 06:59:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:字符串查找

函数原型:char *strnstr(const char *s1, const char *s2, size_t len)

返回类型:char

参数:

类型参数名称
const char *s1
const char *s2
size_tlen
973  l2等于strlen(s2)
974  如果非l2则返回:s1
976 len大于等于l2循环
977  len自减
978  如果非memcmp(s1, s2, l2)则返回:s1
980  s1自加
982  返回:NULL
调用者
名称描述
__lookupn_profile__lookupn_profile - lookup the profile matching @hname*@base: base list to start looking up profile name from (NOT NULL)*@hname: hierarchical profile name (NOT NULL)*@n: length of @hname* Requires: rcu_read_lock be held* Returns: unrefcounted profile
__aa_lookupn_ns__aa_lookupn_ns - lookup the namespace matching @hname*@base: base list to start looking up profile name from (NOT NULL)*@hname: hierarchical ns name (NOT NULL)*@n: length of @hname* Requires: rcu_read_lock be held* Returns: unrefcounted ns pointer or
regex_match_middle