Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\block_dev.c Create Date:2022-07-28 20:14:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bdget

Proto:struct block_device *bdget(dev_t dev)

Type:struct block_device

Parameter:

TypeParameterName
dev_tdev
905  inode = obtain an inode from a mounted file system
908  If Not inode Then Return NULL
911  bdev = bdev
913  If Misc & Serves as both a mutex and completion notification Then
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  spin_lock( & pseudo-fs)
926  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
927  spin_unlock( & pseudo-fs)
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  Return bdev
Caller
NameDescribe
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