Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\gup.c Create Date:2022-07-28 14:35:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:new_non_cma_page

Proto:static struct page *new_non_cma_page(struct page *page, unsigned long private)

Type:struct page

Parameter:

TypeParameterName
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  If PageHighMem(page) Then gfp_mask |= __GFP_HIGHMEM
1414  If PageHuge(page) Then
1415  h = page_hstate(page)
1420  Return alloc_migrate_huge_page(h, gfp_mask, nid, NULL)
1423  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
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  If Not thp Then Return NULL
1438  prep_transhuge_page(thp)
1439  Return thp
1442  Return Allocate pages, preferring the node given as nid. The node must be valid and* online. For more general interface, see alloc_pages_node().