Function report | 
Source Code:mm\pagewalk.c | 
Create Date:2022-07-28 14:55:02 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:walk_page_mapping - walk all memory areas mapped into a struct address_space
Proto:int walk_page_mapping(struct address_space *mapping, unsigned long first_index, unsigned long nr, const struct mm_walk_ops *ops, void *private)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct address_space * | mapping | |
| unsigned long | first_index | |
| unsigned long | nr | |
| const struct mm_walk_ops * | ops | |
| void * | private | 
| 437 | err = 0 | 
| 439 | lockdep_assert_held( & i_mmap_rwsem) | 
| 445 | cba = first_index | 
| 446 | cba = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(cba, vba) | 
| 447 | cea = first_index + nr | 
| 448 | cea = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(cea, vea) | 
| 450 | start_addr = ( cba - vba << PAGE_SHIFT determines the page size ) + Our start address within vm_mm. | 
| 451 | end_addr = ( cea - vba << PAGE_SHIFT determines the page size ) + Our start address within vm_mm. | 
| 452 | If start_addr >= end_addr Then Continue | 
| 459 | If err > 0 Then | 
| 460 | err = 0 | 
| 461 | Break | 
| 462 | Else if err < 0 Then Break | 
| 465 | err = __walk_page_range(start_addr, end_addr, & walk) | 
| 466 | If err Then Break | 
| 470 | Return err | 
| Name | Describe | 
|---|---|
| wp_shared_mapping_range | wp_shared_mapping_range - Write-protect all ptes in an address space range*@mapping: The address_space we want to write protect*@first_index: The first page offset in the range*@nr: Number of incremental page offsets to cover* Note: This function | 
| clean_record_shared_mapping_range | lean_record_shared_mapping_range - Clean and record all ptes in an* address space range*@mapping: The address_space we want to clean*@first_index: The first page offset in the range*@nr: Number of incremental page offsets to cover*@bitmap_pgoff: The page | 
| 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  |