函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:preallocate_image_memory

函数原型:static unsigned long preallocate_image_memory(unsigned long nr_pages, unsigned long avail_normal)

返回类型:unsigned long

参数:

类型参数名称
unsigned longnr_pages
unsigned longavail_normal
1548  如果avail_normal小于等于Numbers of normal and highmem page frames allocated for hibernation image* before suspending devices.则返回:0
1551  alloc等于avail_normalNumbers of normal and highmem page frames allocated for hibernation image* before suspending devices.
1552  如果nr_pages小于allocalloc等于nr_pages
1555  返回:preallocate_image_pages - Allocate a number of pages for hibernation image.*@nr_pages: Number of page frames to allocate.*@mask: GFP flags to use for the allocation.* Return value: Number of page frames actually allocated
调用者
名称描述
hibernate_preallocate_memoryhibernate_preallocate_memory - Preallocate memory for hibernation image