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

Name:crash_load_segments

Proto:int crash_load_segments(struct kimage *image)

Type:int

Parameter:

TypeParameterName
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  If ret Then Return 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  If ret Then
418  vfree((void * )elf_headers)
419  Return 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  Return ret
Caller
NameDescribe
bzImage64_load