Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:swsusp_swap_check - check if the resume device is a swap device* and get its index (if so)* This is called before saving image

Proto:static int swsusp_swap_check(void)

Type:int

Parameter:Nothing

338  res = swap_type_of(swsusp_resume_device, swsusp_resume_block, & hib_resume_bdev)
340  If res < 0 Then Return res
343  General things = res
344  res = lkdev_get - open a block device*@bdev: block_device to open*@mode: FMODE_* mask*@holder: exclusive holder identifier* Open @bdev with @mode. If @mode includes %FMODE_EXCL, @bdev is* open with exclusive access. Specifying %FMODE_EXCL with %NULL
345  If res Then Return res
348  res = set_blocksize(hib_resume_bdev, PAGE_SIZE)
349  If res < 0 Then blkdev_put(hib_resume_bdev, le is open for writing )
357  swsusp_resume_device = not a kdev_t - it's a search key
358  Return res
Caller
NameDescribe
get_swap_writer