Function report |
Source Code:mm\memory.c |
Create Date:2022-07-28 14:41:50 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cow_user_page
Proto:static inline bool cow_user_page(struct page *dst, struct page *src, struct vm_fault *vmf)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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 | If Value is more likely to compile time(src) Then |
| 2232 | copy_user_highpage(dst, src, addr, vma) |
| 2233 | Return true |
| 2242 | kaddr = kmap_atomic(dst) |
| 2249 | If arch_faults_on_old_pte() && Not pte_young(Value of PTE at the time of fault ) Then |
| 2253 | locked = true |
| 2261 | ret = false |
| 2262 | Go to pte_unlock |
| 2282 | locked = true |
| 2285 | ret = false |
| 2286 | Go to 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 | Return ret |
| Name | Describe |
|---|---|
| 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. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |