函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__parse_crashkernel

函数原型: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)

返回类型:int

参数:

类型参数名称
char *cmdline
unsigned long longsystem_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  如果非ck_cmdline则返回:负EINVAL
246  ck_cmdline加等于strlen - Find the length of a string*@s: The string to be sized
248  如果suffix则返回: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
257  如果first_colon且非first_spacefirst_colon小于first_space的值则返回:This function parses command lines in the format* crashkernel=ramsize-range:size[,...][@offset]* The function returns 0 on success and -EINVAL on failure.
261  返回:That function parses "simple" (old) crashkernel command lines like* crashkernel=size[@offset]* It returns 0 on success and -EINVAL on failure.
调用者
名称描述
parse_crashkernelThat function is the entry point for command line parsing and should be* called from the arch-specific code.
parse_crashkernel_high
parse_crashkernel_low