函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:chain_init

函数原型:static void chain_init(struct chain_allocator *ca, gfp_t gfp_mask, int safe_needed)

返回类型:void

参数:

类型参数名称
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
调用者
名称描述
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