函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Prepare elf headers. Return addr and size

函数原型:static int prepare_elf_headers(struct kimage *image, void **addr, unsigned long *sz)

返回类型:int

参数:

类型参数名称
struct kimage *image
void **addr
unsigned long *sz
267  cmem等于Gather all the required information to prepare elf headers for ram regions
268  如果非cmem则返回:负ENOMEM
271  ret等于walk_system_ram_res(0, - 1, cmem, prepare_elf64_ram_headers_callback)
272  如果ret则转到:out
276  ret等于Look for any unwanted ranges between mstart, mend and remove them. This* might lead to split and split ranges are put in cmem->ranges[] array
277  如果ret则转到:out
281  ret等于crash_prepare_elf64_headers(cmem, IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_X86_64), addr, sz)
283  out :
284  vfree(cmem)
285  返回:ret
调用者
名称描述
crash_load_segments