Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_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.

Proto:static struct rtree_node *alloc_rtree_node(gfp_t gfp_mask, int safe_needed, struct chain_allocator *ca, struct list_head *list)

Type:struct rtree_node

Parameter:

TypeParameterName
gfp_tgfp_mask
intsafe_needed
struct chain_allocator *ca
struct list_head *list
408  node = chain_alloc(ca, sizeof(structrtree_node))
409  If Not node Then Return NULL
412  data = get_image_page - Allocate a page for a hibernation image
413  If Not data Then Return NULL
416  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
418  Return node
Caller
NameDescribe
add_rtree_blockadd_rtree_block - Add a new leave node to the radix tree.* The leave nodes need to be allocated in order to keep the leaves* linked list in order. This is guaranteed by the zone->blocks* counter.