函数逻辑报告 |
Source Code:block\bio.c |
Create Date:2022-07-27 18:30:14 |
| Last Modify:2020-03-17 23:13:58 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:_truncate - truncate the bio to small size of @new_size*@bio: the bio to be truncated*@new_size: new size for truncating the bio* Description:* Truncate the bio to new size of @new_size. If bio_op(bio) is* REQ_OP_READ, zero the truncated part
函数原型:void bio_truncate(struct bio *bio, unsigned new_size)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct bio * | bio | |
| unsigned | new_size |
| 555 | done等于0 |
| 556 | bool truncated = false |
| 558 | 如果new_size大于等于 residual I/O count 则返回 |
| 561 | 如果bio_op(bio)不等于REQ_OP_READ则转到:exit |
| 564 | bio_for_each_segment(bv, bio, iter) |
| 578 | exit : |
| 587 | residual I/O count 等于new_size |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |