Function report |
Source Code:arch\x86\kernel\crash.c |
Create Date:2022-07-28 08:37:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Prepare memory map for crash dump kernel
Proto:int crash_setup_memmap_entries(struct kimage *image, struct boot_params *params)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct kimage * | image | |
struct boot_params * | params |
334 | ret = 0 |
344 | memset( & cmd, 0, sizeof(structcrash_memmap_data)) |
348 | Type of memory = E820_TYPE_RAM |
350 | walk_iomem_res_desc(IORES_DESC_NONE, flags, 0, (1 << 20) - 1, & cmd, memmap_entry_callback) |
354 | Type of memory = E820_TYPE_ACPI |
356 | walk_iomem_res_desc(IORES_DESC_ACPI_TABLES, flags, 0, - 1, & cmd, memmap_entry_callback) |
360 | Type of memory = E820_TYPE_NVS |
361 | walk_iomem_res_desc(IORES_DESC_ACPI_NV_STORAGE, flags, 0, - 1, & cmd, memmap_entry_callback) |
366 | flags = IORESOURCE_MEM |
367 | walk_iomem_res_desc(IORES_DESC_RESERVED, flags, 0, - 1, & cmd, memmap_entry_callback) |
371 | If end Then |
374 | type = E820_TYPE_RAM |
375 | add_e820_entry(params, & ei) |
390 | type = E820_TYPE_RAM |
391 | add_e820_entry(params, & ei) |
394 | out : |
396 | Return ret |
Name | Describe |
---|---|
setup_boot_parameters |
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 |