函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:keycmp

函数原型:static int keycmp(struct btree_geo *geo, unsigned long *node, int pos, unsigned long *key)

返回类型:int

参数:

类型参数名称
struct btree_geo *geo
unsigned long *node
intpos
unsigned long *key
227  返回:longcmp(bkey(geo, node, pos), key, keylen)
调用者
名称描述
btree_lookup查btree的键
btree_update
btree_get_prevUsually this function is quite similar to normal lookup. But the key of* a parent node may be smaller than the smallest key of all its siblings.* In such a case we cannot just return NULL, as we have only proven that no
getpos
find_levellocate the correct leaf node in the btree
btree_insert_level
btree_remove_level