Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hugetlb_vm_op_close

Proto:static void hugetlb_vm_op_close(struct vm_area_struct *vma)

Type:void

Parameter:

TypeParameterName
struct vm_area_struct *vma
3178  h = hstate_vma(vma)
3179  resv = vma_resv_map(vma)
3180  spool = subpool_vma(vma)
3184  If Not resv || Not 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 Return
3187  start = Convert the address within this vma to the page offset within* the mapping, in pagecache page units; huge pages here.
3188  end = Convert the address within this vma to the page offset within* the mapping, in pagecache page units; huge pages here.
3190  reserve = end - start - Count and return the number of huge pages in the reserve map* that intersect with the range [f, t).
3192  kref_put - decrement refcount for object.*@kref: object.*@release: pointer to the function that will clean up the object when the* last reference to the object is released.* This pointer is required, and it is not acceptable to pass kfree
3194  If reserve Then
3199  gbl_reserve = Subpool accounting for freeing and unreserving pages.* Return the number of global page reservations that must be dropped.* The return value may only be different than the passed value (delta)* in the case where a subpool minimum size must be maintained.
3200  Forward declaration