函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:btree_merge

函数原型:int btree_merge(struct btree_head *target, struct btree_head *victim, struct btree_geo *geo, gfp_t gfp)

返回类型:int

参数:

类型参数名称
struct btree_head *target
struct btree_head *victim
struct btree_geo *geo
gfp_tgfp
647  BUG_ON(target == victim)
649  如果非node
651  node等于node
652  height等于height
653  __btree_init(victim)
654  返回:0
660  循环
661  如果非取btree的最后一项退出
663  val等于查btree的键
664  err等于btree_insert(target, geo, key, val, gfp)
665  如果err则返回:err
669  longcpy(dup, key, keylen)
670  溢出btree项
672  返回:0