Function report |
Source Code:mm\swapfile.c |
Create Date:2022-07-28 15:17:20 |
Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:The only caller of this function is now suspend routine
Proto:swp_entry_t get_swap_page_of_type(int type)
Type:swp_entry_t
Parameter:
Type | Parameter | Name |
---|---|---|
int | type |
1082 | si = swap_type_to_swap_info(type) |
1089 | If SWP_USED etc: see above & SWP_WRITEOK Then |
1090 | atomic_long_dec( & nr_swap_pages) |
1092 | offset = scan_swap_map(si, 1) |
1093 | If offset Then |
1097 | atomic_long_inc( & nr_swap_pages) |
1100 | fail : |
1101 | Return (swp_entry_t){0} |
Name | Describe |
---|---|
alloc_swapdev_block | alloc_swapdev_block - allocate a swap page and register that it has* been allocated, so that it can be freed in case of an error. |
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 |