Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kimage_free

Proto:void kimage_free(struct kimage *image)

Type:void

Parameter:

TypeParameterName
struct kimage *image
616  ind = 0
618  If Not image Then Return
621  If locates in the crash memory Then
622  crash_update_vmcoreinfo_safecopy(NULL)
623  vunmap( locates in the crash memory )
626  kimage_free_extra_pages(image)
628  If entry & IND_INDIRECTION Then
630  If ind & IND_INDIRECTION Then kimage_free_entry(ind)
635  ind = entry
636  Else if entry & IND_SOURCE Then kimage_free_entry(entry)
640  If ind & IND_INDIRECTION Then kimage_free_entry(ind)
644  Undo anything leftover by machine_kexec_prepare* when an image is freed.
647  kimage_free_page_list( & control_pages)
653  If If set, we are using file mode kexec syscall Then kimage_file_post_load_cleanup(image)
656  kfree(image)
Caller
NameDescribe
do_kexec_load
SYSCALL_DEFINE5