函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\gup.c Create Date:2022-07-27 16:01:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:new_non_cma_page

函数原型:static struct page *new_non_cma_page(struct page *page, unsigned long private)

返回类型:struct page

参数:

类型参数名称
struct page *page
unsigned longprivate
1400  nid等于page_to_nid(page)
1408  gfp_mask等于GFP_USER按位或DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success.
1410  如果PageHighMem(page)则gfp_mask或等于__GFP_HIGHMEM
1414  如果PageHuge(page)则
1415  h等于page_hstate(page)
1420  返回:alloc_migrate_huge_page(h, gfp_mask, nid, NULL)
1423  如果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
1428  thp_gfpmask等于GFP_TRANSHUGE按位或DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success.
1434  thp_gfpmask与等于ZONE_MOVABLE allowed 的反
1435  thp等于Allocate pages, preferring the node given as nid. The node must be valid and* online. For more general interface, see alloc_pages_node().
1436  如果非thp则返回:NULL
1438  prep_transhuge_page(thp)
1439  返回:thp
1442  返回:Allocate pages, preferring the node given as nid. The node must be valid and* online. For more general interface, see alloc_pages_node().