函数逻辑报告 |
Source Code:mm\hugetlb_cgroup.c |
Create Date:2022-07-27 17:50:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:hugetlb_cgroup_charge_cgroup
函数原型:int hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages, struct hugetlb_cgroup **ptr)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
int | idx | |
unsigned long | nr_pages | |
struct hugetlb_cgroup ** | ptr |
184 | ret等于0 |
186 | struct hugetlb_cgroup * h_cg = NULL |
188 | 如果hugetlb_cgroup_disabled()则转到:done |
194 | 如果huge_page_order( & hstates[idx])小于Minimum page order trackable by hugetlb cgroup.* At least 3 pages are necessary for all the tracking information.则转到:done |
196 | again : |
198 | h_cg等于hugetlb_cgroup_from_task(当前进程) |
201 | 转到:again |
207 | 设置一个css引用 |
208 | done : |
210 | 返回:ret |
名称 | 描述 |
---|---|
alloc_huge_page |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |