Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Returns true if the VMA has associated reserve pages

Proto:static bool vma_has_reserves(struct vm_area_struct *vma, long chg)

Type:bool

Parameter:

TypeParameterName
struct vm_area_struct *vma
longchg
760  If Flags, see mm.h. & should the VM suppress accounting Then
770  If Flags, see mm.h. & VM_MAYSHARE && chg == 0 Then Return true
772  Else Return false
777  If Flags, see mm.h. & VM_MAYSHARE Then
785  If chg Then Return false
787  Else Return true
795  If is_vma_resv_set(vma, Flags for MAP_PRIVATE reservations. These are stored in the bottom* bits of the reservation map pointer, which are always clear due to* alignment.) Then
811  If chg Then Return false
813  Else Return true
817  Return false
Caller
NameDescribe
dequeue_huge_page_vma
alloc_huge_page