Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:parse_option_str - Parse a string and check an option is set or not*@str: String to be parsed*@option: option name* This function parses a string containing a comma-separated list of* strings like a=b,c.

Proto:bool parse_option_str(const char *str, const char *option)

Type:bool

Parameter:

TypeParameterName
const char *str
const char *option
179  When str cycle
180  If Not strncmp(str, option, strlen(option)) Then
181  str += strlen(option)
182  If Not str || str == ',' Then Return true
186  When str && str != ',' cycle
187  str++
189  If str == ',' Then str++
193  Return false