Function report | 
Source Code:fs\block_dev.c | 
Create Date:2022-07-28 20:14:48 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:bdev_disk_changed
Proto:int bdev_disk_changed(struct block_device *bdev, bool invalidate)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct block_device * | bdev | |
| bool | invalidate | 
| 1516 | lockdep_assert_held( & open/close mutex ) | 
| 1518 | rescan : | 
| 1519 | ret = blk_drop_partitions(disk, bdev) | 
| 1523 | If invalidate Then set_capacity(disk, 0) | 
| 1525 | Else if revalidate_disk Then revalidate_disk(disk) | 
| 1530 | If get_capacity(disk) Then | 
| 1534 | Else if invalidate Then | 
| 1542 | Return ret | 
| Name | Describe | 
|---|---|
| __blkdev_get | d_mutex locking:* mutex_lock(part->bd_mutex)* mutex_lock_nested(whole->bd_mutex, 1) | 
| 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  |