函数逻辑报告 | 
Source Code:kernel\power\swap.c | 
Create Date:2022-07-27 11:02:27 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:get_swap_writer
函数原型:static int get_swap_writer(struct swap_map_handle *handle)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| 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 | 如果ret则 | 
| 419 | cur等于get_zeroed_page(GFP_KERNEL) | 
| 420 | 如果非cur则 | 
| 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 | 如果非cur_swap则 | 
| 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 | 返回:0 | 
| 433 | err_rel : | 
| 435 | err_close : | 
| 437 | 返回:ret | 
| 名称 | 描述 | 
|---|---|
| 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 | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |