函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Subpool accounting for allocating and reserving pages

函数原型:static long hugepage_subpool_get_pages(struct hugepage_subpool *spool, long delta)

返回类型:long

参数:

类型参数名称
struct hugepage_subpool *spool
longdelta
137  ret等于delta
139  如果非spool则返回:ret
142  加自旋锁
144  如果 Maximum huge pages or -1 if no maximum. 不等于负1则
145  如果 Used count against maximum, includes delta小于等于 Maximum huge pages or -1 if no maximum. Used count against maximum, includes 加等于delta
147  否则
148  ret等于负ENOMEM
149  转到:unlock_ret
154  如果 Minimum huge pages or -1 if no minimum. 不等于负1且 Pages reserved against global pool to
162  否则
163  ret等于0
168  unlock_ret :
169  自旋锁解锁
170  返回:ret
调用者
名称描述
hugetlb_fix_reserve_countsA rare out of memory error was encountered which prevented removal of* the reserve map region for a page. The huge page itself was free'ed* and removed from the page cache. This routine will adjust the subpool
alloc_huge_page
hugetlb_reserve_pages