函数逻辑报告 |
Source Code:mm\memcontrol.c |
Create Date:2022-07-27 17:49:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:mem_cgroup_swapout - transfer a memsw charge to swap*@page: page whose memsw charge to transfer*@entry: swap entry to move the charge to* Transfer the memsw charge of @page to @entry.
函数原型:void mem_cgroup_swapout(struct page *page, swp_entry_t entry)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct page * | page | |
swp_entry_t | entry |
6866 | VM_BUG_ON_PAGE(PageLRU(page), page) |
6867 | VM_BUG_ON_PAGE(page_count(page), page) |
6869 | 如果非Whether legacy memory+swap accounting is active 则返回 |
6872 | memcg等于mem_cgroup |
6875 | 如果非memcg则返回 |
6884 | nr_entries等于hpage_nr_pages(page) |
6886 | 如果nr_entries大于1则mem_cgroup_id_get_many(swap_memcg, nr_entries - 1) |
6890 | VM_BUG_ON_PAGE(oldid, page) |
6893 | mem_cgroup = NULL |
6895 | 如果非mem_cgroup_is_root(memcg)则page_counter_uncharge - hierarchically uncharge pages*@counter: counter*@nr_pages: number of pages to uncharge |
6898 | 如果memcg不等于swap_memcg则 |
6915 | 如果非mem_cgroup_is_root(memcg)则设置一个css引用 |
名称 | 描述 |
---|---|
__remove_mapping | Same as remove_mapping, but if the page is removed from the mapping, it* gets returned with a refcount of 0. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |