函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempolicy.c Create Date:2022-07-27 17:04:29
Last Modify:2020-03-17 22:28:11 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:page allocation callback for NUMA node migration

函数原型:struct page *alloc_new_node_page(struct page *page, unsigned long node)

返回类型:struct page

参数:

类型参数名称
struct page *page
unsigned longnode
1017  如果PageHuge() only returns true for hugetlbfs pages, but not for normal or* transparent huge pages. See the PageTransHuge() documentation for more* details.则返回:page migration callback function
1020  否则如果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
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  如果非thp则返回:NULL
1028  prep_transhuge_page(thp)
1029  返回:thp
1030  否则返回:Allocate pages, preferring the node given as nid. The node must be valid and* online. For more general interface, see alloc_pages_node().