函数逻辑报告 |
Source Code:mm\ksm.c |
Create Date:2022-07-27 17:13:42 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:We use break_ksm to break COW on a ksm page: it's a stripped down* if (get_user_pages(addr, 1, 1, 1, &page, NULL) == 1)* put_page(page);* but taking great care only to touch a ksm page, in a VM_MERGEABLE vma,
函数原型:static int break_ksm(struct vm_area_struct *vma, unsigned long addr)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_area_struct * | vma | |
unsigned long | addr |
473 | ret等于0 |
475 | 循环 |
476 | cond_resched() |
477 | page等于follow_page(vma, addr, do get_page on page | wait for page to replace migration entry | we are working on non-current tsk/mm ) |
484 | 否则ret等于VM_FAULT_WRITE |
487 | 当非ret按位与VM_FAULT_WRITE按位或VM_FAULT_SIGBUS按位或VM_FAULT_SIGSEGV按位或VM_FAULT_OOM的值的值循环 |
516 | 返回:如果ret按位与VM_FAULT_OOM则负ENOMEM否则0 |
名称 | 描述 |
---|---|
break_cow | |
unmerge_ksm_pages | Though it's very tempting to unmerge rmap_items from stable tree rather* than check every pte of a given vma, the locking doesn't quite work for* that - an rmap_item is assigned to the stable tree after inserting ksm* page and upping mmap_sem |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |