Function report |
Source Code:fs\block_dev.c |
Create Date:2022-07-28 20:14:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__blkdev_put
Proto:static void __blkdev_put(struct block_device *bdev, fmode_t mode, int for_part)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct block_device * | bdev | |
fmode_t | mode | |
int | for_part |
1881 | struct block_device * victim = NULL |
1883 | mutex_lock_nested( & open/close mutex , for_part) |
1887 | If Not --bd_openers Then |
1888 | WARN_ON_ONCE(bd_holders) |
1892 | bdev_write_inode(bdev) |
1894 | If bd_contains == bdev Then |
1898 | If Not bd_openers Then |
1899 | disk_put_part(bd_part) |
1900 | bd_part = NULL |
1901 | bd_disk = NULL |
1902 | If bdev != bd_contains Then victim = bd_contains |
1904 | bd_contains = NULL |
1906 | put_disk_and_module(disk) |
1910 | If victim Then __blkdev_put(victim, mode, 1) |
Name | Describe |
---|---|
__blkdev_get | d_mutex locking:* mutex_lock(part->bd_mutex)* mutex_lock_nested(whole->bd_mutex, 1) |
__blkdev_put | |
blkdev_put |
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 |