Function report |
Source Code:kernel\kexec_core.c |
Create Date:2022-07-28 11:02:42 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kimage_alloc_crash_control_pages
Proto:static struct page *kimage_alloc_crash_control_pages(struct kimage *image, unsigned int order)
Type:struct page
Parameter:
Type | Parameter | Name |
---|---|---|
struct kimage * | image | |
unsigned int | order |
443 | pages = NULL |
444 | size = 1 << order << PAGE_SHIFT determines the page size |
445 | hole_start = Address of next control page to allocate for crash kernels. + size - 1 & ~(size - 1) |
446 | hole_end = hole_start + size - 1 |
450 | cond_resched() |
452 | If hole_end > KEXEC_CRASH_CONTROL_MEMORY_LIMIT Then Break |
455 | When i < nr_segments cycle |
460 | If hole_end >= mstart && hole_start <= mend Then |
468 | If i == nr_segments Then |
471 | Break |
476 | If pages Then arch_kexec_post_alloc_pages(page_address(pages), 1 << order, 0) |
479 | Return pages |
Name | Describe |
---|---|
kimage_alloc_control_pages |
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 |