Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:prep_new_huge_page

Proto:static void prep_new_huge_page(struct hstate *h, struct page *page, int nid)

Type:void

Parameter:

TypeParameterName
struct hstate *h
struct page *page
intnid
1253  Initialization list head
1254  set_compound_page_dtor(page, HUGETLB_PAGE_DTOR)
1255  spin_lock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.)
1256  set_hugetlb_cgroup(page, NULL)
1257  nr_huge_pages++
1258  nr_huge_pages_node[nid]++
1259  spin_unlock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.)
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
gather_bootmem_preallocPut bootmem huge pages into the standard lists after mem_map is up