Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__vma_link_rb

Proto:void __vma_link_rb(struct mm_struct *mm, struct vm_area_struct *vma, struct rb_node **rb_link, struct rb_node *rb_parent)

Type:void

Parameter:

TypeParameterName
struct mm_struct *mm
struct vm_area_struct *vma
struct rb_node **rb_link
struct rb_node *rb_parent
592  If linked list of VM areas per task, sorted by address Then Update augmented rbtree rb_subtree_gap values after vma->vm_start or* in the rbtree.
594  Else highest vma end address = vm_end_gap(vma)
606  rb_link_node( & vm_rb, rb_parent, rb_link)
607  Largest free memory gap in bytes to the left of this VMA.* Either between this VMA and vma->vm_prev, or between one of the* VMAs below us in the VMA rbtree and its ->vm_prev. This helps* get_unmapped_area find a free area of the right size. = 0
608  Update augmented rbtree rb_subtree_gap values after vma->vm_start or* in the rbtree.
609  vma_rb_insert(vma, & mm_rb)
Caller
NameDescribe
__vma_link