Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kexec_elf.c Create Date:2022-07-28 11:04:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:elf32_to_cpu

Proto:static uint32_t elf32_to_cpu(const struct elf64_hdr *ehdr, uint32_t value)

Type:uint32_t

Parameter:

TypeParameterName
const struct elf64_hdr *ehdr
uint32_tvalue
41  If ELF "magic number" [EI_DATA] == ELFDATA2LSB Then value = le32_to_cpu(value)
43  Else if ELF "magic number" [EI_DATA] == ELFDATA2MSB Then value = be32_to_cpu(value)
46  Return value
Caller
NameDescribe
elf_read_ehdr
elf_read_phdr