Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\btree.c Create Date:2022-07-28 06:53:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:btree_update

Proto:int btree_update(struct btree_head *head, struct btree_geo *geo, unsigned long *key, void *val)

Type:int

Parameter:

TypeParameterName
struct btree_head *head
struct btree_geo *geo
unsigned long *key
void *val
274  height = height
275  node = node
277  If height == 0 Then Return -ENOENT
280  When height > 1 cycle
281  When i < no_pairs cycle If keycmp(geo, node, i, key) <= 0 Then
283  Break
284  If i == no_pairs Then Return -ENOENT
286  node = bval(geo, node, i)
287  If Not node Then Return -ENOENT
291  If Not node Then Return -ENOENT
294  When i < no_pairs cycle If keycmp(geo, node, i, key) == 0 Then
296  setval(geo, node, i, val)
297  Return 0
299  Return -ENOENT