Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\hugetlb.c Create Date:2022-07-28 15:26:31
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_node(struct hstate *h, int nid)

Type:struct page

Parameter:

TypeParameterName
struct hstate *h
intnid
1637  gfp_mask = Movability of hugepages depends on migration support.
1638  struct page * page = NULL
1640  If nid != NUMA_NO_NODE Then gfp_mask |= __GFP_THISNODE
1643  spin_lock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.)
1644  If free_huge_pages - resv_huge_pages > 0 Then page = dequeue_huge_page_nodemask(h, gfp_mask, nid, NULL)
1646  spin_unlock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.)
1648  If Not page Then page = alloc_migrate_huge_page(h, gfp_mask, nid, NULL)
1651  Return page
Caller
NameDescribe
alloc_new_node_pagepage allocation callback for NUMA node migration