函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kexec_core.c Create Date:2022-07-27 12:04:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kimage_free

函数原型:void kimage_free(struct kimage *image)

返回类型:void

参数:

类型参数名称
struct kimage *image
616  ind等于0
618  如果非image则返回
621  如果 locates in the crash memory
622  crash_update_vmcoreinfo_safecopy(NULL)
623  vunmap( locates in the crash memory )
626  kimage_free_extra_pages(image)
628  如果entry按位与IND_INDIRECTION
630  如果ind按位与IND_INDIRECTIONkimage_free_entry(ind)
635  ind等于entry
636  否则如果entry按位与IND_SOURCEkimage_free_entry(entry)
640  如果ind按位与IND_INDIRECTIONkimage_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 set, we are using file mode kexec syscall kimage_file_post_load_cleanup(image)
656  kfree(image)
调用者
名称描述
do_kexec_load
SYSCALL_DEFINE5