函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\migrate.h Create Date:2022-07-27 06:54:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:new_page_nodemask

函数原型:static inline struct page *new_page_nodemask(struct page *page, int preferred_nid, nodemask_t *nodemask)

返回类型:struct page

参数:

类型参数名称
struct page *page
intpreferred_nid
nodemask_t *nodemask
37  gfp_mask等于GFP_USER按位或ZONE_MOVABLE allowed 按位或__GFP_RETRY_MAYFAIL
38  order等于0
39  struct page * new_page = NULL
41  如果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
45  如果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
46  gfp_mask或等于GFP_TRANSHUGE
47  order等于HPAGE_PMD_ORDER
50  如果PageHighMem(page)或zone_idx() returns 0 for the ZONE_DMA zone, 1 for the ZONE_NORMAL zone, etc.(page_zone(page))恒等于标记为虚拟内存域gfp_mask或等于__GFP_HIGHMEM
53  new_page等于This is the 'heart' of the zoned buddy allocator.
56  如果new_pagePageHuge() 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 beprep_transhuge_page(new_page)
59  返回:new_page
调用者
名称描述
new_page
alloc_migrate_target