Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:PageHeadHuge() only returns true for hugetlbfs head page, but not for* normal or transparent huge pages.

Proto:int PageHeadHuge(struct page *page_head)

Type:int

Parameter:

TypeParameterName
struct page *page_head
1313  If Not PageHead(page_head) Then Return 0
1316  Return get_compound_page_dtor(page_head) == free_huge_page
Caller
NameDescribe
set_page_huge_activever called for tail page
clear_page_huge_active
page_to_pgoffGet the offset in PAGE_SIZE.* (TODO: hugepage should have ->index in PAGE_SIZE)