函数逻辑报告 |
Source Code:fs\block_dev.c |
Create Date:2022-07-29 10:46:09 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:blkdev_put
函数原型:void blkdev_put(struct block_device *bdev, fmode_t mode)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct block_device * | bdev | |
| fmode_t | mode |
| 1916 | mutex_lock( & open/close mutex ) |
| 1926 | 加自旋锁 |
| 1928 | WARN_ON_ONCE(--bd_holders < 0) |
| 1929 | WARN_ON_ONCE(--bd_holders < 0) |
| 1932 | 如果bdev_free等于非bd_holders则bd_holder = NULL |
| 1934 | 如果非bd_holders则bd_holder = NULL |
| 1937 | 自旋锁解锁 |
| 1943 | 如果bdev_free且bd_write_holder则 |
| 1944 | disk_unblock_events(bd_disk) |
| 1945 | bd_write_holder = false |
| 1958 | __blkdev_put(bdev, mode, 0) |
| 名称 | 描述 |
|---|---|
| swsusp_check | swsusp_check - Check for swsusp signature in the resume device |
| swsusp_close | swsusp_close - close swap device. |
| SYSCALL_DEFINE2 | |
| register_disk | |
| get_tree_bdev | get_tree_bdev - Get a superblock based on a single block device*@fc: The filesystem context holding the parameters*@fill_super: Helper to initialise a new superblock |
| mount_bdev | |
| kill_block_super | |
| blkdev_get_by_path | lkdev_get_by_path - open a block device by name*@path: path to the block device to open*@mode: FMODE_* mask*@holder: exclusive holder identifier* Open the blockdevice described by the device file at @path. @mode* and @holder are identical to blkdev_get(). |
| blkdev_close | |
| swsusp_swap_check | swsusp_swap_check - check if the resume device is a swap device* and get its index (if so)* This is called before saving image |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |