函数逻辑报告 |
Source Code:kernel\kexec_elf.c |
Create Date:2022-07-27 12:06:32 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:elf_read_phdr
函数原型:static int elf_read_phdr(const char *buf, size_t len, struct kexec_elf_info *elf_info, int idx)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| 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 | 当: ELF "magic number" [EI_CLASS]恒等于ELFCLASS64 |
| 226 | 退出 |
| 228 | 当: ELF "magic number" [EI_CLASS]恒等于ELFCLASS32 |
| 235 | 退出 |
| 237 | 默认 |
| 242 | 返回:如果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.则0否则负ENOEXEC |
| 名称 | 描述 |
|---|---|
| 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. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |