函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\util.c Create Date:2022-07-27 15:45:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:vm_mmap

函数原型:unsigned long vm_mmap(struct file *file, unsigned long addr, unsigned long len, unsigned long prot, unsigned long flag, unsigned long offset)

返回类型:unsigned long

参数:

类型参数名称
struct file *file
unsigned longaddr
unsigned longlen
unsigned longprot
unsigned longflag
unsigned longoffset
520  如果此条件成立可能性小(为编译器优化)(offset + align the pointer to the (next) page boundary (len) < offset)则返回:负EINVAL
522  如果此条件成立可能性小(为编译器优化)(offset_in_page(offset))则返回:负EINVAL
525  返回:vm_mmap_pgoff(file, addr, len, prot, flag, offset >> PAGE_SHIFT determines the page size )
调用者
名称描述
test_user_copy_init
load_aout_binaryThese are the functions used to load a.out style executables and shared* libraries. There is no binary dependent code anywhere else.
load_aout_library
elf_map
load_elf_binary
elf_fdpic_map_file_by_direct_mmapmap a binary by direct mmap() of the individual PT_LOAD segments
load_flat_file
copy_user_test