| 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:d_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
Proto:static int bd_prepare_to_claim(struct block_device *bdev, struct block_device *whole, void *holder)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct block_device * | bdev | |
| struct block_device * | whole | |
| void * | holder | 
| 1076 | retry : | 
| 1082 | If bd_claiming Then | 
| 1083 | wq = bit_waitqueue( & bd_claiming, 0) | 
| 1084 | DEFINE_WAIT(wait) | 
| 1087 | spin_unlock( & pseudo-fs) | 
| 1088 | schedule() | 
| 1091 | Go to retry | 
| 1095 | Return 0 | 
| Name | Describe | 
|---|---|
| bd_start_claiming | d_start_claiming - start claiming a block device*@bdev: block device of interest*@holder: holder trying to claim @bdev*@bdev is about to be opened exclusively | 
| 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 |