函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Allocates a fresh page to the hugetlb allocator pool in the node interleaved* manner.

函数原型:static int alloc_pool_huge_page(struct hstate *h, nodemask_t *nodes_allowed, nodemask_t *node_alloc_noretry)

返回类型:int

参数:

类型参数名称
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  如果page退出
1426  如果非page则返回: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  返回:1
调用者
名称描述
hugetlb_hstate_alloc_pages
set_max_huge_pages