函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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:

函数原型:static bool bd_may_claim(struct block_device *bdev, struct block_device *whole, void *holder)

返回类型:bool

参数:

类型参数名称
struct block_device *bdev
struct block_device *whole
void *holder
1040  如果bd_holder恒等于holder则返回:true
1042  否则如果(bd_holder != NULL)则返回:false
1044  否则如果whole恒等于bdev则返回:true
1047  否则如果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:则返回:true
1049  否则如果(bd_holder != NULL)则返回:false
1051  否则返回:true
调用者
名称描述
bd_prepare_to_claimd_prepare_to_claim - prepare to claim a block device*@bdev: block device of interest*@whole: the whole device containing @bdev, may equal @bdev*@holder: holder trying to claim @bdev* Prepare to claim @bdev
bd_finish_claimingd_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