Function report |
Source Code:kernel\power\swap.c |
Create Date:2022-07-28 10:02:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:sector_t alloc_swapdev_block(int swap)
Type:sector_t
Parameter:
Type | Parameter | Name |
---|---|---|
int | swap |
180 | offset = Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format |
181 | If offset Then |
182 | If swsusp_extents_insert(offset) Then swap_free(Store a type+offset into a swp_entry_t in an arch-independent format) |
184 | Else Return swapdev_block(swap, offset) |
187 | Return 0 |
Name | Describe |
---|---|
get_swap_writer | |
swap_write_page | |
snapshot_ioctl |
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 |