Function report |
Source Code:kernel\kexec_elf.c |
Create Date:2022-07-28 11:04:59 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:elf_read_phdr
Proto:static int elf_read_phdr(const char *buf, size_t len, struct kexec_elf_info *elf_info, int idx)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const char * | buf | |
size_t | len | |
struct kexec_elf_info * | elf_info | |
int | idx |
207 | struct elf64_phdr * phdr = (struct elf_phdr * ) & proghdrs[idx] |
215 | p_type = elf32_to_cpu(ehdr, p_type) |
216 | p_flags = elf32_to_cpu(ehdr, p_flags) |
219 | Case ELF "magic number" [EI_CLASS] == ELFCLASS64 |
226 | Break |
228 | Case ELF "magic number" [EI_CLASS] == ELFCLASS32 |
235 | Break |
237 | Default |
242 | Return If lf_is_phdr_sane - check that it is safe to use the program header*@buf_len: size of the buffer in which the ELF file is loaded. Then 0 Else -ENOEXEC |
Name | Describe |
---|---|
elf_read_phdrs | lf_read_phdrs - read the program headers from the buffer* This function assumes that the program header table was checked for sanity.* Use elf_is_ehdr_sane() if it wasn't. |
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 |