Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kimage_alloc_normal_control_pages

Proto:static struct page *kimage_alloc_normal_control_pages(struct kimage *image, unsigned int order)

Type:struct page

Parameter:

TypeParameterName
struct kimage *image
unsigned intorder
370  count = 1 << order
371  Initialization list head
376  Do
379  pages = kimage_alloc_pages(KEXEC_CONTROL_MEMORY_GFP, order)
380  If Not pages Then Break
382  pfn = page_to_boot_pfn(pages)
383  epfn = pfn + count
384  addr = pfn << PAGE_SHIFT determines the page size
385  eaddr = epfn << PAGE_SHIFT determines the page size
389  pages = NULL
391  When Not pages cycle
393  If pages Then
395  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
411  kimage_free_page_list( & extra_pages)
413  Return pages
Caller
NameDescribe
kimage_alloc_control_pages