Function report |
Source Code:arch\x86\boot\cmdline.c |
Create Date:2022-07-28 07:26:31 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Find a boolean option (like quiet,noapic,nosmp....)* Returns the position of that option (starts counting with 1)* or 0 on not found
Proto:int __cmdline_find_option_bool(unsigned long cmdline_ptr, const char *option)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | cmdline_ptr | |
const char * | option |
105 | const char * opptr = NULL |
106 | enum{st_wordstart, st_wordcmp, st_wordskip, state = st_wordstart |
112 | If Not cmdline_ptr Then Return -1 |
115 | cptr = cmdline_ptr & 0xf |
116 | set_fs(cmdline_ptr >> 4) |
120 | pos++ |
123 | Case state == st_wordstart |
124 | If Not c Then Return 0 |
129 | state = st_wordcmp |
134 | Case state == st_wordcmp |
137 | Return wstart |
138 | Else state = st_wordskip |
140 | Else if Not c Then Return 0 |
142 | Else if c != opptr++ Then state = st_wordskip |
144 | Break |
146 | Case state == st_wordskip |
147 | If Not c Then Return 0 |
151 | Break |
155 | Return 0 |
Name | Describe |
---|---|
cmdline_find_option_bool |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |