函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kexec_core.c Create Date:2022-07-27 12:04:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kimage_alloc_crash_control_pages

函数原型:static struct page *kimage_alloc_crash_control_pages(struct kimage *image, unsigned int order)

返回类型:struct page

参数:

类型参数名称
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_startsize减1
447 hole_end小于等于end循环
450  cond_resched()
452  如果hole_end大于KEXEC_CRASH_CONTROL_MEMORY_LIMIT退出
455 i小于nr_segments循环
458  mstart等于mem
459  mend等于mstartmemsz减1
460  如果hole_end大于等于mstarthole_start小于等于mend
462  hole_start等于mendsize减1按位与size减1的差的反
463  hole_end等于hole_startsize减1
464  退出
468  如果i恒等于nr_segments
471  退出
476  如果pagesarch_kexec_post_alloc_pages(page_address(pages), 1 << order, 0)
479  返回:pages
调用者
名称描述
kimage_alloc_control_pages