函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bdi_lookup_rb_node

函数原型:static struct rb_node **bdi_lookup_rb_node(u64 id, struct rb_node **parentp)

返回类型:struct rb_node

参数:

类型参数名称
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 p循环
894  parent等于p
895  bdi等于rb_entry(parent, structbacking_dev_info, rb_node)
897  如果id大于idp等于rb_left
899  否则如果id小于idp等于rb_right
901  否则退出
905  如果parentpparentp等于parent
907  返回:p
调用者
名称描述
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