| Function report | 
| Source Code: kernel\crash_core.c | Create Date:2022-07-28 11:01:33 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:get_last_crashkernel
Proto:static __init char *get_last_crashkernel(char *cmdline, const char *name, const char *suffix)
Type:char
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| char * | cmdline | |
| const char * | name | |
| const char * | suffix | 
| 190 | char * p = cmdline, * ck_cmdline = NULL | 
| 193 | p = strstr - Find the first substring in a %NUL terminated string*@s1: The string to be searched*@s2: The string to search for | 
| 195 | end_p = 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 | 
| 198 | If Not end_p Then end_p = p + strlen - Find the length of a string*@s: The string to be sized | 
| 201 | If Not suffix Then | 
| 205 | When suffix_tbl[i] cycle | 
| 207 | If Not strncmp(q, suffix_tbl[i], strlen - Find the length of a string*@s: The string to be sized) Then Go to next | 
| 211 | ck_cmdline = p | 
| 212 | Else | 
| 214 | If Not strncmp(q, suffix, strlen - Find the length of a string*@s: The string to be sized) Then ck_cmdline = p | 
| 217 | next : | 
| 221 | If Not ck_cmdline Then Return NULL | 
| 224 | Return ck_cmdline | 
| Name | Describe | 
|---|---|
| __parse_crashkernel | 
| 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 |