Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\backing-dev.c Create Date:2022-07-28 14:24:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bdi_lookup_rb_node

Proto:static struct rb_node **bdi_lookup_rb_node(u64 id, struct rb_node **parentp)

Type:struct rb_node

Parameter:

TypeParameterName
u64id
struct rb_node **parentp
887  p = rb_node
888  struct rb_node * parent = NULL
891  lockdep_assert_held( & di_lock protects bdi_tree and updates to bdi_list. bdi_list has RCU* reader side locking.)
893  When p cycle
894  parent = p
895  bdi = rb_entry(parent, structbacking_dev_info, rb_node)
897  If id > id Then p = rb_left
899  Else if id < id Then p = rb_right
901  Else Break
905  If parentp Then parentp = parent
907  Return p
Caller
NameDescribe
bdi_get_by_iddi_get_by_id - lookup and get bdi from its id*@id: bdi id to lookup* Find bdi matching @id and get it. Returns NULL if the matching bdi* doesn't exist or is already unregistered.
bdi_register_va