Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\binfmt_elf_fdpic.c Create Date:2022-07-28 20:29:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:is_elf

Proto:static int is_elf(struct elf32_hdr *hdr, struct file *file)

Type:int

Parameter:

TypeParameterName
struct elf32_hdr *hdr
struct file *file
106  If memcmp(e_ident, ELFMAG, SELFMAG) != 0 Then Return 0
108  If e_type != ET_EXEC && e_type != ET_DYN Then Return 0
110  If Not elf_check_arch(hdr) Then Return 0
112  If Not mmap Then Return 0
114  Return 1
Caller
NameDescribe
load_elf_fdpic_binaryload an fdpic binary into various bits of memory