Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:is_vma_resv_set

Proto:static int is_vma_resv_set(struct vm_area_struct *vma, unsigned long flag)

Type:int

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longflag
744  VM_BUG_ON_VMA(!is_vm_hugetlb_page(vma), vma)
746  Return (These helpers are used to track how many pages are reserved for* faults in a MAP_PRIVATE mapping & flag) != 0
Caller
NameDescribe
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