函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\swap.c Create Date:2022-07-27 11:02:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Saving part

函数原型:static int mark_swapfiles(struct swap_map_handle *handle, unsigned int flags)

返回类型:int

参数:

类型参数名称
struct swap_map_handle *handle
unsigned intflags
309  hib_submit_io(REQ_OP_READ, 0, swsusp_resume_block, swsusp_header, NULL)
311  如果非内存比较或非内存比较
313  内存复制(orig_sig, sig, 10)
314  内存复制(sig, HIBERNATE_SIG, 10)
315  image等于first_sector
316  Flags to pass to the "boot" kernel 等于flags
317  如果flags按位与SF_CRC32_MODEcrc32等于crc32
319  error等于hib_submit_io(REQ_OP_WRITE, REQ_SYNC, swsusp_resume_block, swsusp_header, NULL)
321  否则
322  打印错误信息("Swap header not found!\n")
323  error等于负ENODEV
325  返回:error
调用者
名称描述
swap_writer_finish