函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Subpool accounting for freeing and unreserving pages.* Return the number of global page reservations that must be dropped.* The return value may only be different than the passed value (delta)* in the case where a subpool minimum size must be maintained.

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

返回类型:long

参数:

类型参数名称
struct hugepage_subpool *spool
longdelta
182  ret等于delta
184  如果非spool则返回:delta
187  加自旋锁
189  如果 Maximum huge pages or -1 if no maximum. 不等于负1则 Used count against maximum, includes 减等于delta
193  如果 Minimum huge pages or -1 if no minimum. 不等于负1且 Used count against maximum, includes 小于 Minimum huge pages or -1 if no minimum.
194  如果 Pages reserved against global pool to delta小于等于 Minimum huge pages or -1 if no minimum. ret等于0
196  否则ret等于 Pages reserved against global pool to delta Minimum huge pages or -1 if no minimum.
199  Pages reserved against global pool to 加等于delta
200  如果 Pages reserved against global pool to 大于 Minimum huge pages or -1 if no minimum. Pages reserved against global pool to 等于 Minimum huge pages or -1 if no minimum.
208  unlock_or_release_subpool(spool)
210  返回:ret
调用者
名称描述
__free_huge_page
alloc_huge_page
hugetlb_vm_op_close
hugetlb_reserve_pages
hugetlb_unreserve_pages