Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct kimage *image
unsigned intorder
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
447  When hole_end <= end cycle
450  cond_resched()
452  If hole_end > KEXEC_CRASH_CONTROL_MEMORY_LIMIT Then Break
455  When i < nr_segments cycle
458  mstart = mem
459  mend = mstart + memsz - 1
460  If hole_end >= mstart && hole_start <= mend Then
462  hole_start = mend + size - 1 & ~(size - 1)
463  hole_end = hole_start + size - 1
464  Break
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
Caller
NameDescribe
kimage_alloc_control_pages