函数逻辑报告 |
Source Code:mm\memory.c |
Create Date:2022-07-27 16:08:54 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:cow_user_page
函数原型:static inline bool cow_user_page(struct page *dst, struct page *src, struct vm_fault *vmf)
返回类型:bool
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct page * | dst | |
| struct page * | src | |
| struct vm_fault * | vmf |
| 2224 | bool locked = false |
| 2225 | vma等于Target VMA |
| 2227 | addr等于Faulting virtual address |
| 2229 | debug_dma_assert_idle(src) |
| 2231 | 如果此条件成立可能性大(为编译器优化)(src)则 |
| 2232 | copy_user_highpage(dst, src, addr, vma) |
| 2233 | 返回:true |
| 2242 | kaddr等于kmap_atomic(dst) |
| 2253 | locked = true |
| 2261 | ret = false |
| 2262 | 转到:pte_unlock |
| 2282 | locked = true |
| 2285 | ret = false |
| 2286 | 转到:pte_unlock |
| 2304 | ret = true |
| 2306 | pte_unlock : |
| 2309 | Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(kaddr) |
| 2310 | flush_dcache_page(dst) |
| 2312 | 返回:ret |
| 名称 | 描述 |
|---|---|
| wp_page_copy | Handle the case of a page which we actually need to copy to a new page.* Called with mmap_sem locked and the old page referenced, but* without the ptl held.* High level logic flow:* - Allocate a page, copy the content of the old page to the new one. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |