Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:di_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.

Proto:struct backing_dev_info *bdi_get_by_id(u64 id)

Type:struct backing_dev_info

Parameter:

TypeParameterName
u64id
919  struct backing_dev_info * bdi = NULL
922  spin_lock_bh( & di_lock protects bdi_tree and updates to bdi_list. bdi_list has RCU* reader side locking.)
923  p = bdi_lookup_rb_node(id, NULL)
924  If p Then
925  bdi = rb_entry( * p, structbacking_dev_info, rb_node)
926  bdi_get(bdi)
928  spin_unlock_bh( & di_lock protects bdi_tree and updates to bdi_list. bdi_list has RCU* reader side locking.)
930  Return bdi