函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:gh_swap - Make sure we have enough swap to save the image.* Returns TRUE or FALSE after checking the total amount of swap* space avaiable from the resume partition.

函数原型:static int enough_swap(unsigned int nr_pages)

返回类型:int

参数:

类型参数名称
unsigned intnr_pages
882  free_swap等于count_swap_pages(General things, 1)
885  pr_debug("Free swap pages: %u\n", free_swap)
887  required等于PAGES_FOR_IOnr_pages
888  返回:free_swap大于required
调用者
名称描述
swsusp_writeswsusp_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