Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-28 15:31:41
Last Modify:2020-03-17 22:28:11 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:page allocation callback for NUMA node migration

Proto:struct page *alloc_new_node_page(struct page *page, unsigned long node)

Type:struct page

Parameter:

TypeParameterName
struct page *page
unsigned longnode
1017  If PageHuge() only returns true for hugetlbfs pages, but not for normal or* transparent huge pages. See the PageTransHuge() documentation for more* details. Then Return page migration callback function
1020  Else if PageHuge() only returns true for hugetlbfs pages, but not for* normal or transparent huge pages.* PageTransHuge() returns true for both transparent huge and* hugetlbfs pages, but not normal pages. PageTransHuge() can only be Then
1023  thp = Allocate pages, preferring the node given as nid. When nid == NUMA_NO_NODE,* prefer the current CPU's closest node. Otherwise node must be valid and* online.
1026  If Not thp Then Return NULL
1028  prep_transhuge_page(thp)
1029  Return thp
1030  Else Return Allocate pages, preferring the node given as nid. The node must be valid and* online. For more general interface, see alloc_pages_node().