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:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Gather all the required information to prepare elf headers for ram regions

Proto:static struct crash_mem *fill_up_crash_elf_data(void)

Type:struct crash_mem

Parameter:Nothing

202  nr_ranges = 0
205  walk_system_ram_res(0, - 1, & nr_ranges, get_nr_ram_ranges_callback)
206  If Not nr_ranges Then Return NULL
213  nr_ranges += 2
214  cmem = vzalloc(struct_size() - Calculate size of structure with trailing array.*@p: Pointer to the structure.*@member: Name of the array member.*@n: Number of elements in the array.* Calculates size of memory needed for structure @p followed by an(cmem, ranges, nr_ranges))
215  If Not cmem Then Return NULL
218  max_nr_ranges = nr_ranges
219  nr_ranges = 0
221  Return cmem
Caller
NameDescribe
prepare_elf_headersPrepare elf headers. Return addr and size