Function report |
Source Code:mm\swapfile.c |
Create Date:2022-07-28 15:17:22 |
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__swap_info_get
Proto:static struct swap_info_struct *__swap_info_get(swp_entry_t entry)
Type:struct swap_info_struct
Parameter:
| Type | Parameter | Name |
|---|---|---|
| swp_entry_t | entry |
| 1111 | p = swp_swap_info(entry) |
| 1112 | If Not p Then Go to bad_nofile |
| 1114 | If Not (SWP_USED etc: see above & SWP_USED) Then Go to bad_device |
| 1116 | offset = Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format |
| 1117 | If offset >= xtent of the swap_map Then Go to bad_offset |
| 1119 | Return p |
| 1121 | bad_offset : |
| 1122 | pr_err("swap_info_get: %s%08lx\n", Bad_offset, val) |
| 1123 | Go to out |
| 1124 | bad_device : |
| 1125 | pr_err("swap_info_get: %s%08lx\n", Unused_file, val) |
| 1126 | Go to out |
| 1127 | bad_nofile : |
| 1129 | out : |
| 1130 | Return NULL |
| Name | Describe |
|---|---|
| _swap_info_get |
| 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 |