| Function report | 
| Source Code: mm\memory.c | Create Date:2022-07-28 14:42:56 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:alloc_set_pte - setup new PTE entry for given page and add reverse page* mapping
Proto:vm_fault_t alloc_set_pte(struct vm_fault *vmf, struct mem_cgroup *memcg, struct page *page)
Type:vm_fault_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct vm_fault * | vmf | |
| struct mem_cgroup * | memcg | |
| struct page * | page | 
| 3437 | vma = Target VMA | 
| 3445 | VM_BUG_ON_PAGE(memcg, page) | 
| 3447 | ret = do_set_pmd(vmf, page) | 
| 3448 | If ret != VM_FAULT_FALLBACK Then Return ret | 
| 3453 | ret = pte_alloc_one_map(vmf) | 
| 3462 | flush_icache_page(vma, page) | 
| 3467 | If write && Not (Flags, see mm.h. & VM_SHARED) Then | 
| 3469 | page_add_new_anon_rmap(page, vma, Faulting virtual address , false) | 
| 3472 | Else | 
| 3476 | set_pte_at(The address space we belong to. , Faulting virtual address , Pointer to pte entry matching* the 'address'. NULL if the page* table hasn't been allocated., entry) | 
| 3481 | Return 0 | 
| Name | Describe | 
|---|---|
| finish_fault | sh_fault - finish page fault once we have prepared the page to fault*@vmf: structure describing the fault* This function handles all that is needed to finish a page fault once the* page to fault in is prepared | 
| 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 |