Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:get_last_crashkernel

Proto:static __init char *get_last_crashkernel(char *cmdline, const char *name, const char *suffix)

Type:char

Parameter:

TypeParameterName
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
194  When p cycle
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
211  ck_cmdline = p
212  Else
217  :
218  p = strstr - Find the first substring in a %NUL terminated string*@s1: The string to be searched*@s2: The string to search for
221  If Not ck_cmdline Then Return NULL
224  Return ck_cmdline
Caller
NameDescribe
__parse_crashkernel