函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static struct rtree_node *alloc_rtree_node(gfp_t gfp_mask, int safe_needed, struct chain_allocator *ca, struct list_head *list)

返回类型:struct rtree_node

参数:

类型参数名称
gfp_tgfp_mask
intsafe_needed
struct chain_allocator *ca
struct list_head *list
408  node等于chain_alloc(ca, sizeof(structrtree_node))
409  如果非node则返回:NULL
412  data等于get_image_page - Allocate a page for a hibernation image
413  如果非data则返回:NULL
416  添加链表项
418  返回:node
调用者
名称描述
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.