函数逻辑报告 | 
Source Code:mm\memcontrol.c | 
Create Date:2022-07-27 17:47:37 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:mem_cgroup_move_account - move account of the page*@page: the page*@compound: charge the page as compound or small page*@from: mem_cgroup which the page is moved from.*@to: mem_cgroup which the page is moved to. @from != @to.
函数原型:static int mem_cgroup_move_account(struct page *page, bool compound, struct mem_cgroup *from, struct mem_cgroup *to)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct page * | page | |
| bool | compound | |
| struct mem_cgroup * | from | |
| struct mem_cgroup * | to | 
| 5293 | nr_pages等于如果compound则hpage_nr_pages(page)否则1 | 
| 5298 | VM_BUG_ON_PAGE(PageLRU(page), page) | 
| 5310 | 如果mem_cgroup不等于from则转到:out_unlock | 
| 5315 | pgdat等于page_pgdat(page) | 
| 5352 | mem_cgroup等于to | 
| 5356 | ret等于0 | 
| 5358 | 禁止中断() | 
| 5359 | mem_cgroup_charge_statistics(to, page, compound, nr_pages) | 
| 5361 | mem_cgroup_charge_statistics(from, page, compound, - nr_pages) | 
| 5363 | 开中断() | 
| 5364 | out_unlock : | 
| 5366 | out : | 
| 5367 | 返回:ret | 
| 名称 | 描述 | 
|---|---|
| mem_cgroup_move_charge_pte_range | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |