Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kexec_core.c Create Date:2022-07-28 11:02:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kimage_alloc_pages

Proto:static struct page *kimage_alloc_pages(gfp_t gfp_mask, unsigned int order)

Type:struct page

Parameter:

TypeParameterName
gfp_tgfp_mask
unsigned intorder
303  If fatal_signal_pending(current process) Then Return NULL
305  pages = alloc_pages(gfp_mask & ~__GFP_ZERO, order)
306  If pages Then
309  See page-flags.h for PAGE_MAPPING_FLAGS = NULL
310  set_page_private(pages, order)
311  count = 1 << order
312  When i < count cycle SetPageReserved(pages + i)
315  arch_kexec_post_alloc_pages(page_address(pages), count, gfp_mask)
318  If gfp_mask & __GFP_ZERO Then When i < count cycle
320  clear_highpage(pages + i)
323  Return pages
Caller
NameDescribe
kimage_alloc_normal_control_pages
kimage_alloc_page