函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\crash_core.c Create Date:2022-07-27 12:02:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:get_last_crashkernel

函数原型:static __init char *get_last_crashkernel(char *cmdline, const char *name, const char *suffix)

返回类型:char

参数:

类型参数名称
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 p循环
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  如果非end_pend_p等于pstrlen - Find the length of a string*@s: The string to be sized
201  如果非suffix
205 suffix_tbl[i]循环
211  ck_cmdline等于p
212  否则
214  如果非字符串指定长度比较ck_cmdline等于p
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  如果非ck_cmdline则返回:NULL
224  返回:ck_cmdline
调用者
名称描述
__parse_crashkernel