函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:swsusp_alloc - Allocate memory for hibernation image

函数原型:static int swsusp_alloc(struct memory_bitmap *copy_bm, unsigned int nr_pages, unsigned int nr_highmem)

返回类型:int

参数:

类型参数名称
struct memory_bitmap *copy_bm
unsigned intnr_pages
unsigned intnr_highmem
1948  如果nr_highmem大于0则
1949  如果get_highmem_buffer(PG_ANY)则转到:err_out
1956  如果nr_pages大于Numbers of normal and highmem page frames allocated for hibernation image* before suspending devices.
1957  nr_pages减等于Numbers of normal and highmem page frames allocated for hibernation image* before suspending devices.
1958 nr_pages自减大于0循环
1962  如果非page则转到:err_out
1968  返回:0
1970  err_out :
1971  swsusp_free - Free pages allocated for hibernation image.* Image pages are alocated before snapshot creation, so they need to be* released after resume.
1972  返回:负ENOMEM
调用者
名称描述
swsusp_save