函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vm_brk_flags

函数原型:int vm_brk_flags(unsigned long addr, unsigned long request, unsigned long flags)

返回类型:int

参数:

类型参数名称
unsigned longaddr
unsigned longrequest
unsigned longflags
3045  mm等于mm
3049  LIST_HEAD(uf)
3051  len等于 align the pointer to the (next) page boundary (request)
3052  如果len小于request则返回:负ENOMEM
3054  如果非len则返回:0
3057  如果lock for writing则返回:负EINTR
3060  ret等于his is really a simplified "do_mmap". it only handles* anonymous maps. eventually we may be able to do some* brk-specific accounting here.
3061  populate等于def_flags按位与VM_LOCKED的值不等于0
3062  lease a write lock
3063  userfaultfd_unmap_complete(mm, & uf)
3064  如果populate且非retmm_populate(addr, len)
3066  返回:ret
调用者
名称描述
vm_brk
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
set_brk