Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:match_wildcard: - parse if a string matches given wildcard pattern*@pattern: wildcard pattern*@str: the string to be parsed* Description: Parse the string @str to check if matches wildcard* pattern @pattern

Proto:bool match_wildcard(const char *pattern, const char *str)

Type:bool

Parameter:

TypeParameterName
const char *pattern
const char *str
251  s = str
252  p = pattern
253  bool star = false
255  When s cycle
257  Case p == '?'
258  s++
259  p++
260  Break
261  Case p == '*'
262  star = true
263  str = s
264  If Not *++p Then Return true
266  pattern = p
267  Break
268  Default
269  If s == p Then
270  s++
271  p++
272  Else
273  If Not star Then Return false
275  str++
276  s = str
277  p = pattern
279  Break
283  If p == '*' Then ++p
285  Return Not p
Caller
NameDescribe
ddebug_changeSearch the tables for _ddebug's which match the given `query' and* apply the `flags' and `mask' to them. Returns number of matching* callsites, normally the same as number of changes. If verbose,* logs the changes. Takes ddebug_lock.