Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Dissolve free hugepages in a given pfn range

Proto:int dissolve_free_huge_pages(unsigned long start_pfn, unsigned long end_pfn)

Type:int

Parameter:

TypeParameterName
unsigned longstart_pfn
unsigned longend_pfn
1534  rc = 0
1536  If Not hugepages_supported() Then Return rc
1539  When pfn < end_pfn cycle
1540  page = pfn_to_page(pfn)
1541  rc = Dissolve a given free hugepage into free buddy pages. This function does* nothing for in-use hugepages and non-hugepages.* This function returns values like below:* -EBUSY: failed to dissolved free hugepages or the hugepage is in-use
1542  If rc Then Break
1546  Return rc