Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:chain_init

Proto:static void chain_init(struct chain_allocator *ca, gfp_t gfp_mask, int safe_needed)

Type:void

Parameter:

TypeParameterName
struct chain_allocator *ca
gfp_tgfp_mask
intsafe_needed
269  he chain = NULL
270  al size of objects allocated outof the current page = struct linked_page is used to build chains of pages
271  mask for allocating pages = gfp_mask
272  set, only "safe" pages are allocated = safe_needed
Caller
NameDescribe
memory_bm_creatememory_bm_create - Allocate memory for a memory bitmap.
snapshot_write_nextsnapshot_write_next - Get the address to store the next image page.*@handle: Snapshot handle structure to guide the writing.* On the first call, @handle should point to a zeroed snapshot_handle* structure