Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:preallocate_image_memory

Proto:static unsigned long preallocate_image_memory(unsigned long nr_pages, unsigned long avail_normal)

Type:unsigned long

Parameter:

TypeParameterName
unsigned longnr_pages
unsigned longavail_normal
1548  If avail_normal <= Numbers of normal and highmem page frames allocated for hibernation image* before suspending devices. Then Return 0
1551  alloc = avail_normal - Numbers of normal and highmem page frames allocated for hibernation image* before suspending devices.
1552  If nr_pages < alloc Then alloc = nr_pages
1555  Return 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
Caller
NameDescribe
hibernate_preallocate_memoryhibernate_preallocate_memory - Preallocate memory for hibernation image