函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bdget

函数原型:struct block_device *bdget(dev_t dev)

返回类型:struct block_device

参数:

类型参数名称
dev_tdev
905  inode等于从文件系统上获得索引节点
908  如果非inode则返回:NULL
911  bdev等于bdev
913  如果Misc 按位与I_NEW
914  bd_contains = NULL
915  bd_super = NULL
916  will die 等于inode
917  bd_block_size等于i_blocksize(inode)
918  number of times partitions within this device have been opened. 等于0
919  bd_invalidated等于0
920  i_mode等于S_IFBLK
921  i_rdev等于dev
922  i_bdev等于bdev
923  a_ops等于def_blk_aops
924  This is non-atomic. Only to be used before the mapping is activated.* Probably needs a barrier...
925  加自旋锁
926  添加链表项
927  自旋锁解锁
928  lock_new_inode - clear the I_NEW state and wake up any waiters*@inode: new inode to unlock* Called when the inode is fully initialised to clear the new state of the* inode and wake up anyone waiting for the inode to finish initialisation.
930  返回:bdev
调用者
名称描述
blkpg_ioctl
bdget_diskdget_disk - do bdget() by gendisk and partition number*@disk: gendisk of interest*@partno: partition number* Find partition @partno from @disk, do bdget() on it.* CONTEXT:* Don't care.* RETURNS:* Resulting block_device on success, NULL on failure.
bd_acquire
blkdev_get_by_devlkdev_get_by_dev - open a block device by device number*@dev: device number of block device to open*@mode: FMODE_* mask*@holder: exclusive holder identifier* Open the blockdevice described by device number @dev. @mode and