Function report |
Source Code:kernel\kexec_elf.c |
Create Date:2022-07-28 11:05:07 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kexec_elf_load - load ELF executable image*@lowest_load_addr: On return, will be the address where the first PT_LOAD* section will be loaded in memory.* Return:* 0 on success, negative value on failure.
Proto:int kexec_elf_load(struct kimage *image, struct elf64_hdr *ehdr, struct kexec_elf_info *elf_info, struct kexec_buf *kbuf, unsigned long *lowest_load_addr)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct kimage * | image | |
struct elf64_hdr * | ehdr | |
struct kexec_elf_info * | elf_info | |
struct kexec_buf * | kbuf | |
unsigned long * | lowest_load_addr |
393 | lowest_addr = UINT_MAX |
407 | size = Segment size in file |
408 | If size > Segment size in memory Then size = Segment size in memory |
411 | buffer = buffer + Segment file offset |
413 | memsz = Segment size in memory |
416 | mem = If kexec_buf.mem is set to this value, kexec_locate_mem_hole()* will try to allocate free memory. Arch may overwrite it. |
422 | If load_addr < lowest_addr Then lowest_addr = load_addr |
426 | lowest_load_addr = lowest_addr |
427 | ret = 0 |
428 | out : |
429 | Return ret |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |