函数逻辑报告 |
Source Code:fs\block_dev.c |
Create Date:2022-07-29 10:46:01 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:ze_bdev -- lock a filesystem and force it into a consistent state*@bdev: blockdevice to lock* If a superblock is found on this device, we take the s_umount semaphore* on it to make sure nobody unmounts until the snapshot creation is done
函数原型:struct super_block *freeze_bdev(struct block_device *bdev)
返回类型:struct super_block
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct block_device * | bdev |
| 536 | error等于0 |
| 538 | mutex_lock( & Mutex for freeze ) |
| 539 | 如果 The counter of freeze processes 先自加大于1则 |
| 546 | 如果sb则drop_super(sb) |
| 549 | 返回:sb |
| 555 | 如果freeze_super则error等于freeze_super(sb) |
| 559 | 如果error则 |
| 565 | 降低活跃性 |
| 566 | out : |
| 569 | 返回:sb |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |