函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\binfmt_elf.c Create Date:2022-07-29 11:02:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:total_mapping_size

函数原型:static unsigned long total_mapping_size(const struct elf64_phdr *cmds, int nr)

返回类型:unsigned long

参数:

类型参数名称
const struct elf64_phdr *cmds
intnr
391  first_idx等于负1, last_idx等于负1
393 i小于nr循环
394  如果p_type恒等于PT_LOAD
395  last_idx等于i
396  如果first_idx恒等于负1则first_idx等于i
400  如果first_idx恒等于负1则返回:0
403  返回: Segment virtual address Segment size in memory ELF_PAGESTART( Segment virtual address )
调用者
名称描述
load_elf_interpThis is much more generalized than the library routine read function,so we keep this separate. Technically the library read functionis only provided so that we can read a.out libraries that havean ELF header
load_elf_binary