函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Insert vm structure into process list sorted by address* and into the inode's i_mmap tree. If vm_file is non-NULL* then i_mmap_rwsem is taken here.

函数原型:int insert_vm_struct(struct mm_struct *mm, struct vm_area_struct *vma)

返回类型:int

参数:

类型参数名称
struct mm_struct *mm
struct vm_area_struct *vma
3155  如果find_vma_links(mm, Our start address within vm_mm. , The first byte after our end addresswithin vm_mm. , & prev, & rb_link, & rb_parent)则返回:负ENOMEM
3158  如果Flags, see mm.h. 按位与Is a VM accounted object security_vm_enough_memory_mm(mm, vma_pages(vma))则返回:负ENOMEM
3174  如果vma_is_anonymous(vma)则
3175  BUG_ON(Serialized by page_table_lock )
3176  Offset (within vm_file) in PAGE_SIZEunits 等于Our start address within vm_mm. 右移PAGE_SHIFT determines the page size
3179  vma_link(mm, vma, prev, rb_link, rb_parent)
3180  返回:0
调用者
名称描述
__install_special_mapping
__bprm_mm_init