Function report |
Source Code:mm\mapping_dirty_helpers.c |
Create Date:2022-07-28 16:38:16 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lean_record_pte - Clean a pte and record its address space offset in a* bitmap*@pte: Pointer to the pte*@addr: The virtual page address*@walk: pagetable walk callback argument* The function cleans a pte and records the range in
Proto:static int clean_record_pte(pte_t *pte, unsigned long addr, unsigned long end, struct mm_walk *walk)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| pte_t * | pte | |
| unsigned long | addr | |
| unsigned long | end | |
| struct mm_walk * | walk |
| 90 | cwalk = to_clean_walk(wpwalk) |
| 94 | pgoff = ( addr - Our start address within vm_mm. >> PAGE_SHIFT determines the page size ) + Offset (within vm_file) in PAGE_SIZEunits - bitmap_pgoff |
| 96 | old_pte = Start a pte protection read-modify-write transaction, which* protects against asynchronous hardware modifications to the pte |
| 98 | ptent = pte_mkclean(old_pte) |
| 101 | total++ |
| 102 | tlbflush_start = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(tlbflush_start, addr) |
| 103 | tlbflush_end = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(tlbflush_end, addr + PAGE_SIZE) |
| 111 | Return 0 |
| 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 |