Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vma_gap_callbacks_compute_max

Proto:static inline bool vma_gap_callbacks_compute_max(struct vm_area_struct *node, bool exit)

Type:bool

Parameter:

TypeParameterName
struct vm_area_struct *node
boolexit
433  max = vma_compute_gap(node)
433  If rb_left Then
433  child = ({
433  __mptr = rb_left
433  Do
433  When 0 cycle
433  })
433  If 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 Then max = 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  If rb_right Then
433  child = ({
433  __mptr = rb_right
433  Do
433  When 0 cycle
433  })
433  If 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 Then max = 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  If exit && 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 Then Return 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  Return false
Caller
NameDescribe
vma_gap_callbacks_propagate
vma_gap_callbacks_rotate