Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\swap.c Create Date:2022-07-28 10:02:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Saving part

Proto:static int mark_swapfiles(struct swap_map_handle *handle, unsigned int flags)

Type:int

Parameter:

TypeParameterName
struct swap_map_handle *handle
unsigned intflags
309  hib_submit_io(REQ_OP_READ, 0, swsusp_resume_block, swsusp_header, NULL)
311  If Not memcmp("SWAP-SPACE", sig, 10) || Not memcmp("SWAPSPACE2", sig, 10) Then
313  No 3D Now!(orig_sig, sig, 10)
314  No 3D Now!(sig, HIBERNATE_SIG, 10)
315  image = first_sector
316  Flags to pass to the "boot" kernel = flags
317  If flags & SF_CRC32_MODE Then crc32 = crc32
319  error = hib_submit_io(REQ_OP_WRITE, REQ_SYNC, swsusp_resume_block, swsusp_header, NULL)
321  Else
322  pr_err("Swap header not found!\n")
323  error = -ENODEV
325  Return error
Caller
NameDescribe
swap_writer_finish