函数逻辑报告 |
Source Code:mm\hugetlb.c |
Create Date:2022-07-27 16:58:27 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 | |
int | delta |
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |