Function report |
Source Code:kernel\crash_core.c |
Create Date:2022-07-28 11:01:28 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:This function parses command lines in the format* crashkernel=ramsize-range:size[,...][@offset]* The function returns 0 on success and -EINVAL on failure.
Proto:static int __init parse_crashkernel_mem(char *cmdline, unsigned long long system_ram, unsigned long long *crash_size, unsigned long long *crash_base)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| char * | cmdline | |
| unsigned long long | system_ram | |
| unsigned long long * | crash_size | |
| unsigned long long * | crash_base |
| 44 | Do |
| 45 | end = ULLONG_MAX |
| 54 | If cur != '-' Then |
| 58 | cur++ |
| 61 | If cur != ':' Then |
| 74 | If cur != ':' Then |
| 78 | cur++ |
| 86 | If size >= system_ram Then |
| 92 | If system_ram >= start && system_ram < end Then |
| 93 | crash_size = size |
| 94 | Break |
| 98 | If crash_size > 0 Then |
| 100 | cur++ |
| 101 | If cur == '@' Then |
| 109 | Else pr_info("crashkernel size resulted in zero bytes\n") |
| 112 | Return 0 |
| 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 |