函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Increment or decrement surplus_huge_pages. Keep node-specific counters* balanced by operating on them in a round-robin fashion.* Returns 1 if an adjustment was made.

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

返回类型:int

参数:

类型参数名称
struct hstate *h
nodemask_t *nodes_allowed
intdelta
2282  VM_BUG_ON(delta != - 1 && delta != 1)
2284  如果delta小于0则
2286  如果surplus_huge_pages_node[node]则转到:found
2289  否则
2291  如果surplus_huge_pages_node[node]小于nr_huge_pages_node[node]则转到:found
2296  返回:0
2298  found :
2299  surplus_huge_pages加等于delta
2300  surplus_huge_pages_node[node]加等于delta
2301  返回:1
调用者
名称描述
set_max_huge_pages