函数逻辑报告 |
Source Code:mm\memcontrol.c |
Create Date:2022-07-27 17:48:58 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:mem_cgroup_migrate - charge a page's replacement*@oldpage: currently circulating page*@newpage: replacement page* Charge @newpage as a replacement page for @oldpage. @oldpage will* be uncharged upon free.
函数原型:void mem_cgroup_migrate(struct page *oldpage, struct page *newpage)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct page * | oldpage | |
| struct page * | newpage |
| 6641 | VM_BUG_ON_PAGE(!PageLocked(oldpage), oldpage) |
| 6642 | VM_BUG_ON_PAGE(!PageLocked(newpage), newpage) |
| 6647 | 如果mem_cgroup_disabled()则返回 |
| 6651 | 如果mem_cgroup则返回 |
| 6655 | memcg等于mem_cgroup |
| 6656 | 如果非memcg则返回 |
| 6661 | nr_pages等于如果compound则hpage_nr_pages(newpage)否则1 |
| 6666 | 获取指定CSS参考 |
| 6668 | commit_charge(newpage, memcg, false) |
| 6670 | local_irq_save(flags) |
| 6673 | local_irq_restore(flags) |
| 名称 | 描述 |
|---|---|
| migrate_page_states | Copy the page to its new location |
| replace_page_cache_page | place_page_cache_page - replace a pagecache page with a new one*@old: page to be replaced*@new: page to replace with*@gfp_mask: allocation mode* This function replaces a page in the pagecache with a new one |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |