函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:crash_load_segments

函数原型:int crash_load_segments(struct kimage *image)

返回类型:int

参数:

类型参数名称
struct kimage *image
402  struct kexec_buf kbuf = {image = image, buf_min = 0, buf_max = ULONG_MAX, top_down = TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0.}
406  ret等于Prepare elf headers. Return addr and size
407  如果ret则返回:ret
410  elf_headers等于buffer
411  elf_headers_sz等于bufsz
413  memsz等于bufsz
414  buf_align等于Alignment required for elf header segment
415  mem等于If kexec_buf.mem is set to this value, kexec_locate_mem_hole()* will try to allocate free memory. Arch may overwrite it.
416  ret等于kexec_add_buffer( & kbuf)
417  如果ret
418  vfree((void * )elf_headers)
419  返回:ret
421  elf_load_addr等于mem
422  pr_debug("Loaded ELF headers at 0x%lx bufsz=0x%lx memsz=0x%lx\n", elf_load_addr, bufsz, bufsz)
425  返回:ret
调用者
名称描述
bzImage64_load