Function report | 
Source Code:mm\swapfile.c | 
Create Date:2022-07-28 15:18:40 | 
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Use this swapdev's extent info to locate the (PAGE_SIZE) block which* corresponds to page offset for the specified swap entry.* Note that the type of this function is sector_t, but it returns page offset* into the bdev, not sector offset.
Proto:static sector_t map_swap_entry(swp_entry_t entry, struct block_device **bdev)
Type:sector_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| swp_entry_t | entry | |
| struct block_device ** | bdev | 
| 2263 | sis = swp_swap_info(entry) | 
| 2266 | offset = Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format | 
| 2267 | se = offset_to_swap_extent(sis, offset) | 
| 2268 | Return start_block + offset - start_page | 
| Name | Describe | 
|---|---|
| map_swap_page | Returns the page offset into bdev for the specified page's swap entry. | 
| 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  |