函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:That function parses "simple" (old) crashkernel command lines like* crashkernel=size[@offset]* It returns 0 on success and -EINVAL on failure.

函数原型:static int __init parse_crashkernel_simple(char *cmdline, unsigned long long *crash_size, unsigned long long *crash_base)

返回类型:int

参数:

类型参数名称
char *cmdline
unsigned long long *crash_size
unsigned long long *crash_base
126  cur等于cmdline
128  crash_size等于memparse - parse a string with mem suffixes into a number*@ptr: Where parse begins*@retptr: (output) Optional pointer to next char after parse completes* Parses a string into a number. The number stored at @ptr is
129  如果cmdline恒等于cur
130  打印警告信息("crashkernel: memory value expected\n")
131  返回:负EINVAL
134  如果cur恒等于'@'则crash_base等于memparse - parse a string with mem suffixes into a number*@ptr: Where parse begins*@retptr: (output) Optional pointer to next char after parse completes* Parses a string into a number. The number stored at @ptr is
136  否则如果cur不等于' '且cur不等于'\0'则
137  打印警告信息("crashkernel: unrecognized char: %c\n", * cur)
138  返回:负EINVAL
141  返回:0
调用者
名称描述
__parse_crashkernel