函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kimage_add_entry

函数原型:static int kimage_add_entry(struct kimage *image, kimage_entry_t entry)

返回类型:int

参数:

类型参数名称
struct kimage *image
kimage_entry_tentry
536  如果entry不等于0则entry自加
539  如果entry恒等于last_entry
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  如果非page则返回:负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_pagePAGE_SIZEsizeof(kimage_entry_t)减1
553  entry等于entry
554  entry自加
555  entry等于0
557  返回:0
调用者
名称描述
kimage_set_destination
kimage_add_page