函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\block_dev.c Create Date:2022-07-29 10:46:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:d_finish_claiming - finish claiming of a block device*@bdev: block device of interest*@whole: whole block device (returned from bd_start_claiming())*@holder: holder that has claimed @bdev* Finish exclusive open of a block device

函数原型:void bd_finish_claiming(struct block_device *bdev, struct block_device *whole, void *holder)

返回类型:void

参数:

类型参数名称
struct block_device *bdev
struct block_device *whole
void *holder
1212  加自旋锁
1213  BUG_ON(!d_may_claim - test whether a block device can be claimed*@bdev: block device of interest*@whole: whole block device containing @bdev, may equal @bdev*@holder: holder trying to claim @bdev* Test whether @bdev can be claimed by @holder.* CONTEXT:)
1218  bd_holders自加
1219  bd_holder等于d_may_claim - test whether a block device can be claimed*@bdev: block device of interest*@whole: whole block device containing @bdev, may equal @bdev*@holder: holder trying to claim @bdev* Test whether @bdev can be claimed by @holder.* CONTEXT:
1220  bd_holders自加
1221  bd_holder等于holder
1222  bd_clear_claiming(whole, holder)
1223  自旋锁解锁
调用者
名称描述
blkdev_getlkdev_get - open a block device*@bdev: block_device to open*@mode: FMODE_* mask*@holder: exclusive holder identifier* Open @bdev with @mode. If @mode includes %FMODE_EXCL, @bdev is* open with exclusive access. Specifying %FMODE_EXCL with %NULL