函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:btree_node_alloc

函数原型:static unsigned long *btree_node_alloc(struct btree_head *head, gfp_t gfp)

返回类型:unsigned long

参数:

类型参数名称
struct btree_head *head
gfp_tgfp
97  node等于mempool_alloc - allocate an element from a specific memory pool*@pool: pointer to the memory pool which was allocated via* mempool_create().*@gfp_mask: the usual allocation bitmask.* this function only sleeps if the alloc_fn() function sleeps or
98  如果此条件成立可能性大(为编译器优化)(node)则memset(node, 0, NODESIZE)
100  返回:node
调用者
名称描述
btree_grow
btree_insert_level