Function report |
Source Code:arch\x86\boot\cmdline.c |
Create Date:2022-07-28 07:26:29 |
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 non-boolean option, that is, "option=argument". In accordance* with standard Linux practice, if this option is repeated, this returns* the last instance on the command line.* Returns the length of the argument (regardless of if it was
Proto:int __cmdline_find_option(unsigned long cmdline_ptr, const char *option, char *buffer, int bufsize)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | cmdline_ptr | |
const char * | option | |
char * | buffer | |
int | bufsize |
32 | len = -1 |
33 | const char * opptr = NULL |
35 | enum{st_wordstart, st_wordcmp, st_wordskip, st_bufcpy}state = st_wordstart |
42 | If Not cmdline_ptr Then Return -1 |
45 | cptr = cmdline_ptr & 0xf |
46 | set_fs(cmdline_ptr >> 4) |
50 | Case state == st_wordstart |
55 | state = st_wordcmp |
59 | Case state == st_wordcmp |
71 | Case state == st_wordskip |
74 | Break |
91 | Return len |
Name | Describe |
---|---|
cmdline_find_option |
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 |