函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Returns true if the VMA has associated reserve pages

函数原型:static bool vma_has_reserves(struct vm_area_struct *vma, long chg)

返回类型:bool

参数:

类型参数名称
struct vm_area_struct *vma
longchg
760  如果Flags, see mm.h. 按位与should the VM suppress accounting
770  如果Flags, see mm.h. 按位与VM_MAYSHAREchg恒等于0则返回:true
772  否则返回:false
777  如果Flags, see mm.h. 按位与VM_MAYSHARE
785  如果chg则返回:false
787  否则返回:true
795  如果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.)则
811  如果chg则返回:false
813  否则返回:true
817  返回:false
调用者
名称描述
dequeue_huge_page_vma
alloc_huge_page