函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__vma_link_rb

函数原型:void __vma_link_rb(struct mm_struct *mm, struct vm_area_struct *vma, struct rb_node **rb_link, struct rb_node *rb_parent)

返回类型:void

参数:

类型参数名称
struct mm_struct *mm
struct vm_area_struct *vma
struct rb_node **rb_link
struct rb_node *rb_parent
592  如果linked list of VM areas per task, sorted by address Update augmented rbtree rb_subtree_gap values after vma->vm_start or* in the rbtree.
594  否则 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)
调用者
名称描述
__vma_link
dup_mmap