函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:chain_alloc

函数原型:static void *chain_alloc(struct chain_allocator *ca, unsigned int size)

返回类型:void

参数:

类型参数名称
struct chain_allocator *ca
unsigned intsize
279  如果struct linked_page is used to build chains of pages al size of objects allocated outof the current page 小于size
282  lp等于如果 set, only "safe" pages are allocated __get_safe_page(mask for allocating pages )否则get_image_page - Allocate a page for a hibernation image
284  如果非lp则返回:NULL
287  next等于he chain
288  he chain 等于lp
289  al size of objects allocated outof the current page 等于0
291  ret等于dataal size of objects allocated outof the current page
292  al size of objects allocated outof the current page 加等于size
293  返回:ret
调用者
名称描述
alloc_rtree_nodealloc_rtree_node - Allocate a new node and add it to the radix tree.* This function is used to allocate inner nodes as well as the* leave nodes of the radix tree. It also adds the node to the* corresponding linked list passed in by the *list parameter.
create_zone_bm_rtreereate_zone_bm_rtree - Create a radix tree for one zone.* Allocated the mem_zone_bm_rtree structure and initializes it.* This function also allocated and builds the radix tree for the* zone.
get_bufferget_buffer - Get the address to store the next image data page.* Get the address that snapshot_write_next() should return to its caller to* write to.