函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hugepage_new_subpool

函数原型:struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages, long min_hpages)

返回类型:struct hugepage_subpool

参数:

类型参数名称
struct hstate *h
longmax_hpages
longmin_hpages
99  spool等于分配内存并置零
100  如果非spool则返回:NULL
103  spin_lock_init( & lock)
104  count等于1
105  Maximum huge pages or -1 if no maximum. 等于max_hpages
106  both alloced and reserved pages. 等于h
107  Minimum huge pages or -1 if no minimum. 等于min_hpages
109  如果min_hpages不等于负1且Forward declaration
110  释放内存
111  返回:NULL
113  Pages reserved against global pool to 等于min_hpages
115  返回:spool