函数逻辑报告

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

函数名称:bd_acquire

函数原型:static struct block_device *bd_acquire(struct inode *inode)

返回类型:struct block_device

参数:

类型参数名称
struct inode *inode
969  加自旋锁
970  bdev等于i_bdev
971  如果bdev且非inode_unhashed( will die )则
972  dgrab -- Grab a reference to an already referenced block device*@bdev: Block device to grab a reference to.
973  自旋锁解锁
974  返回:bdev
976  自旋锁解锁
984  如果bdevCall when you free inode
987  bdev等于bdget(i_rdev)
988  如果bdev
989  加自旋锁
990  如果非i_bdev
998  i_bdev等于bdev
999  i_mapping等于i_mapping
1001  自旋锁解锁
1003  返回:bdev
调用者
名称描述
blkdev_open
lookup_bdevlookup_bdev - lookup a struct block_device by name*@pathname: special file representing the block device* Get a reference to the blockdevice at @pathname in the current* namespace if possible and return it. Return ERR_PTR(error)* otherwise.