函数逻辑报告 |
Source Code:mm\ksm.c |
Create Date:2022-07-27 17:14:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:ry_to_merge_one_page - take two pages and merge them into one*@vma: the vma that holds the pte pointing to page*@page: the PageAnon page that we want to replace with kpage*@kpage: the PageKsm page that we want to map instead of page,
函数原型:static int try_to_merge_one_page(struct vm_area_struct *vma, struct page *page, struct page *kpage)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_area_struct * | vma | |
struct page * | page | |
struct page * | kpage |
1224 | 如果split_huge_page(page)则转到:out_unlock |
1234 | 如果write_protect_page(vma, page, & orig_pte)恒等于0则 |
1235 | 如果非kpage则 |
1254 | 如果Flags, see mm.h. 按位与VM_LOCKED且kpage且非err则 |
1256 | 如果非PageMlocked(kpage)则 |
1264 | out_unlock : |
1266 | out : |
1267 | 返回:err |
名称 | 描述 |
---|---|
try_to_merge_with_ksm_page | ry_to_merge_with_ksm_page - like try_to_merge_two_pages,* but no new kernel page is allocated: kpage must already be a ksm page.* This function returns 0 if the pages were merged, -EFAULT otherwise. |
cmp_and_merge_page | mp_and_merge_page - first see if page can be merged into the stable tree;* if not, compare checksum to previous and if it's the same, see if page can* be inserted into the unstable tree, or merged with a page already there and |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |