Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:prep_compound_gigantic_page

Proto:static void prep_compound_gigantic_page(struct page *page, unsigned int order)

Type:void

Parameter:

TypeParameterName
struct page *page
unsigned intorder
1265  nr_pages = 1 << order
1266  p = page + 1
1269  set_compound_order(page, order)
1270  __ClearPageReserved(page)
1271  __SetPageHead(page)
1272  When i < nr_pages cycle
1285  __ClearPageReserved(p)
1286  set_page_count(p, 0)
1287  set_compound_head(p, page)
1289  atomic_set(compound_mapcount_ptr(page), - 1)
Caller
NameDescribe
alloc_fresh_huge_pageCommon helper to allocate a fresh hugetlb page. All specific allocators* should use this function to get new hugetlb pages
prep_compound_huge_page