函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vma_gap_callbacks_compute_max

函数原型:static inline bool vma_gap_callbacks_compute_max(struct vm_area_struct *node, bool exit)

返回类型:bool

参数:

类型参数名称
struct vm_area_struct *node
boolexit
433  max等于vma_compute_gap(node)
433  如果rb_left
433  child = ({
433  __mptr等于rb_left
433  循环
433  当0循环
433  })
433  如果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.大于maxmax等于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.
433  如果rb_right
433  child = ({
433  __mptr等于rb_right
433  循环
433  当0循环
433  })
433  如果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.大于maxmax等于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.
433  如果exitLargest 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.恒等于max则返回:true
433  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.等于max
433  返回:false
调用者
名称描述
vma_gap_callbacks_propagate
vma_gap_callbacks_rotate