Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vm_mmap

Proto:unsigned long vm_mmap(struct file *file, unsigned long addr, unsigned long len, unsigned long prot, unsigned long flag, unsigned long offset)

Type:unsigned long

Parameter:

TypeParameterName
struct file *file
unsigned longaddr
unsigned longlen
unsigned longprot
unsigned longflag
unsigned longoffset
520  If Value for the false possibility is greater at compile time(offset + align the pointer to the (next) page boundary (len) < offset) Then Return -EINVAL
522  If Value for the false possibility is greater at compile time(offset_in_page(offset)) Then Return -EINVAL
525  Return vm_mmap_pgoff(file, addr, len, prot, flag, offset >> PAGE_SHIFT determines the page size )
Caller
NameDescribe
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