函数逻辑报告 |
Source Code:arch\x86\kernel\setup.c |
Create Date:2022-07-27 08:39:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:reserve_crashkernel
函数原型:static void __init reserve_crashkernel(void)
返回类型:void
参数:无
545 | bool high = false |
548 | total_mem等于memblock_phys_mem_size() |
551 | ret等于parse_crashkernel(boot_command_line, total_mem, & crash_size, & crash_base) |
552 | 如果ret不等于0或crash_size小于等于0则 |
554 | ret等于parse_crashkernel_high(boot_command_line, total_mem, & crash_size, & crash_base) |
556 | 如果ret不等于0或crash_size小于等于0则返回 |
558 | high = true |
561 | 如果xen_pv_domain()则 |
562 | 打印信息("Ignoring crashkernel for a Xen PV domain\n") |
563 | 返回 |
567 | 如果非crash_base则 |
580 | 如果非crash_base则crash_base等于memblock_find_in_range(16M alignment for crash kernel regions , CRASH_ADDR_HIGH_MAX, crash_size, 16M alignment for crash kernel regions ) |
584 | 如果非crash_base则 |
585 | 打印信息("crashkernel reservation failed - No suitable area found.\n") |
586 | 返回 |
588 | 否则 |
591 | start等于memblock_find_in_range(crash_base, crash_base + crash_size, crash_size, 1 << 20) |
594 | 如果start不等于crash_base则 |
595 | 打印信息("crashkernel reservation failed - memory is in use.\n") |
596 | 返回 |
600 | 如果ret则 |
605 | 如果crash_base大于等于1ULL左移32位且reserve_crashkernel_low()则 |
607 | 返回 |
610 | 打印信息("Reserving %ldMB of memory at %ldMB for crashkernel (System RAM: %ldMB)\n", (unsignedlong)(crash_size >> 20), (unsignedlong)(crash_base >> 20), (unsignedlong)(total_mem >> 20)) |
615 | start等于crash_base |
616 | end等于crash_base加crash_size减1 |
名称 | 描述 |
---|---|
setup_arch | 平台相关启动 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |