函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static int swsusp_swap_check(void)

返回类型:int

参数:

338  res等于swap_type_of(swsusp_resume_device, swsusp_resume_block, & hib_resume_bdev)
340  如果res小于0则返回: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  如果res则返回:res
348  res等于set_blocksize(hib_resume_bdev, PAGE_SIZE)
349  如果res小于0则blkdev_put(hib_resume_bdev, le is open for writing )
357  swsusp_resume_device等于 not a kdev_t - it's a search key
358  返回:res
调用者
名称描述
get_swap_writer