Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\crash.c Create Date:2022-07-28 08:37:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Prepare elf headers. Return addr and size

Proto:static int prepare_elf_headers(struct kimage *image, void **addr, unsigned long *sz)

Type:int

Parameter:

TypeParameterName
struct kimage *image
void **addr
unsigned long *sz
267  cmem = Gather all the required information to prepare elf headers for ram regions
268  If Not cmem Then Return -ENOMEM
271  ret = walk_system_ram_res(0, - 1, cmem, prepare_elf64_ram_headers_callback)
272  If ret Then Go to 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  If ret Then Go to 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  Return ret
Caller
NameDescribe
crash_load_segments