| Function report | 
| 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 activity | Download SCCT | Chinese | 
Name:bdget
Proto:struct block_device *bdget(dev_t dev)
Type:struct block_device
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| dev_t | dev | 
| 908 | If Not inode Then Return NULL | 
| 913 | If Misc & Serves as both a mutex and completion notification Then | 
| 914 | bd_contains = NULL | 
| 915 | bd_super = NULL | 
| 917 | bd_block_size = i_blocksize(inode) | 
| 919 | bd_invalidated = 0 | 
| 923 | a_ops = def_blk_aops | 
| 924 | This is non-atomic. Only to be used before the mapping is activated.* Probably needs a barrier... | 
| 927 | spin_unlock( & pseudo-fs) | 
| 930 | Return bdev | 
| Name | Describe | 
|---|---|
| blkpg_ioctl | |
| bdget_disk | dget_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_dev | lkdev_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 | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |