Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kimage_add_entry

Proto:static int kimage_add_entry(struct kimage *image, kimage_entry_t entry)

Type:int

Parameter:

TypeParameterName
struct kimage *image
kimage_entry_tentry
536  If entry != 0 Then entry++
539  If entry == last_entry Then
543  page = kimage_alloc_page(image, GFP_KERNEL, KIMAGE_NO_DEST is an impossible destination address..., for* allocating pages whose destination address we do not care about.)
544  If Not page Then Return -ENOMEM
547  ind_page = page_address(page)
548  entry = virt_to_boot_phys(ind_page) | IND_INDIRECTION
549  entry = ind_page
550  last_entry = ind_page + PAGE_SIZE / sizeof(kimage_entry_t) - 1
553  entry = entry
554  entry++
555  entry = 0
557  Return 0
Caller
NameDescribe
kimage_set_destination
kimage_add_page