Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kimage_crash_copy_vmcoreinfo

Proto:int kimage_crash_copy_vmcoreinfo(struct kimage *image)

Type:int

Parameter:

TypeParameterName
struct kimage *image
505  If Flags to indicate special processing != KEXEC_TYPE_CRASH Then Return 0
517  vmcoreinfo_page = kimage_alloc_control_pages(image, 0)
518  If Not vmcoreinfo_page Then
519  pr_warn("Could not allocate vmcoreinfo buffer\n")
520  Return -ENOMEM
522  safecopy = vmap( & vmcoreinfo_page, 1, vmap()ed pages , PAGE_KERNEL)
523  If Not safecopy Then
524  pr_warn("Could not vmap vmcoreinfo buffer\n")
525  Return -ENOMEM
528  locates in the crash memory = safecopy
529  crash_update_vmcoreinfo_safecopy(safecopy)
531  Return 0
Caller
NameDescribe
do_kexec_load
SYSCALL_DEFINE5