函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:is_vma_resv_set

函数原型:static int is_vma_resv_set(struct vm_area_struct *vma, unsigned long flag)

返回类型:int

参数:

类型参数名称
struct vm_area_struct *vma
unsigned longflag
744  VM_BUG_ON_VMA(!is_vm_hugetlb_page(vma), vma)
746  返回:These helpers are used to track how many pages are reserved for* faults in a MAP_PRIVATE mapping按位与flag的值不等于0
调用者
名称描述
vma_has_reservesReturns true if the VMA has associated reserve pages
__vma_reservation_common
hugetlb_vm_op_open
hugetlb_vm_op_close
unmap_ref_privateThis is called when the original mapper is failing to COW a MAP_PRIVATE* mappping it owns the reserve page for. The intention is to unmap the page* from other VMAs and let the children be SIGKILLed if they are faulting the* same region.
hugetlb_cowHugetlb_cow() should be called with page lock of the original hugepage held.* Called with hugetlb_instantiation_mutex held and pte_page locked so we* cannot race with other handlers or page migration.
hugetlb_no_page
hugetlb_reserve_pages