函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Gather all the required information to prepare elf headers for ram regions

函数原型:static struct crash_mem *fill_up_crash_elf_data(void)

返回类型:struct crash_mem

参数:

202  nr_ranges等于0
205  walk_system_ram_res(0, - 1, & nr_ranges, get_nr_ram_ranges_callback)
206  如果非nr_ranges则返回: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  如果非cmem则返回:NULL
218  max_nr_ranges等于nr_ranges
219  nr_ranges等于0
221  返回:cmem
调用者
名称描述
prepare_elf_headersPrepare elf headers. Return addr and size