Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:int insert_vm_struct(struct mm_struct *mm, struct vm_area_struct *vma)

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
struct vm_area_struct *vma
3155  If find_vma_links(mm, Our start address within vm_mm. , The first byte after our end addresswithin vm_mm. , & prev, & rb_link, & rb_parent) Then Return -ENOMEM
3158  If Flags, see mm.h. & Is a VM accounted object && security_vm_enough_memory_mm(mm, vma_pages(vma)) Then Return -ENOMEM
3174  If vma_is_anonymous(vma) Then
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  Return 0
Caller
NameDescribe
__install_special_mapping