Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:page migration callback function

Proto:struct page *alloc_huge_page_nodemask(struct hstate *h, int preferred_nid, nodemask_t *nmask)

Type:struct page

Parameter:

TypeParameterName
struct hstate *h
intpreferred_nid
nodemask_t *nmask
1658  gfp_mask = Movability of hugepages depends on migration support.
1660  spin_lock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.)
1661  If free_huge_pages - resv_huge_pages > 0 Then
1664  page = dequeue_huge_page_nodemask(h, gfp_mask, preferred_nid, nmask)
1665  If page Then
1667  Return page
1670  spin_unlock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.)
1672  Return alloc_migrate_huge_page(h, gfp_mask, preferred_nid, nmask)
Caller
NameDescribe
alloc_huge_page_vmamempolicy aware migration callback
new_page_nodemask