Function report | 
Source Code:kernel\crash_core.c | 
Create Date:2022-07-28 11:01:35 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:__parse_crashkernel
Proto:static int __init __parse_crashkernel(char *cmdline, unsigned long long system_ram, unsigned long long *crash_size, unsigned long long *crash_base, const char *name, const char *suffix)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| char * | cmdline | |
| unsigned long long | system_ram | |
| unsigned long long * | crash_size | |
| unsigned long long * | crash_base | |
| const char * | name | |
| const char * | suffix | 
| 237 | BUG_ON(!crash_size || !crash_base) | 
| 238 | crash_size = 0 | 
| 239 | crash_base = 0 | 
| 241 | ck_cmdline = get_last_crashkernel(cmdline, name, suffix) | 
| 243 | If Not ck_cmdline Then Return -EINVAL | 
| 248 | If suffix Then Return That function parses "suffix" crashkernel command lines like* crashkernel=size,[high|low]* It returns 0 on success and -EINVAL on failure. | 
| 255 | first_colon = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for | 
| 256 | first_space = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for | 
| Name | Describe | 
|---|---|
| parse_crashkernel | That function is the entry point for command line parsing and should be* called from the arch-specific code. | 
| parse_crashkernel_high | |
| parse_crashkernel_low | 
| 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  |