Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Allocates a fresh page to the hugetlb allocator pool in the node interleaved* manner.

Proto:static int alloc_pool_huge_page(struct hstate *h, nodemask_t *nodes_allowed, nodemask_t *node_alloc_noretry)

Type:int

Parameter:

TypeParameterName
struct hstate *h
nodemask_t *nodes_allowed
nodemask_t *node_alloc_noretry
1417  gfp_mask = Movability of hugepages depends on migration support. | __GFP_THISNODE
1420  page = Common helper to allocate a fresh hugetlb page. All specific allocators* should use this function to get new hugetlb pages
1422  If page Then Break
1426  If Not page Then Return 0
1429  Perform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page.
1431  Return 1
Caller
NameDescribe
hugetlb_hstate_alloc_pages
set_max_huge_pages