函数逻辑报告 |
Source Code:block\bio-integrity.c |
Create Date:2022-07-27 19:38:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:_integrity_prep - Prepare bio for integrity I/O*@bio: bio to prepare* Description: Checks if the bio already has an integrity payload attached.* If it does, the payload has been generated by another kernel subsystem,* and we just pass it through
函数原型:bool bio_integrity_prep(struct bio *bio)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct bio * | bio |
202 | bi等于blk_get_integrity(bi_disk) |
211 | 如果非bi则返回:true |
214 | 如果bio_op(bio)不等于REQ_OP_READ且bio_op(bio)不等于REQ_OP_WRITE则返回:true |
217 | 如果非bio_sectors(bio)则返回:true |
221 | 如果bio_integrity(bio)则返回:true |
225 | 如果非verify_fn或非flags按位与BLK_INTEGRITY_VERIFY的值则返回:true |
228 | 否则 |
229 | 如果非generate_fn或非flags按位与BLK_INTEGRITY_GENERATE的值则返回:true |
236 | len等于intervals乘tuple_size |
238 | status等于BLK_STS_RESOURCE |
239 | 如果此条件成立可能性小(为编译器优化)(buf == NULL)则 |
241 | 转到:err_end_io |
244 | end等于buf加len加PAGE_SIZE减1右移PAGE_SHIFT determines the page size 位 |
250 | 如果是错误则 |
257 | control flags 或等于BIP_BLOCK_INTEGRITY |
258 | residual I/O count 等于len |
265 | offset等于offset_in_page(buf) |
279 | 如果ret恒等于0则 |
291 | offset等于0 |
298 | 否则 |
301 | 返回:true |
303 | err_end_io : |
306 | 返回:false |
名称 | 描述 |
---|---|
blk_mq_make_request |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |