Function report |
Source Code:kernel\power\swap.c |
Create Date:2022-07-28 10:02:50 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:get_swap_reader
Proto:static int get_swap_reader(struct swap_map_handle *handle, unsigned int *flags_p)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct swap_map_handle * | handle | |
| unsigned int * | flags_p |
| 973 | cur = NULL |
| 977 | tmp = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
| 978 | If Not tmp Then |
| 980 | Return -ENOMEM |
| 988 | map = __get_free_page(GFP_NOIO | __GFP_HIGH) |
| 990 | If Not map Then |
| 992 | Return -ENOMEM |
| 995 | error = hib_submit_io(REQ_OP_READ, 0, offset, map, NULL) |
| 996 | If error Then |
| 998 | Return error |
| 1002 | k = 0 |
| 1004 | Return 0 |
| Name | Describe |
|---|---|
| swsusp_read | swsusp_read - read the hibernation image.*@flags_p: flags passed by the "frozen" kernel in the image header should* be written into this memory location |
| 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 |