Function report |
Source Code:kernel\power\swap.c |
Create Date:2022-07-28 10:02:24 |
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_writer
Proto:static int get_swap_writer(struct swap_map_handle *handle)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct swap_map_handle * | handle |
413 | ret = swsusp_swap_check - check if the resume device is a swap device* and get its index (if so)* This is called before saving image |
414 | If ret Then |
419 | cur = get_zeroed_page(GFP_KERNEL) |
420 | If Not cur Then |
424 | cur_swap = 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. |
425 | If Not cur_swap Then |
429 | k = 0 |
430 | reqd_free_pages = Number of pages required to be kept free while writing the image. Always* half of all available low pages before the writing starts. |
431 | first_sector = cur_swap |
432 | Return 0 |
433 | err_rel : |
435 | err_close : |
437 | Return ret |
Name | Describe |
---|---|
swsusp_write | swsusp_write - Write entire image and metadata.*@flags: flags to pass to the "boot" kernel in the image header* It is important _NOT_ to umount filesystems at this point. We want* them synced (in case something goes wrong) but we DO not want to mark |
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 |